Skip to content

Commit 7827cdf

Browse files
committed
upgrade hlint to 3.8, ignoring some new hints
1 parent f286d6d commit 7827cdf

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.hlint.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
# applied to Kore.Rewrite.SMT.Evaluator.evaluate.
1717
- ignore: {name: "Redundant evaluate"}
1818

19+
# This warning should apply to Data.NonEmpty.unzip but is mistakenly
20+
# applied to Data.List.unzip
21+
- ignore: {name: "Avoid NonEmpty.unzip", within: [Booster.Pattern.Rewrite]}
22+
1923
# Corporate style
2024
- ignore: {name: "Move brackets to avoid $" }
2125
- ignore: {name: "Use tuple-section"}
@@ -94,6 +98,10 @@
9498
name: "Redundant bracket"
9599
within:
96100
- Kore.Internal.TermLike.TermLike
101+
# decreases readability
102+
- ignore: {name: "Functor law"}
103+
- ignore: {name: "Move filter"}
104+
- ignore: {name: "Move mapMaybe"}
97105

98106

99107
# Haskell names match K names

scripts/hlint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -euxo pipefail
3-
expected_hlint_version=v3.6.1
3+
expected_hlint_version=v3.8
44
hlint=${HLINT:-$(which hlint)} || { echo 'No hlint!' ; exit 1 ; }
55
hlint_version=$(${hlint} --version | head -n1 | cut --field=1 --delimiter=',' | cut --field=2 --delimiter=' ')
66
[[ ${hlint_version} == ${expected_hlint_version} ]] || { echo "Unexpected hlint version, got ${hlint_version}, expected ${expected_hlint_version}" ; exit 1 ; }

0 commit comments

Comments
 (0)