diff options
Diffstat (limited to 'Biz/Lint.hs')
-rw-r--r-- | Biz/Lint.hs | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Biz/Lint.hs b/Biz/Lint.hs index cba6aef..2742fae 100644 --- a/Biz/Lint.hs +++ b/Biz/Lint.hs @@ -5,6 +5,17 @@ {-# LANGUAGE NoImplicitPrelude #-} -- : out lint +-- +-- these are actually runtime deps, but bild doesn't (yet) distinguish between +-- rundeps and sysdeps: +-- +-- : sys ormolu +-- : sys hlint +-- : sys black +-- : sys ruff +-- : sys deadnix +-- : sys shellcheck +-- : sys indent module Biz.Lint (main) where import Alpha @@ -130,6 +141,14 @@ black = fixArgs = Just [] } +ruff :: Linter +ruff = + Linter + { exe = "ruff", + checkArgs = ["check"], + fixArgs = Just ["check", "--fix"] + } + deadnix :: Linter deadnix = Linter @@ -172,7 +191,8 @@ runOne mode root cwd path_ = results +> traverse_ printResult >> results lint mode hlint path_ ] Just (Namespace _ Py) -> - [ lint mode black path_ + [ lint mode black path_, + lint mode ruff path_ ] Just (Namespace _ Sh) -> [lint mode shellcheck path_] Just (Namespace _ Nix) -> [lint mode deadnix path_] |