neomake icon indicating copy to clipboard operation
neomake copied to clipboard

Add option to disable "linter not found" errors

Open GoldsteinE opened this issue 6 years ago • 6 comments

I want to disable error messages about not found linter executable. I have one Vim setup for many hosts, and it's perfectly OK if there is no linter on one of them.

GoldsteinE avatar Sep 11 '19 14:09 GoldsteinE

So you configure them explicitly then I assume? (there are no errors when auto-detection does not find makers)

blueyed avatar Sep 11 '19 15:09 blueyed

Yes. I need disabled by default mypy for most of my projects.

GoldsteinE avatar Sep 11 '19 19:09 GoldsteinE

"mypy" is not enabled by default. Is this mostly/only for Python files?

blueyed avatar Sep 11 '19 20:09 blueyed

I mostly write Python, though I don't see any difference between Python and not-Python files.

GoldsteinE avatar Sep 11 '19 20:09 GoldsteinE

I don't see any difference between Python and not-Python files.

Sure. I'm just interested in understanding your use case.

Can you post your Neomake config, please?

blueyed avatar Sep 11 '19 20:09 blueyed

It was like this:

let g:neomake_highlight_lines = 1
let g:neomake_highlight_columns = 0
let g:neomake_shellcheck_args = ['-fgcc']
let g:neomake_python_enabled_makers = ['python', 'flake8', 'mypy', 'pylint']

Now I changed it to this, but it's looks quite ugly:

let g:neomake_highlight_lines = 1
let g:neomake_highlight_columns = 0
let g:neomake_shellcheck_args = ['-fgcc']
let g:neomake_python_enabled_makers = ['python']
if executable('flake8')
	let g:neomake_python_enabled_makers += ['flake8']
endif
if executable('mypy')
	let g:neomake_python_enabled_makers += ['mypy']
endif
if executable('pylint')
	let g:neomake_python_enabled_makers += ['pylint']
endif

GoldsteinE avatar Sep 11 '19 20:09 GoldsteinE