Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PMD のプロパティでデフォルト ルールを使用する方法。
今、私はデフォルトのルールを次のように使用しています
<rule ref="rulesets/basic.xml/UselessOperationOnImmutable"/>
これは正常に機能しますが、Codesize の「NPathComplexity」のようなルールはプロパティを使用するため、デフォルトのルールも構成できます。これを構成する方法。誰か助けてください。
<rule ref="rulesets/codesize.xml/CyclomaticComplexity"> <properties> <property name="reportLevel" value="5"/> </properties> </rule>
正常に動作しています。