Skip to content

Commit 0f22e08

Browse files
committed
enable compiler warnings and linting
1 parent 612617f commit 0f22e08

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,14 @@
336336
<configuration>
337337
<source>${maven.compiler.source}</source>
338338
<target>${maven.compiler.target}</target>
339+
<showWarnings>true</showWarnings>
340+
<compilerArgs>
341+
<!-- Enable all linter messages for the compiler. -->
342+
<!-- TODO: Remove annotations preprocess warning exception. -->
343+
<arg>-Xlint:all,-processing</arg>
344+
<!-- Turn all warnings into errors to help keep the code clean. -->
345+
<arg>-Werror</arg>
346+
</compilerArgs>
339347
</configuration>
340348
</plugin>
341349
<plugin>

0 commit comments

Comments
 (0)