From: Sunghyun Kim Date: Thu, 10 Dec 2020 10:18:22 +0000 (+0900) Subject: [NUI] Fix build warning CA1720 X-Git-Tag: accepted/tizen/unified/20210219.040944~170 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb1fd24cd66c08553e8e0a8295b5669dedce658b;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix build warning CA1720 https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1720 CA1720: Identifiers should not contain type names These warnings need to suppress. because it is very common name and it's already published. According to the document described about the rule, we can suppress warnings. --- diff --git a/src/Tizen.NUI/src/public/NUIConstants.cs b/src/Tizen.NUI/src/public/NUIConstants.cs index 0a779ce..4d20b1a 100755 --- a/src/Tizen.NUI/src/public/NUIConstants.cs +++ b/src/Tizen.NUI/src/public/NUIConstants.cs @@ -14,6 +14,7 @@ using System; using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; namespace Tizen.NUI { @@ -312,6 +313,8 @@ namespace Tizen.NUI /// An enum of Device Class types. /// /// 3 + /// Can't fix because it's already used by other GBM. + [SuppressMessage("Microsoft.Naming", "CA1720: Identifiers should not contain type names")] public enum DeviceClassType { /// @@ -434,6 +437,8 @@ namespace Tizen.NUI /// Enumeration for the property types supported. /// /// 3 + /// Can't fix because it's already used by other GBM. + [SuppressMessage("Microsoft.Naming", "CA1720: Identifiers should not contain type names")] public enum PropertyType { /// diff --git a/src/Tizen.NUI/src/public/PropertyKey.cs b/src/Tizen.NUI/src/public/PropertyKey.cs index 224090d..4156894 100755 --- a/src/Tizen.NUI/src/public/PropertyKey.cs +++ b/src/Tizen.NUI/src/public/PropertyKey.cs @@ -16,6 +16,7 @@ */ using System; using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; namespace Tizen.NUI { @@ -53,6 +54,8 @@ namespace Tizen.NUI /// The type of key. /// /// 3 + /// Can't fix because it's already used by other GBM. + [SuppressMessage("Microsoft.Naming", "CA1720:Identifiers should not contain type names")] public enum KeyType { ///