Stylecop not ignoring generated code

Feb 14, 2013 at 10:46 AM
In Visual Studio 2012, using MVC4 I am unable to suppress Stylecop errors for a Reference.cs file which is generated by a service reference.

The code contains the following header:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.18033
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
But Stylecop is still showing errors for this file, anyone know a fix for this?