Skip to content

Commit 783ad3c

Browse files
rnveachCalixte
authored andcommitted
Issue #454: enforces header on all files and upgrades year
1 parent bd64683 commit 783ad3c

File tree

235 files changed

+652
-247
lines changed

Some content is hidden

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

235 files changed

+652
-247
lines changed

config/checkstyle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
checkstyle.suppressions.file=config/suppressions.xml
22
checkstyle.suppressions-xpath.file=config/suppressions.xml
3-
checkstyle.header.file=config/java.header
43
checkstyle.regexp.header.file=config/java_regexp.header
4+
checkstyle.regexp.old.header.file=config/java_regexp_old.header
55
checkstyle.importcontrol.file=config/import-control.xml
66
checkstyle.importcontroltest.file=config/import-control-test.xml

config/checkstyle_checks.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@
6565
<property name="onCommentFormat" value="CSON\: .*"/>
6666
</module>
6767

68+
<!-- Headers -->
69+
<module name="RegexpHeader">
70+
<property name="id" value="regexpHeader"/>
71+
<property name="headerFile" value="${checkstyle.regexp.header.file}"/>
72+
<property name="fileExtensions" value="java, g4"/>
73+
</module>
74+
<module name="RegexpHeader">
75+
<property name="id" value="oldRegexpHeader"/>
76+
<property name="headerFile" value="${checkstyle.regexp.old.header.file}"/>
77+
<property name="fileExtensions" value="java, g4"/>
78+
</module>
79+
6880
<!-- Miscellaneous -->
6981
<module name="NewlineAtEndOfFile"/>
7082
<module name="Translation"/>

config/java.header

Lines changed: 0 additions & 19 deletions
This file was deleted.

config/java_regexp.header

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
^/{2}={76}$
22
^/{2}$
3-
^/{2} Copyright \(C\) \d\d\d\d-\d\d\d\d David Schneider, Lars Ködderitzsch$
3+
^/{2} Copyright \(C\) 2003-2023 the original author or authors\.$
44
^/{2}$
55
^/{2} This library is free software; you can redistribute it and/or$
66
^/{2} modify it under the terms of the GNU Lesser General Public$
77
^/{2} License as published by the Free Software Foundation; either$
8-
^/{2} version \d.\d of the License, or \(at your option\) any later version.$
8+
^/{2} version 2\.1 of the License, or \(at your option\) any later version.$
99
^/{2}$
1010
^/{2} This library is distributed in the hope that it will be useful,$
1111
^/{2} but WITHOUT ANY WARRANTY; without even the implied warranty of$
@@ -14,6 +14,6 @@
1414
^/{2}$
1515
^/{2} You should have received a copy of the GNU Lesser General Public$
1616
^/{2} License along with this library; if not, write to the Free Software$
17-
^/{2} Foundation, Inc., \d\d Temple Place, Suite \d\d\d, Boston, MA \d\d\d\d\d-\d\d\d\d USA$
17+
^/{2} Foundation, Inc\., 59 Temple Place, Suite 330, Boston, MA 02111\-1307 USA$
1818
^/{2}$
1919
^/{2}={76}$

config/java_regexp_old.header

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
^/{2}={76}$
2+
^/{2}$
3+
^/{2} Copyright \(C\) 2003-2023 .*$
4+
^/{2}$
5+
^/{2} This library is free software; you can redistribute it and/or$
6+
^/{2} modify it under the terms of the GNU Lesser General Public$
7+
^/{2} License as published by the Free Software Foundation; either$
8+
^/{2} version 2\.1 of the License, or \(at your option\) any later version.$
9+
^/{2}$
10+
^/{2} This library is distributed in the hope that it will be useful,$
11+
^/{2} but WITHOUT ANY WARRANTY; without even the implied warranty of$
12+
^/{2} MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU$
13+
^/{2} Lesser General Public License for more details.$
14+
^/{2}$
15+
^/{2} You should have received a copy of the GNU Lesser General Public$
16+
^/{2} License along with this library; if not, write to the Free Software$
17+
^/{2} Foundation, Inc\., 59 Temple Place, Suite 330, Boston, MA 02111\-1307 USA$
18+
^/{2}$
19+
^/{2}={76}$

config/suppressions.xml

Lines changed: 218 additions & 4 deletions
Large diffs are not rendered by default.

net.sf.eclipsecs-updatesite/.checkstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<local-check-config name="Eclipse CS configuration" location="/eclipse-cs/config/checkstyle_checks.xml" type="project" description="Shared configuration for all Eclipse CS plugins.">
55
<property name="checkstyle.cache.file" value="target/checkstyle-cache"/>
66
<property name="checkstyle.suppressions.file" value="${config_loc}/suppressions.xml"/>
7-
<property name="checkstyle.header.file" value="${config_loc}/java.header"/>
87
<property name="checkstyle.regexp.header.file" value="${config_loc}/java_regexp.header"/>
8+
<property name="checkstyle.regexp.old.header.file" value="${config_loc}/java_regexp_old.header"/>
99
<property name="checkstyle.suppressions-xpath.file" value="${config_loc}/suppressions.xml"/>
1010
<property name="checkstyle.importcontrol.file" value="${config_loc}/import-control.xml"/>
1111
<property name="checkstyle.importcontroltest.file" value="${config_loc}/import-control-test.xml"/>

net.sf.eclipsecs.branding/.checkstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<local-check-config name="Eclipse CS configuration" location="/eclipse-cs/config/checkstyle_checks.xml" type="project" description="Shared configuration for all Eclipse CS plugins.">
55
<property name="checkstyle.cache.file" value="target/checkstyle-cache"/>
66
<property name="checkstyle.suppressions.file" value="${config_loc}/suppressions.xml"/>
7-
<property name="checkstyle.header.file" value="${config_loc}/java.header"/>
87
<property name="checkstyle.regexp.header.file" value="${config_loc}/java_regexp.header"/>
8+
<property name="checkstyle.regexp.old.header.file" value="${config_loc}/java_regexp_old.header"/>
99
<property name="checkstyle.suppressions-xpath.file" value="${config_loc}/suppressions.xml"/>
1010
<property name="checkstyle.importcontrol.file" value="${config_loc}/import-control.xml"/>
1111
<property name="checkstyle.importcontroltest.file" value="${config_loc}/import-control-test.xml"/>

net.sf.eclipsecs.checkstyle/.checkstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<local-check-config name="Eclipse CS configuration" location="/eclipse-cs/config/checkstyle_checks.xml" type="project" description="Shared configuration for all Eclipse CS plugins.">
55
<property name="checkstyle.cache.file" value="target/checkstyle-cache"/>
66
<property name="checkstyle.suppressions.file" value="${config_loc}/suppressions.xml"/>
7-
<property name="checkstyle.header.file" value="${config_loc}/java.header"/>
87
<property name="checkstyle.regexp.header.file" value="${config_loc}/java_regexp.header"/>
8+
<property name="checkstyle.regexp.old.header.file" value="${config_loc}/java_regexp_old.header"/>
99
<property name="checkstyle.suppressions-xpath.file" value="${config_loc}/suppressions.xml"/>
1010
<property name="checkstyle.importcontrol.file" value="${config_loc}/import-control.xml"/>
1111
<property name="checkstyle.importcontroltest.file" value="${config_loc}/import-control-test.xml"/>

net.sf.eclipsecs.core/.checkstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<local-check-config name="Eclipse CS configuration" location="/eclipse-cs/config/checkstyle_checks.xml" type="project" description="Shared configuration for all Eclipse CS plugins.">
55
<property name="checkstyle.cache.file" value="target/checkstyle-cache"/>
66
<property name="checkstyle.suppressions.file" value="${config_loc}/suppressions.xml"/>
7-
<property name="checkstyle.header.file" value="${config_loc}/java.header"/>
87
<property name="checkstyle.regexp.header.file" value="${config_loc}/java_regexp.header"/>
8+
<property name="checkstyle.regexp.old.header.file" value="${config_loc}/java_regexp_old.header"/>
99
<property name="checkstyle.suppressions-xpath.file" value="${config_loc}/suppressions.xml"/>
1010
<property name="checkstyle.importcontrol.file" value="${config_loc}/import-control.xml"/>
1111
<property name="checkstyle.importcontroltest.file" value="${config_loc}/import-control-test.xml"/>

0 commit comments

Comments
 (0)