Skip to content

Commit 51355ec

Browse files
geraldbarre-workleapgithub-actions[bot]Copilot
authored
chore(deps): update dependency meziantou.analyzer to 3.0.87 (#165)
* chore(deps): update dependency meziantou.analyzer to 3.0.87 * fix(ci): regenerate analyzer editorconfig for meziantou 3.0.87 Agent-Logs-Url: https://github.com/workleap/wl-dotnet-codingstandards/sessions/fa11159d-071e-4c65-8fde-fe4cbe54ce47 Co-authored-by: geraldbarre-workleap <240971877+geraldbarre-workleap@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: geraldbarre-workleap <240971877+geraldbarre-workleap@users.noreply.github.com>
1 parent 540ef95 commit 51355ec

2 files changed

Lines changed: 63 additions & 13 deletions

File tree

Workleap.DotNet.CodingStandards.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<copyright>Copyright © Workleap</copyright>
1414
<repository type="git" url="$RepositoryUrl$" commit="$RepositoryCommit$" branch="$RepositoryBranch$" />
1515
<dependencies>
16-
<dependency id="Meziantou.Analyzer" version="3.0.29" />
16+
<dependency id="Meziantou.Analyzer" version="3.0.87" />
1717
<dependency id="Microsoft.CodeAnalysis.BannedApiAnalyzers" version="3.3.4" />
1818
<dependency id="Microsoft.CodeAnalysis.NetAnalyzers" version="10.0.201" />
1919
</dependencies>

src/files/analyzers/Analyzer.Meziantou.Analyzer.editorconfig

Lines changed: 62 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ dotnet_diagnostic.MA0030.severity = warning
161161
# Enabled: True, Severity: suggestion
162162
dotnet_diagnostic.MA0031.severity = none
163163

164-
# MA0032: Use an overload with a CancellationToken argument
164+
# MA0032: Use an overload with a CancellationToken argument, even when no token is available in scope
165165
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0032.md
166166
# Enabled: False, Severity: suggestion
167167
dotnet_diagnostic.MA0032.severity = none
@@ -206,7 +206,7 @@ dotnet_diagnostic.MA0040.severity = warning
206206
# Enabled: True, Severity: suggestion
207207
dotnet_diagnostic.MA0041.severity = none
208208

209-
# MA0042: Do not use blocking calls in an async method
209+
# MA0042: Do not use blocking calls when the calling method is async
210210
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0042.md
211211
# Enabled: True, Severity: suggestion
212212
dotnet_diagnostic.MA0042.severity = suggestion
@@ -221,7 +221,7 @@ dotnet_diagnostic.MA0043.severity = none
221221
# Enabled: True, Severity: suggestion
222222
dotnet_diagnostic.MA0044.severity = suggestion
223223

224-
# MA0045: Do not use blocking calls in a sync method (need to make calling method async)
224+
# MA0045: Do not use blocking calls, even when the calling method must become async
225225
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0045.md
226226
# Enabled: False, Severity: suggestion
227227
dotnet_diagnostic.MA0045.severity = none
@@ -616,7 +616,7 @@ dotnet_diagnostic.MA0122.severity = none
616616
# Enabled: True, Severity: warning
617617
dotnet_diagnostic.MA0123.severity = none
618618

619-
# MA0124: Log parameter type is not valid
619+
# MA0124: Microsoft.Extensions.Logging parameter type is not valid
620620
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0124.md
621621
# Enabled: True, Severity: warning
622622
dotnet_diagnostic.MA0124.severity = none
@@ -633,7 +633,7 @@ dotnet_diagnostic.MA0126.severity = none
633633

634634
# MA0127: Use String.Equals instead of is pattern
635635
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0127.md
636-
# Enabled: False, Severity: warning
636+
# Enabled: True, Severity: silent
637637
dotnet_diagnostic.MA0127.severity = none
638638

639639
# MA0128: Use 'is' operator instead of SequenceEqual
@@ -691,7 +691,7 @@ dotnet_diagnostic.MA0137.severity = none
691691
# Enabled: False, Severity: warning
692692
dotnet_diagnostic.MA0138.severity = none
693693

694-
# MA0139: Log parameter type is not valid
694+
# MA0139: Serilog parameter type is not valid
695695
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0139.md
696696
# Enabled: True, Severity: warning
697697
dotnet_diagnostic.MA0139.severity = none
@@ -701,12 +701,12 @@ dotnet_diagnostic.MA0139.severity = none
701701
# Enabled: True, Severity: warning
702702
dotnet_diagnostic.MA0140.severity = warning
703703

704-
# MA0141: Use pattern matching instead of inequality operators for null check
704+
# MA0141: Use 'is not null' instead of '!= null'
705705
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0141.md
706706
# Enabled: False, Severity: suggestion
707707
dotnet_diagnostic.MA0141.severity = none
708708

709-
# MA0142: Use pattern matching instead of equality operators for null check
709+
# MA0142: Use 'is null' instead of '== null'
710710
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0142.md
711711
# Enabled: False, Severity: suggestion
712712
dotnet_diagnostic.MA0142.severity = none
@@ -736,17 +736,17 @@ dotnet_diagnostic.MA0146.severity = warning
736736
# Enabled: True, Severity: warning
737737
dotnet_diagnostic.MA0147.severity = none
738738

739-
# MA0148: Use pattern matching instead of equality operators for discrete value
739+
# MA0148: Use 'is' patterns instead of '==' for constant values
740740
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0148.md
741741
# Enabled: False, Severity: suggestion
742742
dotnet_diagnostic.MA0148.severity = none
743743

744-
# MA0149: Use pattern matching instead of inequality operators for discrete value
744+
# MA0149: Use 'is not' patterns instead of '!=' for constant values
745745
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0149.md
746746
# Enabled: False, Severity: suggestion
747747
dotnet_diagnostic.MA0149.severity = none
748748

749-
# MA0150: Do not call the default object.ToString explicitly
749+
# MA0150: Do not call ToString() when the type falls back to object.ToString()
750750
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0150.md
751751
# Enabled: True, Severity: warning
752752
dotnet_diagnostic.MA0150.severity = none
@@ -846,7 +846,7 @@ dotnet_diagnostic.MA0169.severity = none
846846
# Enabled: False, Severity: warning
847847
dotnet_diagnostic.MA0170.severity = none
848848

849-
# MA0171: Use pattern matching instead of HasValue for Nullable<T> check
849+
# MA0171: Use 'is null' / 'is not null' instead of Nullable<T>.HasValue
850850
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0171.md
851851
# Enabled: False, Severity: suggestion
852852
dotnet_diagnostic.MA0171.severity = none
@@ -951,3 +951,53 @@ dotnet_diagnostic.MA0189.severity = suggestion
951951
# Enabled: True, Severity: suggestion
952952
dotnet_diagnostic.MA0190.severity = suggestion
953953

954+
# MA0191: Do not use the null-forgiving operator
955+
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0191.md
956+
# Enabled: False, Severity: warning
957+
dotnet_diagnostic.MA0191.severity = none
958+
959+
# MA0192: Use HasFlag instead of bitwise checks
960+
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0192.md
961+
# Enabled: False, Severity: suggestion
962+
dotnet_diagnostic.MA0192.severity = none
963+
964+
# MA0193: Use an overload with a MidpointRounding argument
965+
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0193.md
966+
# Enabled: True, Severity: suggestion
967+
dotnet_diagnostic.MA0193.severity = suggestion
968+
969+
# MA0194: Merge is expressions on the same value
970+
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0194.md
971+
# Enabled: True, Severity: suggestion
972+
dotnet_diagnostic.MA0194.severity = suggestion
973+
974+
# MA0195: Do not use static fields before they are initialized
975+
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0195.md
976+
# Enabled: True, Severity: warning
977+
dotnet_diagnostic.MA0195.severity = warning
978+
979+
# MA0196: Do not use inheritdoc on non-inheriting members
980+
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0196.md
981+
# Enabled: True, Severity: warning
982+
dotnet_diagnostic.MA0196.severity = warning
983+
984+
# MA0197: Add dedicated documentation on types
985+
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0197.md
986+
# Enabled: True, Severity: suggestion
987+
dotnet_diagnostic.MA0197.severity = suggestion
988+
989+
# MA0198: Specify cref for ambiguous inheritdoc on types
990+
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0198.md
991+
# Enabled: True, Severity: warning
992+
dotnet_diagnostic.MA0198.severity = warning
993+
994+
# MA0199: Do not use inheritdoc on types without inheritance source
995+
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0199.md
996+
# Enabled: True, Severity: warning
997+
dotnet_diagnostic.MA0199.severity = warning
998+
999+
# MA0200: Do not use empty property patterns with non-nullable value types
1000+
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0200.md
1001+
# Enabled: True, Severity: suggestion
1002+
dotnet_diagnostic.MA0200.severity = suggestion
1003+

0 commit comments

Comments
 (0)