Skip to content

Commit 1672b02

Browse files
committed
enable javac -Xlint warning flags
1 parent 5c0027c commit 1672b02

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ subprojects {
6969
options.encoding = "UTF-8"
7070
options.compilerArgs.add("-parameters")
7171

72+
// Source code: A category that an Error Prone check already owns is deliberately absent
73+
options.compilerArgs.add("-Xlint:deprecation,removal,unchecked,cast,rawtypes,divzero,this-escape,identity,text-blocks,dangling-doc-comments,restricted")
74+
// The build itself: command-line options, path entries, output file collisions
75+
options.compilerArgs.add("-Xlint:options,path,output-file-clash")
76+
7277
options.errorprone {
7378
// The checks live in errorprone.args, see https://github.com/tbroyer/gradle-errorprone-plugin#argument-files
7479
argumentFiles.from(rootProject.layout.projectDirectory.file("errorprone.args"))

0 commit comments

Comments
 (0)