aboutsummaryrefslogtreecommitdiff
path: root/Timeline/GlobalSuppressions.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-10-19 17:33:38 +0800
committer杨宇千 <crupest@outlook.com>2019-10-19 17:33:38 +0800
commita268999b8c975588c01b345829edfc0099af6f93 (patch)
treef75fde126094e8310dd9e2588bb9b9e8baa79a3b /Timeline/GlobalSuppressions.cs
parentfa2a3282c51d831b25f374803301e75eac15d11c (diff)
downloadtimeline-a268999b8c975588c01b345829edfc0099af6f93.tar.gz
timeline-a268999b8c975588c01b345829edfc0099af6f93.tar.bz2
timeline-a268999b8c975588c01b345829edfc0099af6f93.zip
...
Diffstat (limited to 'Timeline/GlobalSuppressions.cs')
-rw-r--r--Timeline/GlobalSuppressions.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Timeline/GlobalSuppressions.cs b/Timeline/GlobalSuppressions.cs
new file mode 100644
index 00000000..3c9c8341
--- /dev/null
+++ b/Timeline/GlobalSuppressions.cs
@@ -0,0 +1,9 @@
+// This file is used by Code Analysis to maintain SuppressMessage
+// attributes that are applied to this project.
+// Project-level suppressions either have no target or are given
+// a specific target and scoped to a namespace, type, member, etc.
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task", Justification = "This is not a UI application.")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1034:Nested types should not be visible", Justification = "This is not bad.")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1062:Validate arguments of public methods", Justification = "No need to check the null because it's ASP.Net's duty.", Scope = "namespaceanddescendants", Target = "Timeline.Controllers")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores", Justification = "Error code constant identifiers use nested names.", Scope = "type", Target = "Timeline.ErrorCodes")]