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/SA1636.md
+68-7Lines changed: 68 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,18 +21,79 @@ The file header at the top of a C# code file does not contain the appropriate co
21
21
22
22
## Rule description
23
23
24
-
A violation of this rule occurs when the file header at the top of a C# file does not contain the copyright text that has been specified for the project. To enable this rule, navigate to the StyleCop settings for the project and change to the Company Information tab, as shown below:
24
+
A violation of this rule occurs when the file header at the top of a C# file does not contain the copyright text that has been specified for the project.
25
25
26
-

26
+
In order to enable this rule, the `copyrightText` property must have been specified. See the [configuration](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/Configuration.md) section for details on how to set this up.
27
27
28
-
Check the checkbox at the top of the settings page, and fill in the required copyright text for your company. Click OK to save the settings. With these settings in place, every file within the project must contain the required copyright text within its file header copyright tag, as shown in the example below:
28
+
The value of the `xmlHeader` property will influence the behavior of this rule. When the `xmlHeader` property is **true** (the default), StyleCop Analyzers expects file headers to conform to the following standard StyleCop format.
Copy file name to clipboardExpand all lines: documentation/SA1641.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,12 @@ The file header at the top of a C# code file does not contain the appropriate co
21
21
22
22
## Rule description
23
23
24
-
A violation of this rule occurs when the file header at the top of a C# file does not contain the company name text that has been specified for the project. To enable this rule, navigate to the StyleCop settings for the project and change to the Company Information tab, as shown below:
24
+
A violation of this rule occurs when the file header at the top of a C# file does not contain the company name text that has been specified for the project.
25
25
26
-

26
+
In order to enable this rule, the `companyName` property must have been specified. In addition to that, the `xmlHeader` property must be either omitted or have a value of **true**.
27
+
See the [configuration](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/Configuration.md) section for details on how to set this up.
27
28
28
-
Check the checkbox at the top of the settings page, and fill in the required company name text for your company. Click OK to save the settings. With these settings in place, every file within the project must contain the required company name text within its file header copyright tag, as shown in the example below:
29
+
With these settings in place, every file within the project must contain the required company name text within its file header copyright tag, as shown in the example below:
0 commit comments