You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2023/04/07 19:23:50 UTC
[lucenenet] branch master updated: TestTargetFramework.props + .editorconfig: Suppressed some warning noise from SonarCloud
This is an automated email from the ASF dual-hosted git repository.
nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
The following commit(s) were added to refs/heads/master by this push:
new 5f412d685 TestTargetFramework.props + .editorconfig: Suppressed some warning noise from SonarCloud
5f412d685 is described below
commit 5f412d68535b862193a1a1e1fcac3aaf2e4b5e21
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Thu Apr 6 12:57:30 2023 +0700
TestTargetFramework.props + .editorconfig: Suppressed some warning noise from SonarCloud
---
.editorconfig | 8 +++++++-
TestTargetFramework.props | 4 ++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.editorconfig b/.editorconfig
index 5c6a3b5f7..46bd2ece8 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -183,4 +183,10 @@ dotnet_diagnostic.IDE0056.severity = none
dotnet_diagnostic.IDE0057.severity = none
# IDE0070: Use 'System.HashCode.Combine'
-dotnet_diagnostic.IDE0070.severity = none
\ No newline at end of file
+dotnet_diagnostic.IDE0070.severity = none
+
+
+### SonarCloud Issues ###
+
+# S907: Remove this use of 'goto'
+dotnet_diagnostic.S907.severity = none
\ No newline at end of file
diff --git a/TestTargetFramework.props b/TestTargetFramework.props
index fbd97b11f..3bc641de3 100644
--- a/TestTargetFramework.props
+++ b/TestTargetFramework.props
@@ -59,6 +59,7 @@
<NoWarn Label="Nested types should not be visible">$(NoWarn);CA1034</NoWarn>
<NoWarn Label="Use Literals Where Appropriate">$(NoWarn);CA1802</NoWarn>
+ <NoWarn Label="Do not ignore method results">$(NoWarn);CA1806</NoWarn>
<NoWarn Label="Add readonly modifier">$(NoWarn);CA1822</NoWarn>
<NoWarn Label="Avoid zero-length array allocations">$(NoWarn);CA1825</NoWarn>
<NoWarn Label="Do not raise exceptions in exception clauses">$(NoWarn);CA2219</NoWarn>
@@ -75,6 +76,9 @@
<NoWarn Label="Remove unnecessary value assignment">$(NoWarn);IDE0059</NoWarn>
<NoWarn Label="Remove unused parameter">$(NoWarn);IDE0060</NoWarn>
<NoWarn Label="Naming rule violation">$(NoWarn);IDE1006</NoWarn>
+
+ <!-- SonarCloud issues -->
+ <NoWarn Label="Add at least one assertion to this test case">$(NoWarn);S2699</NoWarn>
</PropertyGroup>
</Project>