简体   繁体   English

禁用声纳规则-对于使用DotSettings的C#项目,行不应太长

[英]Disable sonar rule - Lines should not be too long for C# project using DotSettings

We want to disable sonar inspection Lines should not be too long for our c# project. 我们要禁用声纳检查对于我们的c#项目,Lines不应太长。 We already created DotSettings file where we customize some of the inspection rules. 我们已经创建了DotSettings文件,可以在其中自定义一些检查规则。 However we were not able to find option to disable rule lines not be too long using dotsettings. 但是,我们无法找到使用dotsettings禁用规则行的选项。 Can somebody let us know the workaround for the same. 有人可以让我们知道相同的解决方法。

The SonarQube .NET integration pieces use Roslyn in the back. SonarQube .NET集成件在背面使用Roslyn。 So every standard Roslyn tooling works with SonarLint or SonarC#. 因此,每个标准的Roslyn工具都可以与SonarLint或SonarC#一起使用。 The rule activation can be controlled through .ruleset files, and not dotsettings. 可以通过.ruleset文件而不是点设置来控制规则激活。 Note however, if you want to disable a given rule for all .NET projects, them you should do this change on your C# quality profile in SonarQube. 但是请注意,如果要为所有.NET项目禁用给定规则,则应在SonarQube中的C#质量配置文件上进行此更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM