diff options
author | Jakob Odersky <jakob@inpher.io> | 2019-09-30 19:21:21 -0400 |
---|---|---|
committer | Jakob Odersky <jakob@inpher.io> | 2019-11-20 12:13:52 -0500 |
commit | 5e062b7e9e50cc6a1dbb12291fbc2643a59a0210 (patch) | |
tree | 4f7bb7c37f6588381a79e2e7d055c921ab608703 /docs/pages/2 - Configuring Mill.md | |
parent | 2b5c2465544e318c225d748a3c73b244978ed98c (diff) | |
download | mill-scalafmt-check.tar.gz mill-scalafmt-check.tar.bz2 mill-scalafmt-check.zip |
Add task to only check formatting of Scala filesscalafmt-check
Diffstat (limited to 'docs/pages/2 - Configuring Mill.md')
-rw-r--r-- | docs/pages/2 - Configuring Mill.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/pages/2 - Configuring Mill.md b/docs/pages/2 - Configuring Mill.md index 97fd1a37..f0b03790 100644 --- a/docs/pages/2 - Configuring Mill.md +++ b/docs/pages/2 - Configuring Mill.md @@ -259,9 +259,10 @@ object foo extends ScalaModule with ScalafmtModule { } ``` -Now you can reformat code with `mill foo.reformat` command. +Now you can reformat code with `mill foo.reformat` command, or only check for misformatted files with `mill checkFormat`. -You can also reformat your project's code globally with `mill mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources` command. +You can also reformat your project's code globally with `mill mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources` command, +or only check the code's format with `mill mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll __.sources`. It will reformat all sources that matches `__.sources` query. If you add a `.scalafmt.conf` file at the root of you project, it will be used |