Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: PhpStorm 2024.1
  • SonarLint: 10.4.2.78113

Cannot analyze file [uri=file:///C:/sources/ICTLabs/ICTProject/public/promo_form_test.php]

java.lang.NumberFormatException: empty String
	at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1842)
	at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
	at java.base/java.lang.Double.parseDouble(Double.java:651)
	at o.s.pl.html.api.accessibility.AccessibilityUtils.isFocusableElement(AccessibilityUtils.java:53)
	at o.s.pl.html.checks.accessibility.NoAriaHiddenOnFocusableCheck.startElement(NoAriaHiddenOnFocusableCheck.java:39)
	at o.s.pl.html.visitor.HtmlAstScanner.scanElementTag(HtmlAstScanner.java:111)
	at o.s.pl.html.visitor.HtmlAstScanner.scanElement(HtmlAstScanner.java:90)
	at o.s.pl.html.visitor.HtmlAstScanner.scan(HtmlAstScanner.java:74)
	at o.s.pl.html.visitor.HtmlAstScanner.scan(HtmlAstScanner.java:57)
	at o.s.pl.html.core.HtmlSensor.execute(HtmlSensor.java:122)
	at o.ss.sl.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensor(SensorsExecutor.java:95)
	at o.ss.sl.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensors(SensorsExecutor.java:86)
	at o.ss.sl.core.analysis.container.analysis.sensor.SensorsExecutor.execute(SensorsExecutor.java:76)
	at o.ss.sl.core.analysis.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:122)
	at o.ss.sl.core.plugin.commons.container.SpringComponentContainer.startComponents(SpringComponentContainer.java:182)

Dear @Fabio_Chiari,

Thanks a lot for your report. We investigated the issue, and it is likely to be caused by an empty tabindex attribute. Can you confirm that there is an empty tabindex in your file so that we can open an issue and provide a fix?

Eric.