Skip to content

Commit 18d1d61

Browse files
zhaosongzserikj79
authored andcommitted
8346046: Enable copyright header format check
Reviewed-by: erikj, iris, dholmes
1 parent a7631cc commit 18d1d61

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.jcheck/conf

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jbs=JDK
44
version=25
55

66
[checks]
7-
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists
7+
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists,copyright
88
warning=issuestitle,binary
99

1010
[repository]
@@ -34,3 +34,8 @@ pattern=^([124-8][0-9]{6}): (\S.*)$
3434

3535
[checks "problemlists"]
3636
dirs=test/jdk|test/langtools|test/lib-test|test/hotspot/jtreg|test/jaxp
37+
38+
[checks "copyright"]
39+
files=^(?!LICENSE|license\.txt|.*\.bin|.*\.gif|.*\.jpg|.*\.png|.*\.icon|.*\.tiff|.*\.dat|.*\.patch|.*\.wav|.*\.class|.*-header|.*\.jar|).*
40+
oracle_locator=.*Copyright \(c\)(.*)Oracle and/or its affiliates\. All rights reserved\.
41+
oracle_validator=.*Copyright \(c\) (\d{4})(?:, (\d{4}))?, Oracle and/or its affiliates\. All rights reserved\.

0 commit comments

Comments
 (0)