SA1649 with a enum only file

Jun 11, 2014 at 9:34 AM
Hello,
I have the following problem and I believe that this might be a StyleCop bug.

I have a namespace which contains several classes, interfaces, structs and enums. Since it is quite a complex namespace, I divided it into 5 files. I intend one of these files to contain all the enums. Besides, the file has a header that complies with SA1649 ("Validates that a file header contains a file attribute which contains the name of the first type in the file").
//--------------------------------------------------------------
// <product_name>FOO PRODUCT</product_name>
//--------------------------------------------------------------
// <copyright file="MyEnum1.cs" company="Foo Inc">
// This is a fake copyright.
// </copyright>
//--------------------------------------------------------------
// <namespace>MyNamespace</namespace>
//--------------------------------------------------------------
namespace MyNamespace
{
   public Enum MyEnum1
   {
   }
   public Enum MyEnum2
   {
   }
   public Enum MyEnum3
   {
   }
}
According to the sample code above, this field should be "MyEnum1.cs". Nevertheless, when I compile and run StyleCop, it asks me to rename the field to MyEnum3.cs alleging SA1649.
I believe that the issue might be related to the issue discussed in this topic and this workitem: StyleCop is looking for the first non-enum type in order to decide the name of the field.

I appreciate confirmation on whether this is a StyleCop bug or not.
Thank you.
Alicia.