-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable support for StaticCodeAnalysis.SuppressMessages.xml (#643)
* Enable support for StaticCodeAnalysis.SuppressMessages.xml to suppress rules for individual files fixes #578 * fix typos * fix more typos * Set current dir * fix space
- Loading branch information
Showing
11 changed files
with
121 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
test/DacpacTool.Tests/Suppression/StaticCodeAnalysis.SuppressMessages.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="proc1.sql"> | ||
<SuppressedRule Category="Microsoft.Rules.Data" RuleId="SR0001" /> | ||
</SuppressedFile> | ||
</StaticCodeAnalysis> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE PROCEDURE [dbo].[sp_Test] | ||
AS | ||
BEGIN | ||
SELECT * FROM [dbo].[MyTable]; | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE PROCEDURE [dbo].[sp_TestUnsuppressed] | ||
AS | ||
BEGIN | ||
SELECT * FROM [dbo].[MyTable]; | ||
END |
5 changes: 5 additions & 0 deletions
5
test/TestProjectWithAnalyzers/Procedures/sp_TestUnsuppressed.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE PROCEDURE [dbo].[sp_TestUnsuppressed] | ||
AS | ||
BEGIN | ||
SELECT * FROM [dbo].[MyTable]; | ||
END |
6 changes: 6 additions & 0 deletions
6
test/TestProjectWithAnalyzers/StaticCodeAnalysis.SuppressMessages.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="Procedures\sp_Test.sql"> | ||
<SuppressedRule Category="Microsoft.Rules.Data" RuleId="SR0001" /> | ||
</SuppressedFile> | ||
</StaticCodeAnalysis> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters