You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/SA1633.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,11 @@ A C# code file is missing a standard file header.
21
21
22
22
## Rule description
23
23
24
-
A violation of this rule occurs when a C# source file is missing a file header. The file header must begin on the first line of the file, and must be formatted as a block of comments containing Xml, as follows:
24
+
A violation of this rule occurs when a C# source file is missing a file header.
25
+
26
+
The file header must begin at the start of the file, and it may only be preceded by whitespace.
27
+
28
+
The file header must be formatted as a block of comments containing either Xml or preconfigured text, as follows:
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
42
+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
43
+
```
44
+
45
+
The type of header to use depends on the setting of the `xmlHeader` property. See the [configuration](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/Configuration.md) section for details on how to set this up.
46
+
47
+
### Examples
48
+
34
49
For example, a file called Widget.cs from a fictional company called Sprocket Enterprises should contain a file header similar to the following:
0 commit comments