Sonar scanner throwing exception after marking security hotspot as safe

Running sonar scanner against a python repository via gitlab and after marking a security hotspot (Rule - python:S2245) as safe in SonarCloud the job now fails due to the below error. Marking the hotspot as fixed fixes the issue. Would ideally like to be able to mark these issues as safe to be more accurate.

ERROR: Error during SonarScanner execution

[118](some_repo)java.lang.IllegalStateException: The field 'ignoreAnnotations' does not exist or is not annotated with @RuleProperty in the class org.sonar.java.checks.unused.UnusedPrivateFieldCheck

Hey there.

This issue got fixed yesterday.

Let us know if you’re still facing an issue.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.