From c374539e7eb25b53c685e45c7b594faaebfd7f39 Mon Sep 17 00:00:00 2001 From: Wonyoung Choi Date: Wed, 16 Oct 2019 16:46:04 +0900 Subject: [PATCH] [Build] Use ruleset file for the static analyzer --- build/Global.ruleset | 207 ++++++++++++++++++++++++++++++++++++++++++++ build/GlobalSuppressions.cs | 11 --- build/analyzers.props | 13 ++- build/build.proj | 4 +- 4 files changed, 215 insertions(+), 20 deletions(-) create mode 100755 build/Global.ruleset delete mode 100644 build/GlobalSuppressions.cs diff --git a/build/Global.ruleset b/build/Global.ruleset new file mode 100755 index 0000000..b1a2180 --- /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 f66a5fd..0000000 --- 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 4383d27..70fa772 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 e1a811d..ddfa652 100644 --- a/build/build.proj +++ b/build/build.proj @@ -7,6 +7,7 @@ Release False False + False @@ -25,7 +26,8 @@ - + + -- 2.7.4