mirror of https://github.com/apache/jclouds.git
Enforce ASF copyright header via Checkstyle
This commit is contained in:
parent
d9650ccdc8
commit
4e166e3a20
|
@ -998,6 +998,7 @@
|
|||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
<configuration>
|
||||
<configLocation>../resources/checkstyle.xml</configLocation>
|
||||
<headerLocation>../resources/copyright_header.txt</headerLocation>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
@ -1025,6 +1026,7 @@
|
|||
<configuration>
|
||||
<!-- jclouds-resources has the checkstyle config in the classpath -->
|
||||
<configLocation>resources/checkstyle.xml</configLocation>
|
||||
<headerLocation>resources/copyright_header.txt</headerLocation>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
|
|
@ -54,6 +54,10 @@
|
|||
<property name="tokens" value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, SL, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND" />
|
||||
</module>
|
||||
</module>
|
||||
<module name="Header">
|
||||
<property name="headerFile" value="${checkstyle.header.file}"/>
|
||||
<property name="fileExtensions" value="java"/>
|
||||
</module>
|
||||
<module name="RegexpMultiline">
|
||||
<property name="format" value="@author"/>
|
||||
<property name="message" value="Do not use Javadoc @author annotation"/>
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
|
@ -36,7 +36,8 @@
|
|||
<targetPath>resources</targetPath>
|
||||
<directory>${project.basedir}</directory>
|
||||
<includes>
|
||||
<include>checkstyle.xml</include>
|
||||
<include>checkstyle.xml</include>
|
||||
<include>copyright_header.txt</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue