ndmitchell/hlint

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

Aberta

#748 aberto em 23 de ago. de 2019

 (7 comentários) (0 reação) (0 responsável)Haskell (208 forks)batch import
good first issue

Métricas do repositório

Stars
 (1.602 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador