Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue on make the code compliant for sonar rule S1451 for C#

Tags:

c#

sonarqube

I am using the sonar (v5.6.6) and c# plugin (v6.3)for code analysis. After sonar analysis execution. My C# Code violated rule S1451 (Rule Name: Track lack of copyright and license headers).

I tried many of the copyright formats, but no luck all fails to compliant with this rule.

How to make the code to compliant with rule S1451?

like image 725
user7014262 Avatar asked Nov 22 '25 15:11

user7014262


1 Answers

S1451 is configured with the required/desired header. The easiest thing to do would be to look at the configuration of the rule in the profile that's being applied & copy/paste the configured header into your file.

like image 167
G. Ann - SonarSource Team Avatar answered Nov 25 '25 05:11

G. Ann - SonarSource Team