diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index cdcddea67f..c265836b94 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -14,8 +14,47 @@ This is a {{ site.pmd.release_type }} release. ### New and noteworthy +#### New Rules + +* The new Apex rule {% rule "apex/codestyle/FieldNamingConventions" %} (`apex-codestyle`) checks the naming + conventions for field declarations. By default this rule uses the standard Apex naming convention (Camel case), + but it can be configured through properties. + +* The new Apex rule {% rule "apex/codestyle/FormalParameterNamingConventions" %} (`apex-codestyle`) checks the + naming conventions for formal parameters of methods. By default this rule uses the standard Apex naming + convention (Camel case), but it can be configured through properties. + +* The new Apex rule {% rule "apex/codestyle/LocalVariableNamingConventions" %} (`apex-codestyle`) checks the + naming conventions for local variable declarations. By default this rule uses the standard Apex naming + convention (Camel case), but it can be configured through properties. + +* The new Apex rule {% rule "apex/codestyle/PropertyNamingConventions" %} (`apex-codestyle`) checks the naming + conventions for property declarations. By default this rule uses the standard Apex naming convention (Camel case), + but it can be configured through properties. + +#### Modified Rules + +* The Apex rule {% rule "apex/codestyle/ClassNamingConventions" %} (`apex-codestyle`) can now be configured + using various properties for the specific kind of type declarations (e.g. class, interface, enum). + As before, this rule uses by default the standard Apex naming convention (Pascal case). + +* The Apex rule {% rule "apex/codestyle/MethodNamingConventions" %} (`apex-codestyle`) can now be configured + using various properties to differenciate e.g. static methods and test methods. + As before, this rule uses by default the standard Apex naming convention (Camel case). + +#### Deprecated Rules + +* The Apex rule {% rule "apex/codestyle/VariableNamingConventions" %} (`apex-codestyle`) has been deprecated and + will be removed with PMD 7.0.0. The rule is replaced by the more general rules + {% rule "apex/codestyle/FieldNamingConventions" %}, + {% rule "apex/codestyle/FormalParameterNamingConventions" %}, + {% rule "apex/codestyle/LocalVariableNamingConventions" %}, and + {% rule "apex/codestyle/PropertyNamingConventions" %}. + ### Fixed Issues +* apex + * [#1321](https://github.com/pmd/pmd/issues/1321): \[apex] Should VariableNamingConventions require properties to start with a lowercase letter? * dart * [#1809](https://github.com/pmd/pmd/issues/1809): \[dart] \[cpd] Parse error with escape sequences * java-bestpractices @@ -32,6 +71,7 @@ This is a {{ site.pmd.release_type }} release. * [#1799](https://github.com/pmd/pmd/pull/1799): \[java] MethodReturnsInternalArray does not work in inner classes - Fixed #1738 - [Srinivasan Venkatachalam](https://github.com/Srini1993) * [#1802](https://github.com/pmd/pmd/pull/1802): \[python] \[cpd] Add support for Python 2 backticks - [Maikel Steneker](https://github.com/maikelsteneker) * [#1803](https://github.com/pmd/pmd/pull/1803): \[dart] \[cpd] Dart escape sequences - [Maikel Steneker](https://github.com/maikelsteneker) +* [#1817](https://github.com/pmd/pmd/pull/1817): \[apex] Add configurable naming convention rules - [Jeff Hube](https://github.com/jeffhube) {% endtocmaker %} diff --git a/pmd-apex/src/main/resources/category/apex/codestyle.xml b/pmd-apex/src/main/resources/category/apex/codestyle.xml index 06800f2403..262b6f9757 100644 --- a/pmd-apex/src/main/resources/category/apex/codestyle.xml +++ b/pmd-apex/src/main/resources/category/apex/codestyle.xml @@ -314,11 +314,11 @@ A variable naming conventions rule - customize this to your liking. Currently, checks for final variables that should be fully capitalized and non-final variables that should not include underscores. -This rule is deprecated. The rule is replaced -by the more general rules {% rule apex/codestyle/FieldNamingConventions %}, -{% rule apex/codestyle/FormalParameterNamingConventions %}, -{% rule apex/codestyle/LocalVariableNamingConventions %}, and -{% rule apex/codestyle/PropertyNamingConventions %}. +This rule is deprecated and will be removed with PMD 7.0.0. The rule is replaced +by the more general rules {% rule "apex/codestyle/FieldNamingConventions" %}, +{% rule "apex/codestyle/FormalParameterNamingConventions" %}, +{% rule "apex/codestyle/LocalVariableNamingConventions" %}, and +{% rule "apex/codestyle/PropertyNamingConventions" %}. 1 diff --git a/pmd-core/src/main/resources/rulesets/releases/6150.xml b/pmd-core/src/main/resources/rulesets/releases/6150.xml new file mode 100644 index 0000000000..0d9fb888a0 --- /dev/null +++ b/pmd-core/src/main/resources/rulesets/releases/6150.xml @@ -0,0 +1,17 @@ + + + + +This ruleset contains links to rules that are new in PMD v6.15.0 + + + + + + + + +