@@ -11,6 +11,7 @@ insert_final_newline = true
11
11
indent_style = space
12
12
indent_size = 4
13
13
trim_trailing_whitespace = true
14
+ spelling_exclusion_path = ./exclusion.dic
14
15
15
16
[* .json ]
16
17
indent_size = 2
@@ -273,11 +274,13 @@ dotnet_diagnostic.IDE0043.severity = warning
273
274
dotnet_diagnostic.IDE0062.severity = warning
274
275
# ConvertTypeOfToNameOf
275
276
dotnet_diagnostic.IDE0082.severity = warning
277
+ # Remove unnecessary lambda expression
278
+ dotnet_diagnostic.IDE0200.severity = none
276
279
# Remove redundant nullable directive
277
280
dotnet_diagnostic.IDE0240.severity = warning
278
281
279
282
# Additional rules for template engine source code
280
- [src/** {Microsoft.TemplateEngine.* ,dotnet-new?* }/** .cs ]
283
+ [{ src,test} /** {Microsoft.TemplateEngine.* ,dotnet-new?* }/** .cs ]
281
284
# Default analyzed API surface = 'public' (public APIs)
282
285
dotnet_code_quality.api_surface = public
283
286
# Provide ObsoleteAttribute message
@@ -313,7 +316,7 @@ dotnet_diagnostic.CA1838.severity = warning
313
316
# Use 'Environment.CurrentManagedThreadId'
314
317
dotnet_diagnostic.CA1840.severity = warning
315
318
# Consider calling ConfigureAwait on the awaited task
316
- dotnet_diagnostic.CA2007.severity = warning
319
+ dotnet_diagnostic.CA2007.severity = none
317
320
# Do not create tasks without passing a TaskScheduler
318
321
dotnet_diagnostic.CA2008.severity = warning
319
322
# Use ValueTasks correctly
@@ -442,7 +445,7 @@ dotnet_diagnostic.SA1642.severity = none
442
445
dotnet_diagnostic.SA1649.severity = none
443
446
444
447
# Disable some StyleCop rules for test common Program.cs that is linked to test project of template engine
445
- [src/Tests /Common/Program.cs ]
448
+ [test /Common/Program.cs ]
446
449
# Declare types in namespaces
447
450
dotnet_diagnostic.CA1050.severity = none
448
451
# Elements should be documented
@@ -453,7 +456,7 @@ dotnet_diagnostic.SA1601.severity = none
453
456
dotnet_diagnostic.SA1633.severity = none
454
457
455
458
# Additional rules for test source code for template engine
456
- [src/Tests /{Microsoft.TemplateEngine.* ,dotnet-new.Tests}/** .cs ]
459
+ [test /{Microsoft.TemplateEngine.* ,dotnet-new.Tests}/** .cs ]
457
460
# Test methods should not be skipped
458
461
dotnet_diagnostic.xUnit1004.severity = warning
459
462
# Elements should appear in the correct order
@@ -503,5 +506,12 @@ dotnet_diagnostic.IDE0040.severity = warning
503
506
[* .txt ]
504
507
insert_final_newline = false
505
508
506
- [src/Tests/dotnet-new.Tests/** /Approvals/** ]
507
- trim_trailing_whitespace = false
509
+ # Verify settings
510
+ [* .{received,verified}.{txt,xml,json} ]
511
+ charset = " utf-8-bom"
512
+ end_of_line = lf
513
+ indent_size = unset
514
+ indent_style = unset
515
+ insert_final_newline = false
516
+ tab_width = unset
517
+ trim_trailing_whitespace = false
0 commit comments