-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
License headers are not checked in frontend/src
directory. Furthermore the license header's content isn't checked against the configured settings (like inception year)
Expected behavior
- The license headers for files in
frontend/src
directory are checked. - The license header's content is checked.
Fix
Already fixed using the following snippet:
<!-- LICENSE -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.0.0</version>
<configuration>
<licenseName>apache_v2</licenseName>
<licenseFile>${project.basedir}/LICENSE</licenseFile>
<inceptionYear>${project.inceptionYear}</inceptionYear>
<projectName>${project.artifactId}</projectName>
<copyrightOwners>linked-planet GmbH</copyrightOwners>
<failOnMissingHeader>true</failOnMissingHeader>
<failOnNotUptodateHeader>true</failOnNotUptodateHeader>
<roots>
<root>src</root>
<root>target/generated-sources</root>
<root>frontend/src</root>
</roots>
<excludes>
<exclude>**/*.min.js</exclude>
<exclude>**/*.js</exclude>
<exclude>**/plugin*.properties</exclude>
<exclude>**/version*.properties</exclude>
<exclude>**/log4j.properties</exclude>
<exclude>**/kaptKotlin/**/*</exclude>
</excludes>
<excludedScopes>provided,test</excludedScopes>
</configuration>
<executions>
<execution>
<id>license-check-file-header</id>
<phase>validate</phase>
<goals>
<goal>check-file-header</goal>
</goals>
</execution>
</executions>
</plugin>
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request