-
Notifications
You must be signed in to change notification settings - Fork 23
SA1640
TypeName |
FileHeaderMustHaveValidCompanyText |
CheckId |
SA1640 |
Category |
Documentation Rules |
The file header at the top of a C# code file does not contain company name text.
A violation of this rule occurs when the file header at the top of a C# file does not contain a company tag with company name text. For example:
//-----------------------------------------------------------------------
// <copyright file="Widget.cs" company="">
// Custom company copyright tag.
// </copyright>
//-----------------------------------------------------------------------
The company attribute should have text in it. For example:
//-----------------------------------------------------------------------
// <copyright file="Widget.cs" company="My Company">
// Custom company copyright tag.
// </copyright>
//-----------------------------------------------------------------------
To fix a violation of this rule, add and fill-in a company attribute containing the name of the company.
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1640:FileHeaderMustHaveValidCompanyText", Justification = "Reviewed.")]
- - SA0102 - Clean Install
- - Download
- - Documentation Rules - Layout Rules - Maintainability Rules - Naming Rules - Ordering Rules - Readability Rules - Spacing Rules - Suppressions
- - Adding a custom StyleCop settings page - Adding custom rule settings - Authoring a custom styleCop rule - Authoring rules metadata - Custom CSharp Language Service - Custom MSBuild Integration - Hosting StyleCop in a Custom Environment - Installing a Custom Rule - Integrating StyleCop Into Build Environments - Integrating StyleCop into MSBuild - Writing Custom Rules for StyleCop