官术网_书友最值得收藏!

How it works...

The ruleset file is essentially a grouping of a set of code-analysis rules that you can apply to a project to configure it's analysis. It is specified in an XML format and is based on an XML schema that ships with Visual Studio. It is also open sourced, and can be found at https://github.com/dotnet/roslyn/blob/version-2.0.0/src/Compilers/Core/Portable/RuleSet/RuleSetSchema.xsd. A ruleset can be specified for a project using the CodeAnalysisRuleset property in the project file. Each Rules node contains a collection of rule specifications with a common analyzer ID and namespace. Each Rule specification has the rule ID and the effective Action or the severity. The rule Action can take one of the following five values: None (suppressed), Hidden (non-visible in the IDE, primarily a code fix trigger), Info (informational message), Warning, and Error. These rule actions get converted into compilation options for the compiler and override the default severity of the diagnostic ID.

The Rule Set editor is a powerful graphical user interface to search, filter, and bulk-edit rule configurations.

Refer to https://msdn.microsoft.com/en-us/library/dd264996.aspx for a more detailed walk through, and for documentation for ruleset file schema and the Rule Set editor in Visual Studio.
主站蜘蛛池模板: 玉山县| 佛坪县| 江城| 思南县| 福海县| 德兴市| 凤山县| 英吉沙县| 尤溪县| 勐海县| 石渠县| 岫岩| 通化县| 额尔古纳市| 阳朔县| 平凉市| 贵州省| 绵阳市| 蓝田县| 灵寿县| 黄陵县| 盐池县| 萍乡市| 栾城县| 锦屏县| 泰宁县| 湟中县| 文山县| 枣阳市| 循化| 巴东县| 迁安市| 屏山县| 呼和浩特市| 乐至县| 宿州市| 和田县| 辽阳县| 宣武区| 舟山市| 甘洛县|