Skip to content

Commit 5d9f3aa

Browse files
authored
Add copyright part to header check (#3311)
fixes #3300
1 parent 245be03 commit 5d9f3aa

File tree

652 files changed

+506
-864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

652 files changed

+506
-864
lines changed

dev/checkstyle/fileheader.txt

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
/*
2-
* CDDL HEADER START
3-
*
4-
* The contents of this file are subject to the terms of the
5-
* Common Development and Distribution License (the "License").
6-
* You may not use this file except in compliance with the License.
7-
*
8-
* See LICENSE.txt included in this distribution for the specific
9-
* language governing permissions and limitations under the License.
10-
*
11-
* When distributing Covered Code, include this CDDL HEADER in each
12-
* file and include the License file at LICENSE.txt.
13-
* If applicable, add the following below this CDDL HEADER, with the
14-
* fields enclosed by brackets "[]" replaced with your own identifying
15-
* information: Portions Copyright [yyyy] [name of copyright owner]
16-
*
17-
* CDDL HEADER END
18-
*/
1+
/\*
2+
\* CDDL HEADER START
3+
\*
4+
\* The contents of this file are subject to the terms of the
5+
\* Common Development and Distribution License \(the "License"\)\.
6+
\* You may not use this file except in compliance with the License\.
7+
\*
8+
\* See LICENSE\.txt included in this distribution for the specific
9+
\* language governing permissions and limitations under the License\.
10+
\*
11+
\* When distributing Covered Code, include this CDDL HEADER in each
12+
\* file and include the License file at LICENSE\.txt\.
13+
\* If applicable, add the following below this CDDL HEADER, with the
14+
\* fields enclosed by brackets "\[\]" replaced with your own identifying
15+
\* information: Portions Copyright \[yyyy\] \[name of copyright owner\]
16+
\*
17+
\* CDDL HEADER END
18+
\*/
1919

20+
/\*
21+
\* (Portions )?Copyright \(c\) \d\d\d\d(, \d\d\d\d)?, [^0-9].*\.
22+
\*/
23+
package .*;

dev/checkstyle/style.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
<module name="NewlineAtEndOfFile">
77
<property name="severity" value="ignore" />
88
</module>
9-
<module name="Header">
9+
<module name="RegexpHeader">
1010
<property name="headerFile" value="${checkstyle.header.file}"/>
11+
<property name="multiLines" value="21"/>
1112
</module>
1213
<module name="FileLength"/>
1314
<module name="FileTabCharacter"/>

dev/checkstyle/suppressions.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ Portions Copyright (c) 2018-2020, Chris Fraire <[email protected]>.
3434
|ObjectPool\.java|ObjectValidator\.java|ObjectFactory\.java|AbstractObjectPool\.java|
3535
|BlockingObjectPool\.java|OGKTextVecField\.java|OGKTextField\.java|
3636
|LazilyInstantiate\.java|PortChecker\.java|CloseableReentrantReadWriteLock\.java|
37-
|ResourceLock\.java|ZeroReader\.java" />
37+
|ResourceLock\.java|ZeroReader\.java|ColorUtil\.java|RainbowColorGenerator\.java|WildCardMatcher.java|
38+
|BitKeeperAnnotationParser\.java|BitKeeperTagEntry\.java|BitKeeperTagParser\.java|BooleanUtilTest\.java|
39+
|CorsEnable\.java|CorsFilter\.java" />
3840

3941
<suppress checks="ParameterNumber" files="CtagsReader\.java|Definitions\.java|
4042
|JFlexXrefUtils\.java|FileAnalyzerFactory\.java|SearchController\.java|

opengrok-indexer/src/main/java/org/opengrok/indexer/Metrics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opengrok.indexer;
2424

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/AbstractAnalyzer.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
22-
* Use is subject to license terms.
23-
* Portions Copyright (c) 2017-2020, Chris Fraire <[email protected]>.
21+
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.
22+
* Portions Copyright (c) 2017, 2020, Chris Fraire <[email protected]>.
2423
*/
2524
package org.opengrok.indexer.analysis;
2625

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/AnalyzerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/*
2121
* Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
22-
* Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
22+
* Portions Copyright (c) 2017, 2018, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.analysis;
2525

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/AnalyzerGuru.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/*
2121
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
22-
* Portions Copyright (c) 2017-2020, Chris Fraire <[email protected]>.
22+
* Portions Copyright (c) 2017, 2020, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.analysis;
2525

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/AnalyzerGuruHelp.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2017-2019, Chris Fraire <[email protected]>.
21+
* Copyright (c) 2017, 2019, Chris Fraire <[email protected]>.
2222
*/
23-
2423
package org.opengrok.indexer.analysis;
2524

2625
import org.opengrok.indexer.util.StringUtils;

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/CompatibleAnalyser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* CDDL HEADER END
1818
*/
1919

20-
/*
20+
/*
2121
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright (c) 2017, 2020, Chris Fraire <[email protected]>.
2323
*/

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/Ctags.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* CDDL HEADER END
1818
*/
1919

20-
/*
20+
/*
2121
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
22-
* Portions Copyright (c) 2017-2020, Chris Fraire <[email protected]>.
22+
* Portions Copyright (c) 2017, 2020, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.analysis;
2525

0 commit comments

Comments
 (0)