Ale: How to configure a linter

Created on 31 Oct 2017  路  4Comments  路  Source: dense-analysis/ale

I would like to configure the Python MyPy tool to include the option --ignore-missing-imports, how would I do this?

I can see you can define specific linters to be run:

let g:ale_linters = {
\   'javascript': ['eslint'],
\}

But I'm not sure how to modify that behaviour.

With Neomake you could do something like the following:

let g:neomake_python_mypy_args = neomake#makers#ft#python#mypy()['args'] + ['--ignore-missing-imports']

Most helpful comment

I think that you can do it with something like this:

let g:ale_python_mypy_options = '--ignore-missing-imports --other-option'

All 4 comments

I think that you can do it with something like this:

let g:ale_python_mypy_options = '--ignore-missing-imports --other-option'

See :help ale-integrations which explains everything, or just read the documentation from the top with :help ale.

@w0rp Please consider addding this to the README FAQ section.

It's added in the usage section for linting, so if anyone were to go to the README and go to the linting usage documentation (which is above the FAQ) they should see it there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arthuryangcs picture arthuryangcs  路  4Comments

ilyakopy picture ilyakopy  路  4Comments

glepnir picture glepnir  路  3Comments

amerov picture amerov  路  4Comments

plexigras picture plexigras  路  3Comments