summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJakob Odersky <jakob@inpher.io>2019-09-30 19:21:21 -0400
committerJakob Odersky <jakob@inpher.io>2019-11-20 12:13:52 -0500
commit5e062b7e9e50cc6a1dbb12291fbc2643a59a0210 (patch)
tree4f7bb7c37f6588381a79e2e7d055c921ab608703 /docs
parent2b5c2465544e318c225d748a3c73b244978ed98c (diff)
downloadmill-5e062b7e9e50cc6a1dbb12291fbc2643a59a0210.tar.gz
mill-5e062b7e9e50cc6a1dbb12291fbc2643a59a0210.tar.bz2
mill-5e062b7e9e50cc6a1dbb12291fbc2643a59a0210.zip
Add task to only check formatting of Scala filesscalafmt-check
Diffstat (limited to 'docs')
-rw-r--r--docs/pages/2 - Configuring Mill.md5
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