Skip to content

Commit

Permalink
Test supression file
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Oct 17, 2024
1 parent c090b11 commit 38f068e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/ScaffoldingTester/Database/Database.sqlproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunSqlCodeAnalysis>True</RunSqlCodeAnalysis>
<SqlCodeAnalysisRules>-Microsoft.Rules.Data.SR0001;-Microsoft.Rules.Data.SR0008;-Microsoft.Rules.Data.SR0009;-Microsoft.Rules.Data.SR0010;-Microsoft.Rules.Data.SR0013;-Microsoft.Rules.Data.SR0014</SqlCodeAnalysisRules>
<SqlCodeAnalysisRules>
</SqlCodeAnalysisRules>
</PropertyGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>
Expand Down Expand Up @@ -76,6 +77,9 @@
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<None Include="StaticCodeAnalysis.SuppressMessages.xml" />
</ItemGroup>
<Import Project="$(NETCoreTargetsPath)\Microsoft.Data.Tools.Schema.SqlTasks.targets" Condition="'$(NetCoreBuild)' == 'true'" />
<Target Name="BeforeBuild">
<Delete Files="$(BaseIntermediateOutputPath)\project.assets.json" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<StaticCodeAnalysis version="2" xmlns="urn:Microsoft.Data.Tools.Schema.StaticCodeAnalysis">
<SuppressedFile FilePath="dbo\Procedures\Procedure1.sql">
<SuppressedRule Category="Microsoft.Rules.Data" RuleId="SR0001" />
</SuppressedFile>
</StaticCodeAnalysis>
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
@param2 int
AS
SELECT @param1, @param2
SELECT * FROM sys.objects
RETURN 0

0 comments on commit 38f068e

Please sign in to comment.