Skip to content

Commit

Permalink
Fixed usppressions
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Apr 9, 2023
1 parent f7952ba commit 730d200
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Experiments/MakeMatrix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public CompatibilityCheck(T from, T to)

public T To { get; }

[SuppressMessage(category: "SonarAnalyzer.CSharp", checkId: "S1144: Unused private property", Justification = "For testing purposes")]
public bool? Compatibile { get; set; }
}
}
3 changes: 3 additions & 0 deletions src/Experiments/ReferenceObjects/Services/SimpleInterface.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
using System.Diagnostics.CodeAnalysis;

namespace Experiments.ReferenceObjects.Services;

[SuppressMessage(category: "SonarAnalyzer.CSharp", checkId: "S2094: Empty class make it an interface", Justification = "For testing purposes")]
public sealed class SimpleInterface : ISimpleInterface
{
}
2 changes: 2 additions & 0 deletions src/Models/ExampleEnumValues.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;

namespace Models;

Expand All @@ -12,6 +13,7 @@ public enum ExampleEnumValues

SAME_AS_ONE = ONE,

[SuppressMessage(category: "SonarAnalyzer.CSharp", checkId: "S1133: Remove this deprecated code", Justification = "For testing purposes")]
[Obsolete("This value is deprecated, use " + nameof(THREE) + " instead.")]
TWO = 2,

Expand Down

0 comments on commit 730d200

Please sign in to comment.