File tree Expand file tree Collapse file tree 5 files changed +10
-96
lines changed Expand file tree Collapse file tree 5 files changed +10
-96
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ insert_final_newline = true
44
44
# C# files
45
45
[* .cs ]
46
46
47
+ # ### File Header Template ####
48
+ file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license.\nSee the LICENSE file in the project root for more information.
49
+
47
50
# ### .NET Coding Conventions ####
48
51
49
52
# this. and Me. preferences
@@ -342,6 +345,9 @@ dotnet_diagnostic.CA2240.severity = warning
342
345
dotnet_diagnostic.CA2241.severity = warning
343
346
dotnet_diagnostic.CA2242.severity = warning
344
347
348
+ # Require file header OR A source file contains a header that does not match the required text
349
+ dotnet_diagnostic.IDE0073.severity = error
350
+
345
351
# StyleCop Code Analysis
346
352
347
353
# Closing parenthesis should be spaced correctly: "foo()!"
Original file line number Diff line number Diff line change 44
44
- script : nbgv cloud
45
45
displayName : Set NBGV version
46
46
47
- # Verify headers
48
- - pwsh : build/Update-Headers.ps1 -Verify
49
- displayName : Verify headers
50
-
51
47
# Restore solution
52
48
- script : dotnet restore -p:Configuration=$(Build.Configuration)
53
49
displayName : Restore solution
Original file line number Diff line number Diff line change 14
14
<PackageIconUrl >https://raw.githubusercontent.com/CommunityToolkit/dotnet/main/build/nuget.png</PackageIconUrl >
15
15
</PropertyGroup >
16
16
17
+ <PropertyGroup >
18
+ <EnforceCodeStyleInBuild >true</EnforceCodeStyleInBuild >
19
+ </PropertyGroup >
20
+
17
21
<PropertyGroup >
18
22
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
19
23
<LangVersion >10.0</LangVersion >
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments