Skip to content

Commit 6b0cfb2

Browse files
raphkimjamesonwilliams
authored andcommitted
Update checkstyle rules to accept variable copyright year (#231)
1 parent 6ea11e0 commit 6b0cfb2

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

configuration/checkstyle-rules.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<property name="fileExtensions" value="java" />
2525

2626
<!-- Check that source files have a license header. -->
27-
<module name="Header">
27+
<module name="RegexpHeader">
2828
<property name="headerFile" value="configuration/java.header" />
2929
</module>
3030

configuration/java.header

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
/*
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License").
5-
* You may not use this file except in compliance with the License.
6-
* A copy of the License is located at
7-
*
8-
* http://aws.amazon.com/apache2.0
9-
*
10-
* or in the "license" file accompanying this file. This file is distributed
11-
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12-
* express or implied. See the License for the specific language governing
13-
* permissions and limitations under the License.
14-
*/
1+
^/\*$
2+
^ \* Copyright \d{4} Amazon\.com, Inc\. or its affiliates\. All Rights Reserved\.$
3+
^ \*$
4+
^ \* Licensed under the Apache License, Version 2\.0 \(the \"License\"\)\.$
5+
^ \* You may not use this file except in compliance with the License\.$
6+
^ \* A copy of the License is located at$
7+
^ \*$
8+
^ \* http://aws\.amazon\.com/apache2\.0$
9+
^ \*$
10+
^ \* or in the \"license\" file accompanying this file\. This file is distributed$
11+
^ \* on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either$
12+
^ \* express or implied\. See the License for the specific language governing$
13+
^ \* permissions and limitations under the License\.$
14+
^ \*/$
1515

0 commit comments

Comments
 (0)