From: Wonyoung Choi Date: Wed, 16 Oct 2019 07:46:04 +0000 (+0900) Subject: [Build] Use ruleset file for the static analyzer X-Git-Tag: submit/tizen/20191017.005206~1^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c374539e7eb25b53c685e45c7b594faaebfd7f39;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Build] Use ruleset file for the static analyzer --- diff --git a/build/Global.ruleset b/build/Global.ruleset new file mode 100755 index 000000000..b1a2180d9 --- /dev/null +++ b/build/Global.ruleset @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/GlobalSuppressions.cs b/build/GlobalSuppressions.cs deleted file mode 100644 index f66a5fd42..000000000 --- a/build/GlobalSuppressions.cs +++ /dev/null @@ -1,11 +0,0 @@ - -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2225:Operator overloads have named alternates")] -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1305:Specify IFormatProvider")] -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1307:Specify StringComparison")] -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA2101:Specify marshaling for P/Invoke string arguments")] -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1033:Interface methods should be callable by child types")] -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1060:Move pinvokes to native methods class")] -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1030:Use events where appropriate")] -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1822:Mark members as static")] -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Major Code Smell", "S125:Sections of code should not be commented out")] -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Major Bug", "S3903:Types should be defined in named namespaces", Scope = "type", Target = "~T:Interop")] diff --git a/build/analyzers.props b/build/analyzers.props index 4383d27f9..70fa772da 100644 --- a/build/analyzers.props +++ b/build/analyzers.props @@ -1,17 +1,14 @@ + + $(MSBuildThisFileDirectory)Global.ruleset + + - + all runtime; build; native; contentfiles; analyzers - - - _TizenFX_GlobalSuppressions.cs - False - - - \ No newline at end of file diff --git a/build/build.proj b/build/build.proj index e1a811d33..ddfa65220 100644 --- a/build/build.proj +++ b/build/build.proj @@ -7,6 +7,7 @@ Release False False + False @@ -25,7 +26,8 @@ - + +