You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you just run pylint, you get the usage/help output, with exit code 32 (options error).
The actual problem is that you haven't specified any files, but literally nothing about this output communicates that fact. --long-help doesn't either.
Configuration
No response
Command used
pylint
Pylint output
The first line of the output is:
usage: pylint [options]
Followed by the standard list of options and switches -- but not one single mention of the need to specify files.
Expected behavior
IMO, the usage text should be:
usage: pylint [options] [files]
This should be accompanied by an explanation that files supports **, and that it is required unless you're specifying an option that causes pylint not to need those (e.g. because you used --from-stdin, or a command that doesn't involve a scan, such as --help, --full-documentation, etc.).
And, if you invoke pylint without specifying any files to scan, the usage text should be preceded by an error message saying you didn't specify any files to scan.
Alternative solution
Alternatively, pylint could scan the current directory recursively by default, i.e. the equivalent of:
pylint "$(pwd)"'/**/*.py'
This should still be paired with an update to the usage information to make clear that the user can specify a list of files.
Bug description
If you just run
pylint
, you get the usage/help output, with exit code 32 (options error).The actual problem is that you haven't specified any files, but literally nothing about this output communicates that fact.
--long-help
doesn't either.Configuration
No response
Command used
Pylint output
Expected behavior
IMO, the usage text should be:
This should be accompanied by an explanation that
files
supports**
, and that it is required unless you're specifying an option that causes pylint not to need those (e.g. because you used--from-stdin
, or a command that doesn't involve a scan, such as--help
,--full-documentation
, etc.).And, if you invoke
pylint
without specifying any files to scan, the usage text should be preceded by an error message saying you didn't specify any files to scan.Alternative solution
Alternatively, pylint could scan the current directory recursively by default, i.e. the equivalent of:
This should still be paired with an update to the usage information to make clear that the user can specify a list of files.
Pylint version
OS / Environment
macOS 13.4.1
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: