Skip to content

Commit 522c700

Browse files
committed
Allow short-form license header
1 parent 6a59afc commit 522c700

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

config/checkstyle/checkstyle.xml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
<?xml version="1.0"?>
22
<!--
3-
~ Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4-
~
5-
~ Licensed under the Apache License, Version 2.0 (the "License").
6-
~ You may not use this file except in compliance with the License.
7-
~ A copy of the License is located at
8-
~
9-
~ http://aws.amazon.com/apache2.0
10-
~
11-
~ or in the "license" file accompanying this file. This file is distributed
12-
~ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13-
~ express or implied. See the License for the specific language governing
14-
~ permissions and limitations under the License.
3+
~ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
~ SPDX-License-Identifier: Apache-2.0
155
-->
166

177
<!DOCTYPE module PUBLIC
@@ -29,10 +19,10 @@
2919
<property name="fileNamePattern" value="(module\-info\.java$|Test.java$|src/test/java)"/>
3020
</module>
3121

32-
<!-- Files must contain a copyright header. -->
22+
<!-- Files must contain a copyright header, with or without a year. -->
3323
<module name="RegexpHeader">
3424
<property name="header"
35-
value="/\*\n \* Copyright 20(19|20|21|22) Amazon\.com, Inc\. or its affiliates\. All Rights Reserved\.\n"/>
25+
value="/\*\n \* Copyright( 20(19|20|21|22)|) Amazon\.com, Inc\. or its affiliates\. All Rights Reserved\.\n"/>
3626
<property name="fileExtensions" value="java"/>
3727
</module>
3828

0 commit comments

Comments
 (0)