Warning Web:S6840 for PrimeNG p-password elements

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension):
    • Community Edition v10.7 (96327)
    • PrimeNG 17.18.1
    • PhpStorm 2024.1.7 Build #PS-241.19416.23
    • SonarLint 10.12.0.79769
  • how is SonarQube deployed: Helm

I’m writing an App in AngularJS using PrimeNG component library. Sonar is reporting Web:S6840 on my p-password input elements, which wrap a regular HTML input field, including the autocomplete` attribute.

Here’s the rendered element in the browser dev tools:

And here’s the warning inside the IDE:

This seems to be the same issue as in this post (Sonarqube always show autocomplete warning Web:S6840 in Vuetify), just a different framework/component library

Hello @Clemens_Baudisch,

we have already a ticket to fix S6840 and be more permissive with custom elements. I added it for our next hardening.

Cheers,
Victor

1 Like