あなたが直面している問題は再現できません。 ConsoleApplication (C#)
を作成し、デフォルトコードを使用しました。私はすべての問題を選択し、右クリックしてを表示します。をの抑制ファイルにします。私は再構築し、清掃し、VSを再始動し、警告が表示されなくなりました。
Program.csの
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication14
{
class Program
{
static void Main(string[] args)
{
}
}
}
GlobalSuppression.cs
// 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("Sonar Code Smell", "S1172:Unused method parameters should be removed", Justification = "<Pending>", Scope = "member", Target = "~M:ConsoleApplication14.Program.Main(System.String[])")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Sonar Code Smell", "S1186:Methods should not be empty", Justification = "<Pending>", Scope = "member", Target = "~M:ConsoleApplication14.Program.Main(System.String[])")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Sonar Code Smell", "S1118:Utility classes should not have public constructors", Justification = "<Pending>", Scope = "type", Target = "~T:ConsoleApplication14.Program")]
私は、最新SonarLintバージョン(2.9.0.384)を使用しています。シンプルなレトロケースを作成して、何が起きているのか調べることができますか?
あなたは[接続モード](http://www.sonarlint.org/visualstudio/index.html#Connected)に気付いていますか?接続モードでは、品質プロファイルからルールを削除できます。そうすれば、チーム内で標準を同期させることができます。 – janos
実際にSonarQubeサーバーアプローチを使用する必要はありません。私たちのニーズには複雑すぎます。すべての警告が処理されたときに、「きれいな」画面が表示され、表示される新しい警告が明白になるように、VS Errors List画面の警告タブから抑制された警告が消えてしまいます。これは不可能ですか? –