-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
standardize JS semi-colon style in backend #2847
standardize JS semi-colon style in backend #2847
Conversation
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.
Nice work! Personally, I don't like to put them but I think you're right that where Solidus is right now semicolons seem to be the norm.
Semicolons are totally optional in Javascript, that’s why I think we should not change a bunch of source files. It does not provide any benefit but adding noise to git blame. And that alone is reason enough to reject this change. But, I think we should think about adding JS linting to our workflow. But this is a whole different story. For the scope if this PR I think we should not do it. |
@tvdeyen That's fair, totally agree with turning this down in favor of adopting some kind of linter. I feel like there are a lot of opportunities to increase our code quality, particularly in JS. |
Opened #2849 in response to this feedback. Would love to hear some opinions there so that we can do something about JS code quality. Thanks! 👍 |
@ericsaupe the difference is that we proposing a change here that would preferable be disabled in a linter (because semicolons are optional even in JS) and we did not care in the past and should not continue to care about them. Being too strict with linters can harm contributions. We want only the bare minimum of style linting as possible. The same reasons why we have lots of Rubcops disabled. IMO We should:
That's how we did it with Rubocop and this is how we should do this with JS linting. |
Should we close this PR in favor of the solution to #2849? |
Sounds good to me @ericsaupe |
This is a pretty low priority PR. I noticed that semi-colon usage was pretty erratic in the JS. It seemed that generally it was preferable to end statements with a semi-colon, so I went ahead and tried to standardize that across all of the JS.