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

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.
主站蜘蛛池模板: 武山县| 黄石市| 丘北县| 鹤山市| 防城港市| 高平市| 玉田县| 赣州市| 梁山县| 海丰县| 仁寿县| 綦江县| 岳阳市| 安远县| 泽库县| 冕宁县| 犍为县| 汶川县| 周口市| 衡山县| 延寿县| 大余县| 海林市| 黎城县| 济南市| 永州市| 太仆寺旗| 阿克苏市| 河源市| 黄大仙区| 文登市| 仁寿县| 建水县| 汽车| 商水县| 勐海县| 玉门市| 通辽市| 梧州市| 荣成市| 顺昌县|