×
Aug 13, 2021 · Hi, I ran into an issue which I believe is a false-positive for the csharpsquid:S2302 rule in SonarCloud To me, it seems that the engine ...
Missing: q= https% 3A% 2F% 2Fcommunity. 2Ft% 2Freplace- 2F48113
May 7, 2021 · The following code will raise S2302 - Replace the string 'changes' with nameof(changes) private void DoStuff(int changes) { if (changes < 0) ...
Missing: q= https% 3A% 2Fcommunity. 2Ft% 2Freplace- 2F48113
Dec 5, 2019 · Hi all, I'm cleaning up a lot of issues in one of our products. Now I'm running into rule S3928: Parameter names used into ArgumentException ...
Missing: q= https% 3A% 2Fcommunity. 2Ft% 2Freplace- 2F48113
Mar 17, 2023 · I think a rule would be useful to replace usages of ToString() on statically known values with equivalent nameof calls. This means turning this:
Missing: q= https% 3A% 2F% 2Fcommunity. 2Ft% 2Freplace- 2F48113
May 28, 2020 · Instead of public const string MyConst = nameof(MyConst); the Zero Coverage will disappear, when changing it to public const string MyConst ...
Missing: q= 3A% 2F% 2Fcommunity. 2Ft% 2Freplace- 2F48113
Jan 7, 2022 · The following code raises warning S3928: The parameter name 'theParameter' is not declared in the argument list. with SonarAnalyzer version ...
Missing: q= https% 3A% 2F% 2Fcommunity. 2Ft% 2Freplace- 2F48113
Dec 8, 2023 · But removing the assignments will cause the compiler to flag the constructor parameter string name as being unused (with error code CS9113: ...
Missing: q= https% 3A% 2F% 2Fcommunity. 2Ft% 2Freplace- nameof% 2F48113
Feb 11, 2021 · We have a case here where Sonar is reporting: Remove this unnecessary cast to “Throwable” in the log statement. If we remove the cast, ...
Missing: q= 3A% 2Fcommunity. 2Ft% 2Freplace- nameof% 2F48113
In order to show you the most relevant results, we have omitted some entries very similar to the 8 already displayed. If you like, you can repeat the search with the omitted results included.