Closed hasufell closed 6 years ago
Which IDE/client are you using? There is a configuration setting to turn off hlint, but it is only exposed in vscode at the moment, as far as I know.
For languageclient-neovim add
{
"languageServerHaskell": {
"hlintOn": false
}
}
to .vim/settings.json
in your project root
Can this be done globally?
@hasufell yeah, set g:LanguageClient_settingsPath to some absolute path @Bubba are those settings documented somewhere?
That configuration option is just for hlint though. What about the others?
There are no others. The config is currently defined as
data Config =
Config
{ hlintOn :: Bool
, maxNumberOfProblems :: Int
} deriving (Show)
Note that maxNumberOfProblems
applies across all sources of diagnostics, including GHC.
I haven't found a way to completely disable hlint. I find most of its suggestions either outright wrong (it suggests changing semantics) or just annoying. So I don't want to use a
.hlint.yaml
for every single project.hie --help
doesn't show anything useful either.It should somehow be possible to control the behavior of the linters, which are shown here.