Skip to content

Commit 1b0e886

Browse files
authored
Merge pull request #3173 from tboby/patch-1
Docs - Update FAKE fantomas command
2 parents fab1bd8 + eee72ee commit 1b0e886

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/end-users/FormattingCheck.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ If you are using `FAKE` by any chance, a good step is to have `CheckFormat` targ
5959
```fsharp
6060
Target.create "CheckFormat" (fun _ ->
6161
let result =
62-
DotNet.exec id "fantomas ourSourceFolder --recurse --check"
62+
DotNet.exec id "fantomas" "ourSourceFolder --check"
6363
6464
if result.ExitCode = 0 then
6565
Trace.log "No files need formatting"
6666
elif result.ExitCode = 99 then
67-
failwith "Some files need formatting, run \"dotnet fantomas ourSourceFolder --recurse\" to resolve this."
67+
failwith "Some files need formatting, run \"dotnet fantomas ourSourceFolder\" to resolve this."
6868
else
6969
Trace.logf "Errors while formatting: %A" result.Errors)
7070
@@ -83,7 +83,7 @@ Target.runOrDefault "All"
8383
```
8484

8585
The recommendation is to install `fantomas` as a local tool and run it using the generic `DotNet.exec` api.
86-
This translates to running `dotnet fantomas ourSourceFolder --recurse --check`.
86+
This translates to running `dotnet fantomas ourSourceFolder --check`.
8787

8888
### Any other continuous integration environment
8989

0 commit comments

Comments
 (0)