PMD – Lightning Rules

< 1 min read

The following table shows the list of PMD Lightning rules that are checked by Quality Clouds.

Best PracticeIssue SeverityImpact Area
Avoid using the with keywordHighManageability
Avoid functions with inconsistent return typesMediumManageability
Avoid unintended global variablesHighManageability
Avoid unintended modification of variables outside loopsHighManageability
Avoid using the ParseInt function without an explicit base parameterHighManageability
Avoid assignments in operandsMediumManageability
Avoid using for statements without using curly bracesMediumManageability
Avoid using if..else statements without using curly bracesMediumManageability
Avoid using if statements without using curly bracesMediumManageability
Avoid return statements in if blocksMediumManageability
Avoid unnecessary code blocksMediumManageability
Avoid unnecessary parenthesisLowManageability
Avoid unreachable codeMediumManageability
Avoid using while statements without using curly bracesMediumManageability
Avoid trailing commas in object or array literalsHighManageability
Avoid use of the == operatorMediumManageability
Avoid declaring integers over 15 digitsHighManageability

PMD Copyright

This product includes software developed in part by support from the Defense Advanced Research Project Agency (DARPA).

Updated on March 21, 2025
Was it helpful ?