Skip to content

Commit 5cbf89e

Browse files
authored
support for testrunner for java in vscode (#1001)
What changed? disable ErrorProne checks (some files are already violating but is suppressed due to Xlint:none) Why? Test Runner for Java extension for some reason doesn't read Xlint:none flag and thus fails on suppressed lint errors How did you test it? Locally tested on vscode
1 parent 96dfe1d commit 5cbf89e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,26 @@ compileJava {
170170
options.encoding = 'UTF-8'
171171
options.compilerArgs << '-Xlint:none' << '-Xlint:deprecation' << '-Werror'
172172
options.errorprone.excludedPaths = '.*/generated-sources/.*'
173+
options.errorprone {
174+
disable('BadImport')
175+
disable('PreferJavaTimeOverload')
176+
disable('JavaTimeDefaultTimeZone')
177+
disable('MutableConstantField')
178+
disable('CatchFail')
179+
}
173180
}
174181

175182
compileTestJava {
176183
options.encoding = 'UTF-8'
177184
options.compilerArgs << '-Xlint:none' << '-Xlint:deprecation' << '-Werror'
178185
options.errorprone.excludedPaths = '.*/generated-sources/.*'
186+
options.errorprone {
187+
disable('BadImport')
188+
disable('PreferJavaTimeOverload')
189+
disable('JavaTimeDefaultTimeZone')
190+
disable('MutableConstantField')
191+
disable('CatchFail')
192+
}
179193
}
180194

181195
// Generation version.properties for value to be included into the request header

0 commit comments

Comments
 (0)