Skip to content

Commit

Permalink
Introduction of emptyclassAttribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel Nobel committed May 3, 2023
1 parent 97d9239 commit 61102c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Qowaiv.TestTools/Diagnostics/EmptyClassAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Qowaiv.TestTools.Diagnostics;

/// <summary>Decorate empty test classes.</summary>
/// <remarks>
/// Normally, S2094 is indeed a bad practice, but for some test purposes, it
/// can be extremely useful. We do not want to suppress S2094, and by decorating
/// empty classes, S2094 is not raised.
/// </remarks>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class EmptyClassAttribute : Attribute { }

0 comments on commit 61102c6

Please sign in to comment.