user7014262
user7014262

Reputation: 135

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

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?

Upvotes: 3

Views: 967

Answers (2)

user7014262
user7014262

Reputation: 135

this issue was resolved by Amaury Levé from SonarSource team.

Please check this link for more details.

Thanks a lot to Amaury & sonar team...

Upvotes: 0

G. Ann - SonarSource Team
G. Ann - SonarSource Team

Reputation: 22804

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.

Upvotes: 1

Related Questions