ci: Fix hlint CodeClimate output

This commit is contained in:
Alexander Kobjolke 2023-01-05 13:41:18 +00:00
parent 59eb3b502e
commit 8b4754e9ad
2 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@ unit-test-job: # This job runs in the test stage.
- linux
script:
- echo "Running unit tests... This will take about 60 seconds."
- sleep 60
- sleep 1
- echo "Code coverage is 90%"
lint-test-job: # This job also runs in the test stage.

View file

@ -20,8 +20,8 @@ $(BUILDDIR)/bin/annotator: app/Main.hs src/*.hs
watch:
@git ls-files src app Makefile | entr make -s build install
lint:
@-hlint -g --cc > $(BUILDDIR)/ci/hlint.report.json
lint: builddir
hlint lint --git --cc --no-exit-code | tr -d '\0' | jq -s . > $(BUILDDIR)/ci/hlint.report.json
clean:
@rm -rf $(BUILDDIR)