You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2024/06/02 09:12:01 UTC

(maven-shared-resources) branch MSHARED-1401-hidden-field created (now 8258d3a)

This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a change to branch MSHARED-1401-hidden-field
in repository https://gitbox.apache.org/repos/asf/maven-shared-resources.git


      at 8258d3a  [MSHARED-1401] Checkstyle add setterCanReturnItsClass for HiddenField

This branch includes the following new commits:

     new 8258d3a  [MSHARED-1401] Checkstyle add setterCanReturnItsClass for HiddenField

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven-shared-resources) 01/01: [MSHARED-1401] Checkstyle add setterCanReturnItsClass for HiddenField

Posted by sj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch MSHARED-1401-hidden-field
in repository https://gitbox.apache.org/repos/asf/maven-shared-resources.git

commit 8258d3a729df9c80bc3be0309531a80cf2802029
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Sun Jun 2 11:11:41 2024 +0200

    [MSHARED-1401] Checkstyle add setterCanReturnItsClass for HiddenField
---
 src/main/resources/config/maven_checks.xml             | 1 +
 src/main/resources/config/maven_checks_nocodestyle.xml | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/main/resources/config/maven_checks.xml b/src/main/resources/config/maven_checks.xml
index 240f595..d8f25f9 100644
--- a/src/main/resources/config/maven_checks.xml
+++ b/src/main/resources/config/maven_checks.xml
@@ -169,6 +169,7 @@ under the License.
         <module name="HiddenField">
           <property name="severity" value="warning"/>
           <property name="ignoreSetter" value="true"/>
+          <property name="setterCanReturnItsClass" value="true"/>
           <property name="ignoreConstructorParameter" value="true"/>
         </module>
         <module name="IllegalInstantiation"/>
diff --git a/src/main/resources/config/maven_checks_nocodestyle.xml b/src/main/resources/config/maven_checks_nocodestyle.xml
index 70e68e8..70c3d56 100644
--- a/src/main/resources/config/maven_checks_nocodestyle.xml
+++ b/src/main/resources/config/maven_checks_nocodestyle.xml
@@ -112,6 +112,7 @@ under the License.
         <module name="HiddenField">
             <property name="severity" value="warning"/>
             <property name="ignoreSetter" value="true"/>
+            <property name="setterCanReturnItsClass" value="true"/>
             <property name="ignoreConstructorParameter" value="true"/>
         </module>
         <module name="IllegalInstantiation"/>