GeezerVison is showing github.com — Checkstyle Fail build if checkstyle fails (#636) · semtle/java-sdk@f0aac33
File tree
Expand file treeCollapse file tree
Open diff view settings
main/java/com/ibm/watson/developer_cloud/service test/java/com/ibm/watson/developer_cloud/util
src/test/java/com/ibm/watson/developer_cloud/discovery/v1
natural-language-classifier natural-language-understanding
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .travis.yml +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -34,6 +34,8 @@ script: |
34 | 34 | - ./gradlew test |
35 | 35 | - ./gradlew codeCoverageReport |
36 | 36 | - ./gradlew docs > /dev/null # build the javadoc |
| 37 | + - ./gradlew checkstyleMain |
| 38 | + - ./gradlew checkstyleTest |
37 | 39 |
|
38 | 40 | after_success: |
39 | 41 | - bash <(curl -s https://codecov.io/bash) |
|
Collapse file
Copy file name to clipboardExpand all lines: alchemy/build.gradle +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -51,6 +51,7 @@ signArchives { |
51 | 51 |
|
52 | 52 | checkstyle { |
53 | 53 | configFile = rootProject.file('checkstyle.xml') |
| 54 | + ignoreFailures = false |
54 | 55 | } |
55 | 56 |
|
56 | 57 | dependencies { |
|
Collapse file
Copy file name to clipboardExpand all lines: build.gradle +18-1Lines changed: 18 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,6 +17,19 @@ javadoc { |
17 | 17 | source = 'src/main/java' |
18 | 18 | } |
19 | 19 |
|
| 20 | +checkstyle { |
| 21 | + ignoreFailures = false |
| 22 | +} |
| 23 | + |
| 24 | +checkstyleMain { |
| 25 | + ignoreFailures = false |
| 26 | +} |
| 27 | + |
| 28 | +checkstyleTest { |
| 29 | + ignoreFailures = false |
| 30 | +} |
| 31 | + |
| 32 | + |
20 | 33 | task docs(type: Javadoc) { |
21 | 34 | destinationDir = file("$buildDir/docs/all") |
22 | 35 | } |
@@ -45,8 +58,12 @@ allprojects { |
45 | 58 |
|
46 | 59 | subprojects { |
47 | 60 |
|
| 61 | + checkstyleMain { |
| 62 | + ignoreFailures = false |
| 63 | + } |
| 64 | + |
48 | 65 | checkstyleTest { |
49 | | - ignoreFailures = true |
| 66 | + ignoreFailures = false |
50 | 67 | } |
51 | 68 |
|
52 | 69 | afterEvaluate { |
|
Collapse file
Copy file name to clipboardExpand all lines: conversation/build.gradle +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -51,6 +51,7 @@ signArchives { |
51 | 51 |
|
52 | 52 | checkstyle { |
53 | 53 | configFile = rootProject.file('checkstyle.xml') |
| 54 | + ignoreFailures = false |
54 | 55 | } |
55 | 56 |
|
56 | 57 | dependencies { |
|
Collapse file
Copy file name to clipboardExpand all lines: core/build.gradle +1-4Lines changed: 1 addition & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -49,13 +49,10 @@ signArchives { |
49 | 49 | } |
50 | 50 | } |
51 | 51 |
|
52 | | -checkstyleTest { |
53 | | - ignoreFailures = true |
54 | | -} |
55 | 52 |
|
56 | 53 | checkstyle { |
57 | 54 | configFile = rootProject.file('checkstyle.xml') |
58 | | - ignoreFailures = true |
| 55 | + ignoreFailures = false |
59 | 56 | } |
60 | 57 |
|
61 | 58 | task testJar(type: Jar) { |
|
Collapse file
Copy file name to clipboardExpand all lines: core/src/main/java/com/ibm/watson/developer_cloud/service/WatsonService.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -134,7 +134,7 @@ protected OkHttpClient configureHttpClient() { |
134 | 134 | .build(); |
135 | 135 |
|
136 | 136 | builder.connectionSpecs(Arrays.asList(spec, ConnectionSpec.CLEARTEXT)); |
137 | | - |
| 137 | + |
138 | 138 | return builder.build(); |
139 | 139 | } |
140 | 140 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: core/src/test/java/com/ibm/watson/developer_cloud/util/WaitFor.java +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
21 | 21 |
|
22 | 22 | public class WaitFor { |
23 | 23 |
|
24 | | - private WaitFor() {} |
| 24 | + private WaitFor() { |
| 25 | + |
| 26 | + } |
25 | 27 |
|
26 | 28 | /** |
27 | 29 | * Static method used to wait for a specific condition to be satisfied. |
|
Collapse file
Copy file name to clipboardExpand all lines: dialog/build.gradle +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -49,11 +49,9 @@ signArchives { |
49 | 49 | } |
50 | 50 | } |
51 | 51 |
|
52 | | -checkstyleTest { |
53 | | - ignoreFailures = true |
54 | | -} |
55 | 52 | checkstyle { |
56 | 53 | configFile = rootProject.file('checkstyle.xml') |
| 54 | + ignoreFailures = false |
57 | 55 | } |
58 | 56 |
|
59 | 57 | task testJar(type: Jar) { |
|
Collapse file
Copy file name to clipboardExpand all lines: discovery/build.gradle +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -50,12 +50,12 @@ signArchives { |
50 | 50 | } |
51 | 51 |
|
52 | 52 | checkstyleTest { |
53 | | - ignoreFailures = true |
| 53 | + ignoreFailures = false |
54 | 54 | } |
55 | 55 |
|
56 | 56 | checkstyle { |
57 | 57 | configFile = rootProject.file('checkstyle.xml') |
58 | | - ignoreFailures = true |
| 58 | + ignoreFailures = false |
59 | 59 | } |
60 | 60 |
|
61 | 61 | dependencies { |
|
Collapse file
Copy file name to clipboardExpand all lines: discovery/src/test/java/com/ibm/watson/developer_cloud/discovery/v1/DiscoveryServiceTest.java +8-1Lines changed: 8 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
73 | 73 |
|
74 | 74 | import static org.junit.Assert.assertEquals; |
75 | 75 |
|
76 | | -import java.io.*; |
| 76 | +import java.io.FileReader; |
| 77 | +import java.io.FileNotFoundException; |
| 78 | +import java.io.InputStream; |
| 79 | +import java.io.ByteArrayInputStream; |
| 80 | +import java.io.File; |
| 81 | +import java.io.FileWriter; |
| 82 | +import java.io.IOException; |
| 83 | +import java.io.BufferedWriter; |
77 | 84 | import java.util.HashSet; |
78 | 85 | import java.util.Set; |
79 | 86 |
|
|