Another project, Visual Studio's Code Analysis has this option. But I couldn't find it for StyleCop (AKA Source Analysis).
The file I want to ignore is a dbml's .designer.cs code, that includes the // <autogenerated>
tag. A blog post tells me that it would be sufficient, but in my case it is not.