GeezerVison is showing github.com — Checkstyle is now enforced across most modules. · xiaowei2008/java-docs-samples@bf8717b
File treeExpand file treeCollapse file tree Open diff view settings src/main/java/com/example/appengine/appidentity
src/main/java/com/example/managedvms/disk
src/main/java/com/example/managedvms/twilio
src/main/java/com/example/managedvms/websockets
serviceaccount-appengine-sample
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .travis.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 6 | 6 | before_install: | 7 | 7 | - openssl aes-256-cbc -K $encrypted_99d8b304f94b_key -iv $encrypted_99d8b304f94b_iv -in service-account.json.enc -out service-account.json -d | 8 | 8 |
| 9 | | -script: mvn test | | 9 | +script: mvn verify | 10 | 10 | after_success: | 11 | 11 | - mvn clean cobertura:cobertura coveralls:report |
Collapse file Copy file name to clipboardExpand all lines: appengine/analytics/pom.xml +15-1Lines changed: 15 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 | <packaging>war</packaging> | 6 | 6 | <version>1.0-SNAPSHOT</version> | 7 | 7 | <groupId>com.example.managedvms</groupId> | 8 | | - <artifactId>analytics</artifactId> | | 8 | + <artifactId>appengine-analytics</artifactId> | 9 | 9 | <dependencies> | 10 | 10 | <dependency> | 11 | 11 | <groupId>org.apache.httpcomponents</groupId> | | 49 | 49 | <promote>true</promote> | 50 | 50 | </configuration> | 51 | 51 | </plugin> | | 52 | + <plugin> | | 53 | + <groupId>org.apache.maven.plugins</groupId> | | 54 | + <artifactId>maven-checkstyle-plugin</artifactId> | | 55 | + <version>2.17</version> | | 56 | + <configuration> | | 57 | + <configLocation>../../google-checks.xml</configLocation> | | 58 | + <consoleOutput>true</consoleOutput> | | 59 | + <failOnViolation>true</failOnViolation> | | 60 | + <failsOnError>true</failsOnError> | | 61 | + </configuration> | | 62 | + <executions> | | 63 | + <execution><goals><goal>check</goal></goals></execution> | | 64 | + </executions> | | 65 | + </plugin> | 52 | 66 | </plugins> | 53 | 67 | </build> | 54 | 68 | </project> |
Collapse file Copy file name to clipboardExpand all lines: appengine/appidentity/pom.xml +15-1Lines changed: 15 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,7 @@ Copyright 2015 Google Inc. All Rights Reserved. | 20 | 20 | <packaging>war</packaging> | 21 | 21 | <version>1.0-SNAPSHOT</version> | 22 | 22 | <groupId>com.example.appengine</groupId> | 23 | | - <artifactId>appidentity</artifactId> | | 23 | + <artifactId>appengine-appidentity</artifactId> | 24 | 24 |
| 25 | 25 | <properties> | 26 | 26 | <appengine.target.version>1.9.30</appengine.target.version> | @@ -107,6 +107,20 @@ Copyright 2015 Google Inc. All Rights Reserved. | 107 | 107 | <artifactId>gcloud-maven-plugin</artifactId> | 108 | 108 | <version>2.0.9.90.v20151210</version> | 109 | 109 | </plugin> | | 110 | + <plugin> | | 111 | + <groupId>org.apache.maven.plugins</groupId> | | 112 | + <artifactId>maven-checkstyle-plugin</artifactId> | | 113 | + <version>2.17</version> | | 114 | + <configuration> | | 115 | + <configLocation>../../google-checks.xml</configLocation> | | 116 | + <consoleOutput>true</consoleOutput> | | 117 | + <failOnViolation>true</failOnViolation> | | 118 | + <failsOnError>true</failsOnError> | | 119 | + </configuration> | | 120 | + <executions> | | 121 | + <execution><goals><goal>check</goal></goals></execution> | | 122 | + </executions> | | 123 | + </plugin> | 110 | 124 | </plugins> | 111 | 125 | </build> | 112 | 126 | </project> |
Collapse file Copy file name to clipboardExpand all lines: appengine/appidentity/src/main/java/com/example/appengine/appidentity/IdentityServlet.java -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 17 | 17 | package com.example.appengine.appidentity; | 18 | 18 |
| 19 | 19 | import com.google.apphosting.api.ApiProxy; | 20 | | -import com.google.apphosting.api.ApiProxy.Environment; | 21 | 20 |
| 22 | 21 | import java.io.IOException; | 23 | | -import java.io.PrintWriter; | 24 | 22 |
| 25 | 23 | import javax.servlet.http.HttpServlet; | 26 | 24 | import javax.servlet.http.HttpServletRequest; | |
Collapse file Copy file name to clipboardExpand all lines: appengine/cloudsql/pom.xml +15-1Lines changed: 15 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 | <packaging>war</packaging> | 6 | 6 | <version>1.0-SNAPSHOT</version> | 7 | 7 | <groupId>com.example.managedvms</groupId> | 8 | | - <artifactId>cloudsql</artifactId> | | 8 | + <artifactId>appengine-cloudsql</artifactId> | 9 | 9 | <dependencies> | 10 | 10 | <dependency> | 11 | 11 | <groupId>javax.servlet</groupId> | | 51 | 51 | <promote>true</promote> | 52 | 52 | </configuration> | 53 | 53 | </plugin> | | 54 | + <plugin> | | 55 | + <groupId>org.apache.maven.plugins</groupId> | | 56 | + <artifactId>maven-checkstyle-plugin</artifactId> | | 57 | + <version>2.17</version> | | 58 | + <configuration> | | 59 | + <configLocation>../../google-checks.xml</configLocation> | | 60 | + <consoleOutput>true</consoleOutput> | | 61 | + <failOnViolation>true</failOnViolation> | | 62 | + <failsOnError>true</failsOnError> | | 63 | + </configuration> | | 64 | + <executions> | | 65 | + <execution><goals><goal>check</goal></goals></execution> | | 66 | + </executions> | | 67 | + </plugin> | 54 | 68 | </plugins> | 55 | 69 | </build> | 56 | 70 | </project> |
Collapse file Copy file name to clipboardExpand all lines: appengine/cloudstorage/pom.xml +15-1Lines changed: 15 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 | <packaging>war</packaging> | 6 | 6 | <version>1.0-SNAPSHOT</version> | 7 | 7 | <groupId>com.example.managedvms</groupId> | 8 | | - <artifactId>cloudstorage</artifactId> | | 8 | + <artifactId>appengine-cloudstorage</artifactId> | 9 | 9 | <dependencies> | 10 | 10 | <dependency> | 11 | 11 | <groupId>javax.servlet</groupId> | | 49 | 49 | <promote>true</promote> | 50 | 50 | </configuration> | 51 | 51 | </plugin> | | 52 | + <plugin> | | 53 | + <groupId>org.apache.maven.plugins</groupId> | | 54 | + <artifactId>maven-checkstyle-plugin</artifactId> | | 55 | + <version>2.17</version> | | 56 | + <configuration> | | 57 | + <configLocation>../../google-checks.xml</configLocation> | | 58 | + <consoleOutput>true</consoleOutput> | | 59 | + <failOnViolation>true</failOnViolation> | | 60 | + <failsOnError>true</failsOnError> | | 61 | + </configuration> | | 62 | + <executions> | | 63 | + <execution><goals><goal>check</goal></goals></execution> | | 64 | + </executions> | | 65 | + </plugin> | 52 | 66 | </plugins> | 53 | 67 | </build> | 54 | 68 | </project> |
Collapse file Copy file name to clipboardExpand all lines: appengine/datastore/pom.xml +15-1Lines changed: 15 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 | <packaging>war</packaging> | 6 | 6 | <version>1.0-SNAPSHOT</version> | 7 | 7 | <groupId>com.example.managedvms</groupId> | 8 | | - <artifactId>datastore</artifactId> | | 8 | + <artifactId>appengine-datastore</artifactId> | 9 | 9 | <dependencies> | 10 | 10 | <dependency> | 11 | 11 | <groupId>javax.servlet</groupId> | | 49 | 49 | <promote>true</promote> | 50 | 50 | </configuration> | 51 | 51 | </plugin> | | 52 | + <plugin> | | 53 | + <groupId>org.apache.maven.plugins</groupId> | | 54 | + <artifactId>maven-checkstyle-plugin</artifactId> | | 55 | + <version>2.17</version> | | 56 | + <configuration> | | 57 | + <configLocation>../../google-checks.xml</configLocation> | | 58 | + <consoleOutput>true</consoleOutput> | | 59 | + <failOnViolation>true</failOnViolation> | | 60 | + <failsOnError>true</failsOnError> | | 61 | + </configuration> | | 62 | + <executions> | | 63 | + <execution><goals><goal>check</goal></goals></execution> | | 64 | + </executions> | | 65 | + </plugin> | 52 | 66 | </plugins> | 53 | 67 | </build> | 54 | 68 | </project> |
Collapse file Copy file name to clipboardExpand all lines: appengine/disk/pom.xml +15-1Lines changed: 15 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 | <packaging>war</packaging> | 6 | 6 | <version>1.0-SNAPSHOT</version> | 7 | 7 | <groupId>com.example.managedvms</groupId> | 8 | | - <artifactId>disk</artifactId> | | 8 | + <artifactId>appengine-disk</artifactId> | 9 | 9 | <dependencies> | 10 | 10 | <dependency> | 11 | 11 | <groupId>javax.servlet</groupId> | | 41 | 41 | <artifactId>gcloud-maven-plugin</artifactId> | 42 | 42 | <version>2.0.9.90.v20151210</version> | 43 | 43 | </plugin> | | 44 | + <plugin> | | 45 | + <groupId>org.apache.maven.plugins</groupId> | | 46 | + <artifactId>maven-checkstyle-plugin</artifactId> | | 47 | + <version>2.17</version> | | 48 | + <configuration> | | 49 | + <configLocation>../../google-checks.xml</configLocation> | | 50 | + <consoleOutput>true</consoleOutput> | | 51 | + <failOnViolation>true</failOnViolation> | | 52 | + <failsOnError>true</failsOnError> | | 53 | + </configuration> | | 54 | + <executions> | | 55 | + <execution><goals><goal>check</goal></goals></execution> | | 56 | + </executions> | | 57 | + </plugin> | 44 | 58 | </plugins> | 45 | 59 | </build> | 46 | 60 | </project> |
Collapse file Copy file name to clipboardExpand all lines: appengine/disk/src/main/java/com/example/managedvms/disk/DiskServlet.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -46,7 +46,7 @@ public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOExc | 46 | 46 | StringBuffer sb = new StringBuffer(); | 47 | 47 | List<String> strings = Files.readAllLines(tmpFile, StandardCharsets.US_ASCII); | 48 | 48 | for (String s : strings) { | 49 | | - sb.append(s+"\n"); | | 49 | + sb.append(s + "\n"); | 50 | 50 | } | 51 | 51 | PrintWriter out = resp.getWriter(); | 52 | 52 | resp.setContentType("text/plain"); | |
Collapse file Copy file name to clipboardExpand all lines: appengine/extending-runtime/pom.xml +15-1Lines changed: 15 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 | <packaging>war</packaging> | 6 | 6 | <version>1.0-SNAPSHOT</version> | 7 | 7 | <groupId>com.example.managedvms</groupId> | 8 | | - <artifactId>extendingruntime</artifactId> | | 8 | + <artifactId>appengine-extendingruntime</artifactId> | 9 | 9 | <properties> | 10 | 10 | <writeable.directory></writeable.directory> | 11 | 11 | <gcloud.sdk.directory></gcloud.sdk.directory> | | 58 | 58 | </custom_entrypoint> | 59 | 59 | </configuration> | 60 | 60 | </plugin> | | 61 | + <plugin> | | 62 | + <groupId>org.apache.maven.plugins</groupId> | | 63 | + <artifactId>maven-checkstyle-plugin</artifactId> | | 64 | + <version>2.17</version> | | 65 | + <configuration> | | 66 | + <configLocation>../../google-checks.xml</configLocation> | | 67 | + <consoleOutput>true</consoleOutput> | | 68 | + <failOnViolation>true</failOnViolation> | | 69 | + <failsOnError>true</failsOnError> | | 70 | + </configuration> | | 71 | + <executions> | | 72 | + <execution><goals><goal>check</goal></goals></execution> | | 73 | + </executions> | | 74 | + </plugin> | 61 | 75 | </plugins> | 62 | 76 | </build> | 63 | 77 | </project> |
|