Skip to content

Commit

Permalink
Enforce hlint and add it to the dev shell
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Apr 4, 2024
1 parent 11e9bcf commit 54b4fbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: reuse lint
run: nix-build -A packages.reuse && result/bin/reuse lint

- name: hlint
run: nix-build -A checks.hlint

- name: build nixfmt
run: nix-build
if: success() || failure()
Expand Down
3 changes: 2 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ build
haskellPackages.haskell-language-server
shellcheck
npins
hlint
];
};

checks = {
hlint = pkgs.build.haskell.hlint ./.;
hlint = pkgs.build.haskell.hlint src;
stylish-haskell = pkgs.build.haskell.stylish-haskell ./.;
};
}

0 comments on commit 54b4fbf

Please sign in to comment.