-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3992/S3904 - 1 violation reports ALL files in repo for violation #9659
Comments
This seems to be a problem with Codacy.com. Please either contact them or clarify what behavior from the Sonar C# analyzer you find unexpected. Thank you! |
What I would expect of the behavior of the analyzer would be to report only the single violation for the project that needs this attribute, not every single file in the repository. Even though I agree that the srcassembly.dll in the message might be a Codacy issue I do not think the repeated violations are because of Codacy unless there is a configuration that would report this way. Is there such a way to configure the sonar scans to report against all files for these two rules, or these types of rules? I would like to see something like this (which sonarqube does today): violation NOT something like this: violation violation violation violation ... and 17,996 copies of this violation for each file in the repository. |
Thank you for the feedback. If this is the case, then I would consider this closed for this project and take it to Codacy for correction. |
@dmstrat I'm glad I could help. If you need any more details to solve the issue end-to-end, let us know. |
Description
For Rule: S3992 - Provide a 'ComVisible' attribute for assembly 'srcassembly.dll'
For Rule: S2904 - Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.
Problem: The violations are reporting against every single file in the repository.
Sonarqube (community edition and msbuild scanner used) reports 1 instance of the rule violation (both rules get one violation) reporting against the project such as ThisProject.dll
Codacy.com SonarC# reports over 18k violations which represents every single csharp file in the repository.
The violation also reports the assembly as 'srcassembly.dll' which may be a codacy.com implementation of the sonarC# as there are no projects in the repository named 'srcassembly'.
Repro steps
I'll try to take some time to generate a repro repo to share, but wanted to open the issue as I'm having the same problem with both rules.
Known workarounds
Related information
The text was updated successfully, but these errors were encountered: