“Style” lint from Pylint and lint configuration #694
Labels
A-lint
Area: New lints
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
S-needs-discussion
Status: Needs further discussion before merging or work can be started
Pylint has a few interesting “bad style” lints, eg.:
The three of those are interesting I think.
i
,j
, andk
, to which I think we should addn
; see also Lint non-expressive variable names #644, which suggests linting one-lettered variables if there are more than 3 in the same scope);>5
;The thing is pylint lints are all configurable through command line arguments or in a config file. I think we should have such configuration if we want to implement those lints. The cyclomatic-complexity and probably other lints will also benefit from it.
I suggest a
Clippy.toml
file, which could contain something likemaybe in a
[configuration]
table or something and to allow to use:#![plugin(clippy(too_many_arguments_threshold="7"))]
What do you think?
The text was updated successfully, but these errors were encountered: