Skip to content

Commit 16d8ae5

Browse files
authored
check header in checkstyle (#7)
1 parent dcdc444 commit 16d8ae5

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

config/checkstyle/amazon.header

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
*
3+
* Copyright 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+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/

config/checkstyle/google_checks.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,4 +369,8 @@
369369
<property name="optional" value="true"/>
370370
</module>
371371
</module>
372+
<module name="Header">
373+
<property name="headerFile" value="config/checkstyle/amazon.header"/>
374+
<property name="fileExtensions" value="java"/>
375+
</module>
372376
</module>

0 commit comments

Comments
 (0)