Getting a scanner CLI error thrown on codebases and pipelines that have not changed since they last passed
##[error]ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: The field 'ignoreFontFamilies' does not exist or is not annotated with @RuleProperty in the class
Issue seems to be similar to:
- ALM used - Azure DevOps
- CI system used - Azure DevOps - YAML Pipelines
- Scanner command used when applicable (private details masked)
Run Code Analysis
task for Azure DevOps pipelines - Languages of the repository
C# - Error observed:
INFO: ------------- Run sensors on module [private]
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=33ms
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 28.301s
INFO: Final Memory: 27M/94M
INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: The field 'ignoreFontFamilies' does not exist or is not annotated with @RuleProperty in the class org.sonar.plugins.javascript.css.rules.FontFamilyNoMissingGenericFamilyKeyword
at org.sonar.api.batch.rule.Checks.configureFields(Checks.java:170)
at org.sonar.api.batch.rule.Checks.instantiate(Checks.java:154)
at org.sonar.api.batch.rule.Checks.addAnnotatedChecks(Checks.java:128)
at org.sonar.plugins.javascript.css.CssRules.<init>(CssRules.java:72)
at org.sonar.plugins.javascript.eslint.CssRuleSensor.<init>(CssRuleSensor.java:69)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145)
at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:342)
at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
- Steps to reproduce
On multiple projects we began to encounter the above error from 2pm GMT today, some of these scans were on repositories and pipelines that had not changed since they passed the scan earlier in the day - Potential workaround
N/A