Navigation:  StyleCop 4.3 > StyleCop 4.3 Rules > Documentation Rules >

SA1640: FileHeaderMustHaveValidCompanyText

Previous pageReturn to chapter overviewNext page
StyleCop 4.3

Send comments on this topic.

SA1640: FileHeaderMustHaveValidCompanyText

Glossary Item Box

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="Sprocket Enterprises">

//     Copyright (c) Sprocket Enterprises. All rights reserved.

// </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.

 


© Microsoft Corporation. All Rights Reserved.