-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation for too-many-lines #8235
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd argue that the good v. bad examples are confusing because by adding code that's actually different (loop in good v. lots of print statements in bad), it's honing in on other code issues and not just too many lines in the module.
I'd suggest doing something way simpler, make the config for line number be something small like 3
and then have almost identical code in good/bad files but just one more line in bad.
@clavedeluna - Ok, do you think this code for bad.py is good: Importsimport datetime print("Current date and time: " , datetime.datetime.now()) And a for loop with some of those values in a list for the good.py file? |
How about something as simple as:
bad.py good: but maybe another maintainer will disagree with me |
#8219 (review) Please don't reopen issue when it was already rejected, you're wasting everyone's time. |
@Pierre-Sassoulas Please look at the discussion that was happening above. |
Too many lines is not a message that can be properly reported with a good/bad example, it's also not a concept that is hard to grasp and absolutely needs an example to be understood. But it does need a rational. This is why we're going to use a template without good/bad to document it. I've already reviewed your proposal yesterday and closed your issue, please take reviews and review comments into account if you want to keep contributing to pylint. |
Type of Changes
Description
Adding documentation for too-many-lines
Refs #5953
Closes #XXXX