[doc] Update writing rules intro for explaining language attribute

This commit is contained in:
Andreas Dangel
2020-07-30 10:14:33 +02:00
parent 7ccec3bcef
commit 3621bc3069
2 changed files with 10 additions and 5 deletions

View File

@@ -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

View File

@@ -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