summaryrefslogtreecommitdiff
path: root/docs/pages/2 - Configuring Mill.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pages/2 - Configuring Mill.md')
-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