C#


ROSLYN.MAINTAINABILITY.CA1506 : Avoid excessive class coupling (C#)

See Roslyn-Detected C# Warning Classes for more information.

要旨

This rule measures class coupling by counting the number of unique type references that a symbol contains. Symbols that have a high degree of class coupling can be difficult to maintain. It is a good practice to have types and methods that exhibit low coupling and high cohesion. To fix this violation, try to redesign the code to reduce the number of types to which it is coupled.

この指摘はRoslynのCA1506に該当します。ルール詳細につい ては、下記リンクを参照してください。 CA1506

プロパティ

クラス名 Avoid excessive class coupling (C#)
日本語クラス名 Avoid excessive class coupling (C#)
クラス分類 信頼性 (reliability)
ニーモニック ROSLYN.MAINTAINABILITY.CA1506
カテゴリー なし
対応言語 C# で利用可能です。
有効/無効設定 このワーニングクラスのチェックはデフォルトで無効になっています。チェックを有効にするにはプロジェクト設定ファイル (configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += allow class="Avoid excessive class coupling (C#)"

関連のある設定ファイルパラメータ

設定ファイルの以下のパラメータがこのワーニングクラスのチェックに影響します。