diff options
Diffstat (limited to 'libraries/base/.hlint.yaml')
-rw-r--r-- | libraries/base/.hlint.yaml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libraries/base/.hlint.yaml b/libraries/base/.hlint.yaml index 6ebe02e94c..670eb5f6fb 100644 --- a/libraries/base/.hlint.yaml +++ b/libraries/base/.hlint.yaml @@ -5,3 +5,25 @@ - ignore: {} - warn: {name: Unused LANGUAGE pragma} - warn: {name: Use fewer LANGUAGE pragmas} +- warn: {name: Redundant return} +- warn: {name: Redundant True guards} +- warn: {name: Redundant do} +- warn: {name: Redundant variable capture} +- warn: {name: Redundant void} +- warn: {name: Redundant as} +- warn: {name: Use fewer imports} +- warn: {name: Redundant as-pattern} +- warn: {name: Redundant where} +- warn: {name: Used otherwise as a pattern} + + +## Exceptions +# Sometimes, the hlint parser flags some functions and modules as incorrectly +# using a language extension. Some other times, we need to make exceptions to +# lints that we otherwise want applied elsewhere. Such exceptions are listed +# below. + +- ignore: {name: Unused LANGUAGE pragma, within: [GHC.IO.Encoding.CodePage]} +- ignore: {name: Redundant do, within: [GHC.IO.Handle.Text.commitBuffer]} +- ignore: {name: Use fewer imports, within: [GHC.Windows]} +- ignore: {name: Use fewer imports, within: [GHC.Event.Control]} |