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

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.
主站蜘蛛池模板: 鹤庆县| 北碚区| 静安区| 文山县| 东兰县| 遂川县| 志丹县| 安宁市| 志丹县| 云浮市| 酉阳| 玛曲县| 金坛市| 兴文县| 遵化市| 北碚区| 石河子市| 五华县| 汾西县| 通化县| 清远市| 彭水| 忻州市| 永安市| 中牟县| 贵定县| 库车县| 甘德县| 林芝县| 乌苏市| 喀什市| 杂多县| 天柱县| 萨嘎县| 达拉特旗| 绩溪县| 牡丹江市| 科技| 阿巴嘎旗| 周至县| 犍为县|