Skip to content

Commit

Permalink
fix: Remove generation of unnecessary SuppressMessage attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kolebynov committed Sep 13, 2024
1 parent f854975 commit 41411c7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/Dusharp/UnionGeneration/UnionCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ private static string GenerateClassUnionImpl(UnionGenerationInfo unionInfo)
unionInfo.TypeSymbol, codeWriter,
innerBlock =>
{
innerBlock.WriteSuppressWarning("CS0660, CS0661", "Equals overriden in derived classes.", false);
innerBlock.WriteSuppressWarning("CA1067", "Equals overriden in derived classes.");
innerBlock.WriteSuppressWarning("CA1000", "For generic unions.");
innerBlock.AppendLine($"abstract partial class {unionInfo.ClassName} : System.IEquatable<{unionInfo.ClassName}>");
Expand Down
1 change: 0 additions & 1 deletion tests/Dusharp.Tests/TestNestedUnion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ namespace Dusharp.Tests
public static partial class TestNestedUnion
{
[Union]
#pragma warning disable CS0660, CS0661 // Equals overriden in derived classes.
public partial class TestUnion<T>
{
[UnionCase]
Expand Down
1 change: 0 additions & 1 deletion tests/Dusharp.Tests/TestUnion.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Dusharp.Tests
{
[Union]
#pragma warning disable CS0660, CS0661 // Equals overriden in derived classes.
public partial class TestUnion<T>
{
[UnionCase]
Expand Down

0 comments on commit 41411c7

Please sign in to comment.