views:

319

answers:

2

I just upgraded a project from 2008 to 2010 Beta 2 and StyleCop is now reporting SA1305 (Hungarian notation) warnings on variable names with the prefix 'is'. 'Is' is definitely in the list of allowed prefixes.

Is this a known issue? Has anyone else run across this problem? The code was definitely compiling without any warnings in 2008.

A: 

just add it like this:

is

http://www.thewayithink.co.uk/stylecop/sa1305.htm

chauey
It's in the default list, actually.
Jedidja
A: 

You can manually add the "is" exception to Settings.StyleCop:

<Analyzers>    
  <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.NamingRules">
    <AnalyzerSettings>
      <CollectionProperty Name="Hungarian">
        <Value>is</Value>
      </CollectionProperty>
    </AnalyzerSettings>
  </Analyzer>
</Analyzers>
Jenn