Skip to content

Commit e8df919

Browse files
committed
Ignore warnings in MVVM generated sources
Until we generate sources based on regulated and acceptable set of code-style rules, warnings for the MVVM generated sources should be ignored for a clean build. We know and acknowledge these warnings and they shouldn't bloat our build logs.
1 parent 445b6cd commit e8df919

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed
Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,35 @@
1-
[*.{cs,vb}]
21

3-
# SA1601: Partial elements should be documented
2+
# Analyzer Configurations for Unit Test sources
3+
4+
# C# Source Files
5+
[*.cs]
6+
7+
# A C# partial element is missing a documentation header.
48
dotnet_diagnostic.SA1601.severity = none
9+
10+
# The Parameter has no matching param tag in the XML comment.
511
dotnet_diagnostic.CS1573.severity = none
12+
13+
# Missing XML comment for publicly visible type or member.
614
dotnet_diagnostic.CS1591.severity = none
7-
dotnet_diagnostic.CS1712.severity = none
15+
16+
# The Type parameter has no matching typeparam tag in the XML comment.
17+
dotnet_diagnostic.CS1712.severity = none
18+
19+
20+
# Analyzer Configurations for MVVM Source Generated test sources
21+
22+
# C# Source Files
23+
[Microsoft.Toolkit.Mvvm.SourceGenerators/**.cs]
24+
25+
# Prefix local calls with this
26+
dotnet_diagnostic.SA1101.severity = none
27+
28+
# The file header XML is invalid.
29+
dotnet_diagnostic.SA1633.severity = none
30+
31+
# File name should match first type name.
32+
dotnet_diagnostic.SA1649.severity = none
33+
34+
# Non-nullable field 'value' must contain a non-null value when exiting constructor.
35+
dotnet_diagnostic.CS8618.severity = none

0 commit comments

Comments
 (0)