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

FileHeaderMustHaveCopyrightText

CheckId

SA1635

Category

Documentation Rules

Cause

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

Rule Description

A violation of this rule occurs when the file header at the top of a C# file does not contain text within its copyright tag. For example:

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

// <copyright file="Widget.cs" company="Sprocket Enterprises">

// </copyright>

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

A file header should include copyright text, as follows:

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

// <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 your company’s standard copyright text to the copyright tag.

How to Suppress Violations

[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1635:FileHeaderMustHaveCopyrightText", Justification = "Reviewed.")]
    </div>
       
</div>
Clone this wiki locally