Skip to content

Commit 95de49b

Browse files
mxxunjneira
andauthored
Ban new uses of tail (#2634)
Co-authored-by: Javier Neira <[email protected]>
1 parent 2ffaffe commit 95de49b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ghcide/.hlint.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,21 @@
139139
- {name: unsafeCoerce, within: [Ide.Plugin.Eval.Code, Development.IDE.Core.Compile, Development.IDE.Types.Shake]}
140140
# Things that are a bit dangerous in the GHC API
141141
- {name: nameModule, within: []}
142+
# Partials and their legacy locations
143+
- name: tail
144+
within:
145+
- Development.Benchmark.Rules
146+
- Development.IDE.Plugin.CodeAction
147+
- Development.IDE.Plugin.CodeAction.ExactPrint
148+
- Development.IDE.Session
149+
# ghcide/test/exe
150+
- Main
151+
# plugins/hls-tactics-plugin/test
152+
# - UnificationSpec
153+
154+
# We really do not want novel usages of restricted functions, and mere
155+
# Warning is not enough to prevent those consistently; you need a build failure.
156+
- error: {name: Avoid restricted function}
142157

143158
# Add custom hints for this project
144159
#

0 commit comments

Comments
 (0)