C#


ROSLYN.MAINTAINABILITY.CA1505 : Avoid unmaintainable code (C#)

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

要旨

The maintainability index is calculated by using the following metrics: lines of code, program volume, and cyclomatic complexity. Program volume is a measure of the difficulty of understanding of a symbol that is based on the number of operators and operands in the code. Cyclomatic complexity is a measure of the structural complexity of the type or method. A low maintainability index indicates that code is probably difficult to maintain and would be a good candidate to redesign.

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

プロパティ

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

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

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