ruleList

説明

ruleList は、分析タスクで使用するファイルの明示的に指定されたリストです。コード分析の実行時に実行されるルールを定義します。

パラメーター

属性 説明 必須
id ルールのリストの ID。リストを参照する際にこの ID を使用します。 任意
refid ruleList インスタンスを別の ruleList への参照にします。
注: refid を指定する場合、他の属性または入れ子の要素は設定しないでください。
任意

入れ子の要素として指定するパラメーター

rule
入れ子にした <rule> 要素を使用して、ruleList に含めるルールを指定します。
属性 説明 必須
xmlFilePath ルールを含むファイルのフル パス。 必要
name ルールの名前。 必要
ruleSet ルールを含む ruleSet。 必要
language ルールが適用されるプログラミング言語。 必要

複数のルールを指定します。

<ruleList id="rule_set_1">
    <rule xmlFilePath="${rulesDir}\GeneralRules.xml" name="Choosing Efficient Computational Data Items - Declarations" language="COBOL" ruleSet="Cobol Performance"/>
    <rule xmlFilePath="${rulesDir}\GeneralRules.xml" name="Operations with Different Decimal Precision - Conditions" language="COBOL" ruleSet="Cobol Performance"/>
    <rule xmlFilePath="${rulesDir}\GeneralRules.xml" name="Uninitialized Data Items" language="COBOL" ruleSet="General Queries"/>
</ruleList>