Skip to content
ptittof57 edited this page Aug 15, 2015 · 5 revisions
<title>SA1634: FileHeaderMustShowCopyright</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

FileHeaderMustShowCopyright

CheckId

SA1634

Category

Documentation Rules

Cause

The file header at the top of a C# code file is missing a copyright tag.

Rule Description

A violation of this rule occurs when the file header at the top of a C# file is missing a copyright tag. For example:

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

//<Tag>A fileheader which does not contain a copyright tag</Tag>

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

A file header should include a copyright tag, as follows:

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

// <copyright file="Widget.cs" company="My Company">

// Custom company copyright tag.

// </copyright>

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

How to Fix Violations

To fix a violation of this rule, add a standard copyright tag to the file header.

How to Suppress Violations

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