This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git
The following commit(s) were added to refs/heads/master by this push: new 90ea1c9 Add "<defaultGoal>" in order to have CheckStyle run by Travis. 90ea1c9 is described below commit 90ea1c921825463e5f6ea9dcab6ac22152d7c8e4 Author: Gilles Sadowski <gillese...@gmail.com> AuthorDate: Wed Jul 29 20:18:41 2020 +0200 Add "<defaultGoal>" in order to have CheckStyle run by Travis. Move CheckStyle configuration files. --- pom.xml | 30 ++++++++++++++++++++-- .../main/resources/checkstyle/checkstyle.xml | 0 .../main/resources/checkstyle/license-header.txt | 0 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 593775b..00a8617 100644 --- a/pom.xml +++ b/pom.xml @@ -222,6 +222,7 @@ </dependencies> <build> + <defaultGoal>clean verify apache-rat:check checkstyle:check javadoc:javadoc</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -406,6 +407,30 @@ </excludes> </configuration> </plugin> + + <!-- CheckStyle --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>${math.checkstyle.version}</version> + <configuration> + <includeTestSourceDirectory>false</includeTestSourceDirectory> + <configLocation>${basedir}/src/main/resources/checkstyle/checkstyle.xml</configLocation> + <headerLocation>${basedir}/src/main/resources/checkstyle/license-header.txt</headerLocation> + <enableRulesSummary>false</enableRulesSummary> + <includeResources>false</includeResources> + <resourceExcludes>NOTICE.txt,LICENSE.txt,**/LocalizedFormats_*.properties,**/pom.properties,**/resolver-status.properties,**/sha512.properties,src/test/maxima/special/reference/*.properties</resourceExcludes> + <excludes>**/generated/**.java</excludes> + </configuration> + <executions> + <execution> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> </build> @@ -510,10 +535,11 @@ <artifactId>maven-checkstyle-plugin</artifactId> <version>${math.checkstyle.version}</version> <configuration> - <configLocation>${basedir}/checkstyle.xml</configLocation> + <includeTestSourceDirectory>false</includeTestSourceDirectory> + <configLocation>${basedir}/src/main/resources/checkstyle/checkstyle.xml</configLocation> + <headerLocation>${basedir}/src/main/resources/checkstyle/license-header.txt</headerLocation> <enableRulesSummary>false</enableRulesSummary> <includeResources>false</includeResources> - <headerLocation>${basedir}/license-header.txt</headerLocation> </configuration> <reportSets> <reportSet> diff --git a/checkstyle.xml b/src/main/resources/checkstyle/checkstyle.xml similarity index 100% rename from checkstyle.xml rename to src/main/resources/checkstyle/checkstyle.xml diff --git a/license-header.txt b/src/main/resources/checkstyle/license-header.txt similarity index 100% rename from license-header.txt rename to src/main/resources/checkstyle/license-header.txt