Skip to content

Commit 5772c23

Browse files
committed
HLint partial functions
1 parent 2121495 commit 5772c23

File tree

1 file changed

+74
-7
lines changed

1 file changed

+74
-7
lines changed

ghcide/.hlint.yaml renamed to .hlint.yaml

Lines changed: 74 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,20 +137,87 @@
137137
# Things that are unsafe in Haskell base library
138138
- {name: unsafeInterleaveIO, within: [Development.IDE.LSP.LanguageServer]}
139139
- {name: unsafeDupablePerformIO, within: []}
140-
- {name: unsafeCoerce, within: [Ide.Plugin.Eval.Code, Development.IDE.Core.Compile, Development.IDE.Types.Shake]}
140+
- name: unsafeCoerce
141+
within:
142+
- Ide.Plugin.Eval.Code
143+
- Development.IDE.Core.Compile
144+
- Development.IDE.Types.Shake
145+
- Wingman.Judgements.SYB
146+
- Ide.Plugin.Properties
147+
141148
# Things that are a bit dangerous in the GHC API
142-
- {name: nameModule, within: []}
143-
# Partials and their legacy locations
144-
- name: tail
149+
- name: nameModule
150+
within:
151+
- Ide.Plugin.CallHierarchy.Internal
152+
- Ide.Plugin.Rename
153+
- Compat.HieBin
154+
155+
# Partial functions
156+
- name: Data.List.head
157+
within:
158+
- Main
159+
- Experiments
160+
- Development.IDE.Core.Shake
161+
- Development.IDE.Plugin.CodeAction
162+
- Development.IDE.Plugin.Completions
163+
- Development.IDE.Plugin.CodeAction.ExactPrint
164+
- Development.IDE.Session
165+
- Development.IDE.Spans.Documentation
166+
- Ide.Plugin.CallHierarchy.Internal
167+
- TExpectedActual
168+
- TRigidType
169+
- TRigidType
170+
- Ide.Plugin.Class
171+
- Wingman.Tactics
172+
173+
- name: Data.List.tail
145174
within:
175+
- Main
146176
- Development.Benchmark.Rules
147177
- Development.IDE.Plugin.CodeAction
148178
- Development.IDE.Plugin.CodeAction.ExactPrint
149179
- Development.IDE.Session
150-
# ghcide/test/exe
180+
- IDE.Plugin.Eval.Code
181+
- IDE.Plugin.Eval.Util
182+
- UnificationSpec
183+
184+
- name: "Data.List.!!"
185+
within:
151186
- Main
152-
# plugins/hls-tactics-plugin/test
153-
# - UnificationSpec
187+
- Experiments
188+
- FunctionalCodeAction
189+
- Development.IDE.Plugin.CodeAction
190+
- Development.IDE.Plugin.Completions.Logic
191+
- Development.IDE.Spans.Documentation
192+
- Wingman.CaseSplit
193+
- Wingman.Simplify
194+
195+
196+
- name: Data.Text.head
197+
within:
198+
- Development.IDE.Plugin.CodeAction
199+
- Development.IDE.Plugin.Completions.Logic
200+
201+
- name: Data.Maybe.fromJust
202+
within:
203+
- Experiments
204+
- Main
205+
- MultipleImports
206+
- Progress
207+
- Utils
208+
- Development.IDE.Core.Compile
209+
- Development.IDE.Core.Rules
210+
- Development.IDE.Core.Shake
211+
- Development.IDE.Plugin.Completions
212+
- Development.IDE.Plugin.CodeAction.ExactPrint
213+
- Development.IDE.Test
214+
- Development.IDE.Graph.Internal.Profile
215+
- Development.IDE.Graph.Internal.Rules
216+
- Ide.Plugin.Class
217+
218+
- name: "Data.Map.!"
219+
within:
220+
- Wingman.LanguageServer
154221

155222
# We really do not want novel usages of restricted functions, and mere
156223
# Warning is not enough to prevent those consistently; you need a build failure.

0 commit comments

Comments
 (0)