From 6555b68ca0678827b89c5624db071f5a485d18b7 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Fri, 18 Feb 2022 17:27:32 +0100 Subject: Move linters into the tree This MR moves the GHC linters into the tree, so that they can be run directly using Hadrian. * Query all files tracked by Git instead of using changed files, so that we can run the exact same linting step locally and in a merge request. * Only check that the changelogs don't contain TBA when RELEASE=YES. * Add hadrian/lint script, which runs all the linting steps. * Ensure the hlint job exits with a failure if hlint is not installed (otherwise we were ignoring the failure). Given that hlint doesn't seem to be available in CI at the moment, I've temporarily allowed failure in the hlint job. * Run all linting tests in CI using hadrian. --- cabal.project-reinstall | 1 + 1 file changed, 1 insertion(+) (limited to 'cabal.project-reinstall') diff --git a/cabal.project-reinstall b/cabal.project-reinstall index e026e70a5d..aa6fc0c47e 100644 --- a/cabal.project-reinstall +++ b/cabal.project-reinstall @@ -46,6 +46,7 @@ packages: ./compiler ./utils/runghc ./utils/unlit ./utils/iserv + ./linters/**/*.cabal constraints: ghc +internal-interpreter +dynamic-system-linke +terminfo, ghc-bin +internal-interpreter +threaded, -- cgit v1.2.1