You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that trailing_semicolons_linter() missed some cases (when the statements are not enclosed in "function(){}"). Further, I wanted to be able to report compound semicolons, semicolons between two statements on the same line.
So, this is what I did:
* added more tests to trailing_semicolons_linter()
* had to improve trailing_semicolons_linter()'s code to pass all tests
* generalized trailing_semicolons_linter() so that it also detects compound semicolons
* added the option to report compound semicolons, trailing, or both
* renamed it to semicolon_linter() to match the new functionality
Hi,
I noticed that trailing_semicolons_linter() missed some cases (when the statements are not enclosed in "function(){}"). Further, I wanted to be able to report compound semicolons, semicolons between two statements on the same line.
So, this is what I did:
* added more tests to trailing_semicolons_linter()
* had to improve trailing_semicolons_linter()'s code to pass all tests
* generalized trailing_semicolons_linter() so that it also detects compound semicolons
* added the option to report compound semicolons, trailing, or both
* renamed it to semicolon_linter() to match the new functionality
The result is in this patch: 0001-Improved-generalized-trailing_semicolons_linter-now-.zip
Best,
Florent
The text was updated successfully, but these errors were encountered: