Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 8f4c761

Browse files
author
Jérémie Bertrand
committed
🚨 remove warning on commented code on sample
1 parent 97ac191 commit 8f4c761

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+

2+
// This file is used by Code Analysis to maintain SuppressMessage
3+
// attributes that are applied to this project.
4+
// Project-level suppressions either have no target or are given
5+
// a specific target and scoped to a namespace, type, member, etc.
6+
7+
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Sonar Code Smell", "S125:Sections of code should not be \"commented out\"", Justification = "Commented code is an example", Scope = "member", Target = "~M:ScriptCompositionSample.Program.Main")]
8+

sample/ScriptCompositionSample/ScriptCompositionSample.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
<Reference Include="System.Xml" />
9898
</ItemGroup>
9999
<ItemGroup>
100+
<Compile Include="GlobalSuppressions.cs" />
100101
<Compile Include="IGreeter.cs" />
101102
<Compile Include="Program.cs" />
102103
<Compile Include="Properties\AssemblyInfo.cs" />

0 commit comments

Comments
 (0)