SA1637: File header should contain file name
Cause
The file header at the top of a C# code file is missing the file name.
Rule description
A violation of this rule occurs when the file header at the top of a C# file does not contain a valid file name tag. For example:
//-----------------------------------------------------------------------
// <copyright company="My Company">
// Custom company copyright tag.
// </copyright>
//-----------------------------------------------------------------------
A file header should include a file tag containing the name of the file, as follows:
//-----------------------------------------------------------------------
// <copyright file="Widget.cs" company="My Company">
// Custom company copyright tag.
// </copyright>
//-----------------------------------------------------------------------
Disabling SA1637 makes the file attribute optional. SA1638 still checks that attribute when it is present.
How to fix violations
To fix a violation of this rule, add a file tag containing the name of the file.
How to suppress violations
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1637:FileHeaderMustContainFileName", Justification = "Reviewed.")]
#pragma warning disable SA1637 // FileHeaderMustContainFileName
#pragma warning restore SA1637 // FileHeaderMustContainFileName