Improve warnings for expr (fixes #2033)

This commit is contained in:
Vidar Holen 2021-08-22 11:55:01 -07:00
parent da7b28213e
commit 5b6fd60279
3 changed files with 67 additions and 9 deletions

View file

@ -142,7 +142,7 @@ producesComments c s = do
prRoot pr
let spec = defaultSpec pr
let params = makeParameters spec
return . not . null $ runChecker params c
return . not . null $ filterByAnnotation spec params $ runChecker params c
makeComment :: Severity -> Id -> Code -> String -> TokenComment
makeComment severity id code note =