forked from phoedos/pmd
[doc] Update writing rules intro for explaining language attribute
This commit is contained in:
@@ -120,6 +120,11 @@ Example:
|
||||
</rule>
|
||||
```
|
||||
|
||||
{% include note.html content="In PMD 7, the `language` attribute will be required on all `rule`
|
||||
elements that declare a new rule. Some base rule classes set the language implicitly in their
|
||||
constructor, and so this is not required in all cases for the rule to work. But this
|
||||
behavior will be discontinued in PMD 7, so missing `language` attributes are
|
||||
reported beginning with PMD 6.27.0 as a forward compatibility warning." %}
|
||||
|
||||
## Resource index
|
||||
|
||||
|
@@ -21,11 +21,11 @@ This is a {{ site.pmd.release_type }} release.
|
||||
|
||||
### API Changes
|
||||
|
||||
* In PMD 7, The `language` attribute will be required on all `rule` elements that
|
||||
declare a new rule. Some base rule classes set the language implicitly in their
|
||||
constructor, and so this is not required in all cases for the rule to work. But this
|
||||
behavior will be discontinued in PMD 7, so missing `language` attributes are now
|
||||
reported as a forward compatibility warning.
|
||||
* XML rule definition in rulesets: In PMD 7, the `language` attribute will be required on all `rule`
|
||||
elements that declare a new rule. Some base rule classes set the language implicitly in their
|
||||
constructor, and so this is not required in all cases for the rule to work. But this
|
||||
behavior will be discontinued in PMD 7, so missing `language` attributes are now
|
||||
reported as a forward compatibility warning.
|
||||
|
||||
### External Contributions
|
||||
|
||||
|
Reference in New Issue
Block a user