Friday 15 February 2013

visual studio 2010 - Why is StyleCop SA1305 not respecting the allowed prefixes list in VS2010 (or MSBuild)? -


I upgraded a project from 2008 to 2010 beta 2 and the Stylespog is now reporting SA1305 (Hungarian Notation) warnings on Vierbian names.

The prefix 'is' is 'certainly' in the list of allowed prefixes.

Is this a known issue? Is anyone else walking in this problem? This code was definitely compiled without any warning in 2008.

Update : It has been discovered that this view may do the required work in the studio, but then could fail via MSBuild. See the answers below for answers.

You can manually add the "Exceptions" exception to the settings. Style coop:

& lt; Analyzer & gt; & Lt; Analyst Analyst I = "Microsoft Style Co. Csarp. Naming Rules" & gt; & Lt; AnalyzerSettings & gt; & Lt; Collection Property Name = "Hungarian" & gt; & Lt; VALUE & gt; & Lt; / Pricing & gt; & Lt; / CollectionProperty & gt; & Lt; / AnalyzerSettings & gt; & Lt; / Analyzer & gt; & Lt; / Analyzer & gt;

No comments:

Post a Comment