Skip to content

Commit 572827a

Browse files
ttuegelrv-jenkins
andauthored
Ignore HLint's suggestion to reduce duplication (#2294)
Co-authored-by: rv-jenkins <[email protected]>
1 parent 9cbcac6 commit 572827a

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

.hlint.yaml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -86,29 +86,12 @@
8686
- ignore: {name: "Replace case with maybe"}
8787
- ignore: {name: "Hoist not"}
8888

89-
# Permit existing duplication in tests.
90-
# Please reflect before adding new modules to this list.
91-
- ignore:
92-
name: Reduce duplication
93-
within:
94-
- Test.Kore
95-
- Test.Kore.AllPath
96-
- Test.Kore.ASTVerifier.DefinitionVerifier.Imports
97-
- Test.Kore.Builtin.Definition
98-
- Test.Kore.Builtin.InternalBytes
99-
- Test.Kore.Builtin.List
100-
- Test.Kore.Builtin.Map
101-
- Test.Kore.Builtin.Set
102-
- Test.Kore.Exec
103-
- Test.Kore.Internal.TermLike
104-
- Test.Kore.Parser.Parser
105-
- Test.Kore.Repl.Interpreter
106-
- Test.Kore.Step.EquationalStep
107-
- Test.Kore.Step.RewriteStep
108-
- Test.Kore.Step.Rule.Combine
109-
- Test.Kore.Step.Step
110-
- Test.Kore.Step.Substitution
111-
- Test.Kore.Strategies.AllPath.AllPath
89+
# Ignore suggestions to reduce duplication, because:
90+
# - High rate of false positives
91+
# - Suggestions are often not applicable
92+
# - Difficult to ignore suggestion locally
93+
# - Only detects exact duplication of text, not anything interesting
94+
- ignore: {name: "Reduce duplication"}
11295

11396
# The placement of lambdas affects inlining.
11497
- ignore: {name: Redundant lambda}

0 commit comments

Comments
 (0)