Skip to content

Commit 0967c29

Browse files
ANcpLuaCopilot
andcommitted
fix: disable MA0007 trailing comma rule, fix Throw.cs auto-generated header
- Set MA0007 (Add comma after last value) severity to none - Fix CS8669 in Throw.cs by adding // <auto-generated/> header Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d735a8f commit 0967c29

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Config/Analyzer.Meziantou.Analyzer.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dotnet_diagnostic.MA0006.severity = silent
3636
# MA0007: Add a comma after the last value
3737
# Help link: https://github.com/Meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0007.md
3838
# Enabled: True, Severity: suggestion
39-
dotnet_diagnostic.MA0007.severity = suggestion
39+
dotnet_diagnostic.MA0007.severity = none
4040

4141
# MA0008: Add StructLayoutAttribute
4242
# Help link: https://github.com/Meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0008.md

src/shared/Throw/Throw.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-

2-
3-
#pragma warning disable IDE0005
1+
// <auto-generated/>
2+
#nullable enable
3+
#pragma warning disable IDE0005
44

55
using System;
66
using System.Collections.Generic;

0 commit comments

Comments
 (0)