Merge branch 'pr-2617'

[core] Deprecate missing language attribute on rule definition #2617
This commit is contained in:
Andreas Dangel
2020-07-30 10:19:03 +02:00
32 changed files with 244 additions and 14 deletions

View File

@ -37,6 +37,7 @@ with (object) {
</rule>
<rule name="ConsistentReturn"
language="ecmascript"
since="5.0"
message="A function should not mix 'return' statements with and without a result."
class="net.sourceforge.pmd.lang.ecmascript.rule.bestpractices.ConsistentReturnRule"