-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Smart code line length validation #1182
Comments
Yes, there are issues with some long lines:
|
Yes, exactly. Sometimes it helps to move it into a separate var: msg = "something went really-really wrong"
raise SomeReallyEnterpriseClassicJavaNameError(msg) But sometimes the message itself is too long. |
Hi again, me and my friend would like to try and take on this issue. What's the believed difficulty level for this one? |
This one is not clear to me yet. You can select any issue from: https://github.com/wemake-services/wemake-python-styleguide/milestone/16 It would be easier 🙂 |
flake8-bugbear has The idea is a bit similar: to relax a bit line length limit. |
Also, if the line-length limit is violated by UPD: also, |
The related task for a go linter: walle/lll#11 |
I decided to experiment with it a bit and made a separate small plugin: |
Awesome! 👍 |
Rule request
Thesis
max-line-length
without any effort from us.Example:
Reasoning
I see a lot of Python code that does some awful breaks to fit long text messages into the project's line limit just because. However, it creates a lot of difficulties:
After all, it's good to relax a rule that looks not so reasonable in the modern world:
The text was updated successfully, but these errors were encountered: