-
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
= Mill ErrorProne Plugin | ||
|
||
https://errorprone.info/index[Error Prone] augments the Java compiler's type checker and detect common mistakes at compile time. | ||
|
||
You just need to mix the `ErrorProneModule` into your `JavaModule` and it will automatically run with every compilation. | ||
|
||
.`build.mill.sc`: Enable `ErrorProne` in a module | ||
[source,scala] | ||
---- | ||
package build | ||
import mill._, scalalib._ | ||
import $ivy.`com.lihaoyi::mill-contrib-errorprone:` | ||
import mill.contrib.errorprone.ErrorProneModule | ||
object foo extends JavaModule with ErrorProneModule { | ||
} | ||
---- | ||
|
||
== Configuration | ||
|
||
The following configuration options exist: | ||
|
||
`def errorProneVersion: T[String]`:: | ||
The `error-prone` version to use. Defaults to [[BuildInfo.errorProneVersion]], the version used to build and test the module. | ||
Find the latest at https://mvnrepository.com/artifact/com.google.errorprone/error_prone_core[mvnrepository.com] | ||
|
||
`def errorProneOptions: T[Seq[String]]`:: | ||
Options directly given to the `error-prone` processor. | ||
Those are documented as "flags" at https://errorprone.info/docs/flags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters