secrets:S6703 cannot be disabled

  • Operating system: Windows 11
  • Visual Studio version: 17.10.4
  • SonarLint plugin version: 8.1.0.95039
  • Programming language you’re coding in: C#
  • Is connected mode used: No

Is there any way to disable this sonar lint rule (secrets:S6703) about database passwords as I am using such a password in a Configuration Entry Seeder for a docker container. I tried with // NOSONAR at the end of the line, or with NoWarn in csproj, but it didn’t work.

Hey there.

The docs here should help

I have read these docs, but they didn’t help. I have tried what they suggest: a) editorconfig, b) settings.json, c) ruleset, but the warning still shows up (Visual Studio). Is it because it is a secrets rule and it can’t be disabled? Could you investigate this please?

Hey @Fanis_Tziasios

We’ve not yet integrated this part of functionality with the new secrets analyzer. It will be fixed in the next version.

Thanks! I see that after the latest VS SL extension update it is now supported via rule disabling in the Error List window.

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