This commit is contained in:
zimbatm 2022-08-09 10:27:10 +02:00
parent 3aee5bd5d3
commit f400c2f320
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ $ rustfmt --edition 2018 src/main.rs src/lib.rs
A formatted file MUST be valid. This is a strong contract; the syntax or
semantic must never be broken by the formatter.
A formatted file SHOULD be idempotent. Meaning that if the formatter it run
A formatter SHOULD be idempotent. Meaning that if the formatter it run
twice on a file, the file should not change on the second invocation.
The formatter MUST NOT do file traversal when a list of files is passed to it.

View File

@ -28,7 +28,7 @@ excludes = ["examples/haskell/"]
[formatter.nix]
command = "nixpkgs-fmt"
includes = ["*.nix"]
includes = ["*.nix", ".foo.nix"]
# Act as an example on how to exlude specific files
excludes = ["examples/nix/sources.nix"]