Skip to content
ptittof57 edited this page Aug 15, 2015 · 5 revisions
<title>SA1640: FileHeaderMustHaveValidCompanyText</title> <script src="script/helpstudio.js" type="text/javascript"></script> <script src="script/StandardText.js" type="text/jscript"></script>
<script type="text/jscript">WritePageTop(document.title);</script>

TypeName

FileHeaderMustHaveValidCompanyText

CheckId

SA1640

Category

Documentation Rules

Cause

The file header at the top of a C# code file does not contain company name text.

Rule Description

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>

//-----------------------------------------------------------------------

How to Fix Violations

To fix a violation of this rule, add and fill-in a company attribute containing the name of the company.

How to Suppress Violations

[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1640:FileHeaderMustHaveValidCompanyText", Justification = "Reviewed.")]
Clone this wiki locally