SA1649 and Global.asax.cs file header

Apr 13, 2011 at 7:32 PM

I'm using Resharper 5.1 with StyleCop 4.5 Preview. In my ASP.NET MVC3 application's global.asax.cs file, StyleCop is reporting SA1649 on the file header because the copyright tag's file attribute does not match the name of the first type in the file (which is "MvcApplication", by default). Now I know I can just rename the class to "Global", still inherit from System.Web.HttpApplication, and StyleCop will quit complaining there a way to suppress this message just for this particular instance? Thanks!

Apr 15, 2011 at 9:04 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.