Skip to content

Improved & generalized semicolon linter [patch] #181

Closed
@fangly

Description

@fangly

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions