python:S1313 false positive on OIDs

I’ve encountered a false positive in our python code on all OID references, even if they do not look like IP addresses. Example code:

MAP_BRIDGE_INDEX_OID = "1.3.6.1.2.1.17.4.3.1.1"

SonarQube 7.1 (build 11001)
SonarPython 1.9.1 (build 2080)

Sorry, looks like this is already a logged issue.

https://jira.sonarsource.com/browse/SONARPY-270

1 Like