Code Analysis - CA1704: Correct the spelling of 'Ps'

前端 未结 2 1607
遥遥无期
遥遥无期 2021-01-03 00:11

I am getting the following warning from Code Analysis in VS2010

CA1704 : Microsoft.Naming : Correct the spelling of \'Ps\' in member name \'MyClas

相关标签:
2条回答
  • 2021-01-03 00:49

    It's being rejected because it's flagged as an unrecognized word in the "root" custom dictionary in Code Analysis installation folder (usually %ProgramFiles%\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop). You'll need to remove it from the root dictionary unrecognized list before adding it as a recognized word in a project-specific dictionary will take effect.

    0 讨论(0)
  • 2021-01-03 00:53

    "Ps" is also part of the <Unrecognized> section in my dictionary (and I never altered it). Apart from adding it to <Recognized> section, also remove it from the <Unrecognized> section.

    <Dictionary>
      <Words>
        <Unrecognized>
    <!--      <Word>ps</Word> -->
           ...more entries
        </Unrecognized>
        <Recognized>
    -      <Word>ps</Word>
           ...more entries
        </Recognized>
        <!-- more stuff -->
    
    0 讨论(0)
提交回复
热议问题