ndmitchell/hlint

"ignore: {}" causes restricted functions and imports to be ignored

开放

#748 创建于 2019年8月23日

 (7 条评论) (0 个反应) (0 位负责人)Haskell (208 个派生)batch import
good first issue

仓库指标

星标
 (1,602 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

In HLint 2.2.2, the following config:

- ignore: {}
- functions:
  - {name: putStrLn, within: []}
- modules:
  - {name: [Data.List], as: List}

causes no warning to be issued on the following module:

module Main where
import Data.List as L
main :: IO ()
main = putStrLn $ L.intercalate " " ["hlint", "is", "awesome"]

whereas the appropriate warnings are raised without the ignore: {}. This is counterintuitive to me, because the README says:

These directives are applied in the order they are given, with later hints overriding earlier ones.

贡献者指南