Warn about invalid files (files with '-', etc )
Brought to you by:
fabioz
Hiya,
I just noticed that a file of mine along the lines of some-thing.py failed to show any pylint issues or errors of any kind. I renamed the file within eclipse to something.py and it immediately ran pylint. Renaming it back to some-thing.py and pylint didn't re-run. I'm happy to provide more information, or run further tests if that will help isolate the problem. Thanks...
Mike 5:)
Files containing a '-' are not valid python modules (that's why PyLint won't run on them)
(there's no way to do import my-module)
Ah thanks very much, it wasn't a module, it was the main program file, so I hadn't spotted that. I do seem to be able to execute pylint 0.15.2 on the file, and sure enough it tells me it's an invalid name. It was just a bit confusing not to have pylint run at all on a .py file. Perhaps you could add a pydev error to the problems list if the filename is invalid, so that people realize why pylint's not running?