Must-share information (formatted with Markdown):
-
Which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension):
- SonarQube Server Developer Edition
- v2025.2 (105476)
-
How is SonarQube deployed:
- zip
-
What are you trying to achieve:
- This is JSX in REACT.
- Working on a PR with SonarQube analyzing the code and it returns:
- Unknown property ‘di’ found (typescript:S6747)
- The code it is referring to:
return ( <div id="NewRapportParentSelection"> content here </div> );
- And it is highlighting
id="NewRapportParentSelection"
.
-
What have you tried so far to achieve this:
- I tried adding
{/* NOSONAR */}
above the line and// NOSONAR
next to the line. - Removing
id="NewRapportParentSelection"
will make the error go away, but I do need the id property. - If possible, we would like to prevent disabling this rule.
- I tried adding