File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ use nix
157
157
- ` dhall format ` : built-in formatter
158
158
- [ clang-format] ( https://clang.llvm.org/docs/ClangFormat.html )
159
159
- [ hadolint] ( https://github.com/hadolint/hadolint )
160
+ - [ editorconfig-checker] ( https://github.com/editorconfig-checker/editorconfig-checker )
160
161
161
162
You must configure which languages should be formatted by ` clang_format ` using
162
163
` clang-format.types_or ` . For example to check both C and C++ files:
Original file line number Diff line number Diff line change 278
278
# 2. Below which there are haskell files, or
279
279
# 3. In which there is a package.yaml that references haskell files
280
280
# that have been changed at arbitrary locations specified in that
281
- # file.
281
+ # file.
282
282
# In other words: We have no choice but to always run `hpack` on every `package.yaml` directory.
283
283
pass_filenames = false ;
284
284
} ;
666
666
} ;
667
667
} ;
668
668
669
+ editorconfig-checker =
670
+ {
671
+ name = "editorconfig-checker" ;
672
+ description = "Verify that the files are in harmony with the `.editorconfig`." ;
673
+ entry = "${ tools . editorconfig-checker } /bin/editorconfig-checker" ;
674
+ types = [ "file" ] ;
675
+ } ;
676
+
669
677
} ;
670
678
}
Original file line number Diff line number Diff line change 9
9
, clippy
10
10
, deadnix
11
11
, dhall
12
+ , editorconfig-checker
12
13
, elmPackages
13
14
, git
14
15
, gitAndTools
44
45
} :
45
46
46
47
{
47
- inherit actionlint alejandra cabal-fmt cabal2nix cargo clang-tools clippy deadnix dhall hadolint hindent hlint hpack html-tidy nix-linter nixfmt nixpkgs-fmt ormolu rustfmt shellcheck shfmt statix stylish-haskell stylua typos go mdsh revive ;
48
+ inherit actionlint alejandra cabal-fmt cabal2nix cargo clang-tools clippy deadnix dhall editorconfig-checker hadolint hindent hlint hpack html-tidy nix-linter nixfmt nixpkgs-fmt ormolu rustfmt shellcheck shfmt statix stylish-haskell stylua typos go mdsh revive ;
48
49
inherit ( elmPackages ) elm-format elm-review elm-test ;
49
50
# TODO: these two should be statically compiled
50
51
inherit ( haskellPackages ) brittany fourmolu ;
You can’t perform that action at this time.
0 commit comments