Skip to content
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

Limit line length to 400 in JS #5362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Gustry
Copy link
Member

@Gustry Gustry commented Feb 5, 2025

Until now, we got some lines up to 700 characters long.

This is not the best :

  • Difficult to see the difference within one line diff
  • Difficult to track within GIT, (for instance, within this PR, it's difficult to see if I broke something)

I set to 400, I hope temporary. Before going further, I would like your idea. Optimum is 120, 130 (to have two files side-by-side, without softwrap). Also in GitHub/GitLab UI, lines are 120 characters.
If a line is more than 130, it's means that the code should be refactored, to introduce an intermediate variable.

Keen to have feedbacks : @mind84 @nworr @mdouchin @nboisteault @rldhont

@Gustry Gustry added tests unit tests and docker configuration for tests refactoring backport release_3_8 backport release_3_9 labels Feb 5, 2025
@github-actions github-actions bot added this to the 3.10.0 milestone Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release_3_9 refactoring tests unit tests and docker configuration for tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant