ndmitchell/hlint

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

オープン

#748 opened on 2019/08/23

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)Haskell (208 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (1,602 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド