代码之家  ›  专栏  ›  技术社区  ›  Prasad Telkikar

StyleCop:警告未被抑制

  •  0
  • Prasad Telkikar  · 技术社区  · 7 年前

    我正在进行一个项目,其中已经引入了样式cop规则集。 规则集包含将抑制来自项目的警告的规则。

    enter image description here

    我的问题是我在这里遗漏了什么?或者如何抑制中提到的所有警告。 .DotSetting .

    .DotSetting 文件

    <wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
        <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeThisQualifier/@EntryIndexedValue">DO_NOT_SHOW</s:String>
        <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=StyleCop_002ESA1101/@EntryIndexedValue">DO_NOT_SHOW</s:String>
        <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=StyleCop_002ESA1126/@EntryIndexedValue">DO_NOT_SHOW</s:String>
        <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=StyleCop_002ESA1200/@EntryIndexedValue">DO_NOT_SHOW</s:String>
        <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=StyleCop_002ESA1623/@EntryIndexedValue">DO_NOT_SHOW</s:String>
        <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=StyleCop_002ESA1633/@EntryIndexedValue">DO_NOT_SHOW</s:String>
        <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=StyleCop_002ESA1126/@EntryIndexedValue">DO_NOT_SHOW</s:String>
    </wpf:ResourceDictionary>
    

    1 回复  |  直到 7 年前
        1
  •  0
  •   Gabriel Castillo Prada    7 年前

    我使用Settings.StyleCop文件。您可以使用 Stylecop plugin

    右键单击特定项目->样式设置

    enter image description here

    enter image description here

    它按项目生成Settings.StyleCop文件。

    推荐文章