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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git


The following commit(s) were added to refs/heads/master by this push:
     new b90c7549 Checkstyle: @author tags are deprecated
b90c7549 is described below

commit b90c7549d1aa7308dde69afeb65fdb8a06e3ddd1
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Nov 23 08:41:07 2023 -0500

    Checkstyle: @author tags are deprecated
---
 src/conf/checkstyle/checkstyle.xml | 39 +++++++++++++++++++++-----------------
 1 file changed, 22 insertions(+), 17 deletions(-)

diff --git a/src/conf/checkstyle/checkstyle.xml 
b/src/conf/checkstyle/checkstyle.xml
index 3a87f303..117517a0 100644
--- a/src/conf/checkstyle/checkstyle.xml
+++ b/src/conf/checkstyle/checkstyle.xml
@@ -15,37 +15,42 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 -->
-
 <!DOCTYPE module PUBLIC
     "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
     "https://checkstyle.org/dtds/configuration_1_3.dtd";>
-
 <!-- commons lang customization of default Checkstyle behavior -->
 <module name="Checker">
-  <property name="localeLanguage" value="en"/>
+  <property name="localeLanguage" value="en" />
   <module name="JavadocPackage">
     <!-- setting allowLegacy means it will check for package.html instead of 
just package-info.java -->
-    <property name="allowLegacy" value="true"/>
+    <property name="allowLegacy" value="true" />
   </module>
   <module name="FileTabCharacter">
-    <property name="fileExtensions" value="java,xml"/>
+    <property name="fileExtensions" value="java,xml" />
   </module>
   <module name="TreeWalker">
     <module name="ExplicitInitializationCheck" />
-    <module name="AvoidStarImport"/>
-    <module name="RedundantImport"/>
-    <module name="MagicNumber"/>
-    <module name="SuppressionCommentFilter"/>
-    <module name="UnusedImports"/>
-    <module name="NeedBraces"/>
+    <module name="AvoidStarImport" />
+    <module name="RedundantImport" />
+    <module name="MagicNumber" />
+    <module name="SuppressionCommentFilter" />
+    <module name="UnusedImports" />
+    <module name="NeedBraces" />
     <module name="JavadocMethod">
-      <property name="accessModifiers" value="protected, public"/>
+      <property name="accessModifiers" value="protected, public" />
     </module>
     <module name="ImportOrder">
-      <property name="option" value="top"/>
-      <property name="groups" value="java,javax,org"/>
-      <property name="ordered" value="true"/>
-      <property name="separated" value="true"/>
+      <property name="option" value="top" />
+      <property name="groups" value="java,javax,org" />
+      <property name="ordered" value="true" />
+      <property name="separated" value="true" />
     </module>
- </module>
+  </module>
+  <!-- @author tags are deprecated -->
+  <module name="RegexpSingleline">
+    <property name="format" value="^\s+\*\s+@author\s" />
+    <property name="message" value="Deprecated @author tag" />
+    <property name="fileExtensions" value="java" />
+    <property name="severity" value="warning" />
+  </module>
 </module>

Reply via email to