Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels