aboutsummaryrefslogtreecommitdiffstats
path: root/checkstyle/src/main/resources/onap-checkstyle/check-license.xml
diff options
context:
space:
mode:
Diffstat (limited to 'checkstyle/src/main/resources/onap-checkstyle/check-license.xml')
-rw-r--r--checkstyle/src/main/resources/onap-checkstyle/check-license.xml28
1 files changed, 14 insertions, 14 deletions
diff --git a/checkstyle/src/main/resources/onap-checkstyle/check-license.xml b/checkstyle/src/main/resources/onap-checkstyle/check-license.xml
index 2a0acd0..9198c6e 100644
--- a/checkstyle/src/main/resources/onap-checkstyle/check-license.xml
+++ b/checkstyle/src/main/resources/onap-checkstyle/check-license.xml
@@ -2,18 +2,18 @@
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
-
-<!--
- Checkstyle configuration that checks the license headers
- expected by Open-O.
- -->
-
-<module name = "Checker">
- <property name="charset" value="UTF-8"/>
- <property name="severity" value="warning"/>
-
- <module name="RegexpHeader">
- <property name="headerFile" value="${checkstyle.header.file}"/>
- <property name="multiLines" value="2"/>
- </module>
+<!-- Checks the license headers expected by ONAP. -->
+<module name="Checker">
+ <property name="charset" value="UTF-8"/>
+ <property name="severity" value="error"/>
+ <module name="RegexpSingleline">
+ <property name="format" value="under the Apache License, Version 2\.0"/>
+ <property name="minimum" value="1"/>
+ <property name="maximum" value="10"/>
+ </module>
+ <module name="RegexpSingleline">
+ <property name="format" value="http://www.apache\.org/licenses/LICENSE-2\.0"/>
+ <property name="minimum" value="1"/>
+ <property name="maximum" value="10"/>
+ </module>
</module>