This repository was archived by the owner on Dec 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +29
-7
lines changed
java/com/google/instrumentation/stats Expand file tree Collapse file tree 5 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,13 @@ matrix:
88 env : BUILD=MVN
99
1010 - jdk : oraclejdk7
11- env : BUILD=MVN
11+ env : BUILD=MVN STYLE_CHECK=google_checks.xml
1212
1313 - jdk : oraclejdk8
14- env : BUILD=MVN
14+ env : BUILD=MVN STYLE_CHECK=google_checks.xml
15+
16+ - jdk : oraclejdk8
17+ env : BUILD=MVN STYLE_CHECK=checkstyle_custom_checks.xml
1518
1619 - jdk : oraclejdk8
1720 env : BUILD=BAZEL
@@ -49,6 +52,6 @@ script:
4952 " openjdk6" )
5053 mvn verify -P java6 ;;
5154 *)
52- mvn verify ;;
55+ mvn verify -Dcheckstyle.config=$STYLE_CHECK ;;
5356 esac
5457 esac
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!DOCTYPE module PUBLIC
3+ "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
4+ "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
5+
6+ <module name = " Checker" >
7+ <property name =" charset" value =" UTF-8" />
8+ <property name =" severity" value =" error" />
9+ <module name =" TreeWalker" >
10+ <module name =" UnusedImports" />
11+ </module >
12+ </module >
Original file line number Diff line number Diff line change 1515
1616import com .google .instrumentation .stats .MeasurementDescriptor .BasicUnit ;
1717import com .google .instrumentation .stats .MeasurementDescriptor .MeasurementUnit ;
18- import com .google .instrumentation .stats .ViewDescriptor .DistributionViewDescriptor ;
19- import com .google .instrumentation .stats .ViewDescriptor .IntervalViewDescriptor ;
2018
2119import java .util .Arrays ;
2220import java .util .List ;
Original file line number Diff line number Diff line change 1515 <artifactId >census-parent</artifactId >
1616 <version >0.1.0-SNAPSHOT</version >
1717 </parent >
18+
19+ <properties >
20+ <checkstyle .config>google_checks.xml</checkstyle .config>
21+ </properties >
22+
1823 <build >
1924 <sourceDirectory >java</sourceDirectory >
2025 <plugins >
7378 <id >validate</id >
7479 <phase >validate</phase >
7580 <configuration >
76- <configLocation >google_checks.xml </configLocation >
81+ <configLocation >${checkstyle.config} </configLocation >
7782 <encoding >UTF-8</encoding >
7883 <consoleOutput >true</consoleOutput >
7984 <failsOnViolation >true</failsOnViolation >
Original file line number Diff line number Diff line change 1616 <version >0.1.0-SNAPSHOT</version >
1717 </parent >
1818
19+ <properties >
20+ <checkstyle .config>google_checks.xml</checkstyle .config>
21+ </properties >
22+
1923 <dependencies >
2024 <dependency >
2125 <groupId >com.google.census</groupId >
8993 <id >validate</id >
9094 <phase >validate</phase >
9195 <configuration >
92- <configLocation >google_checks.xml </configLocation >
96+ <configLocation >${checkstyle.config} </configLocation >
9397 <encoding >UTF-8</encoding >
9498 <consoleOutput >true</consoleOutput >
9599 <failsOnViolation >true</failsOnViolation >
You can’t perform that action at this time.
0 commit comments