AtomLinter / linter-pylint

Atom linter plugin for Python, using pylint.
60 stars 48 forks source link

Add options for when no .pylintrc is found #256

Open demeralde opened 6 years ago

demeralde commented 6 years ago

Not all the projects I work on use Pylint. On the ones that don't it throws errors because linter-pylint expects it to be configured.

To work around this I think the best solution would be to add options for when no .pylintrc is found:

My current settings for Pylint are as follows:

Executable Path: %p/.venv/bin/pylint Python Path: %p/.venv/bin/python Rc File: %p/.pylintrc

andb0t commented 5 years ago

I would greatly appreciate a solution here. At the moment I always have to disable it by hand to avoid being swamped by

[Linter] Error running Pylint
See Console for more info.
[...]
OSError: The config file [MY_PROJECT]/.pylintrc doesn't exist!

errors. Can't commit to contributing myself to this, even though I might have a look at it. In case one of you experienced guys is quicker, I'd be really thankful ;)

andb0t commented 5 years ago

I think it should be something like if (this.rcFile !== '' && File.Exists(this.rcFile)) { in this line, but I don't know how to do that in JS