Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Add rule for trailing commas #65

Open
nishtahir opened this issue Mar 2, 2018 · 1 comment
Open

Add rule for trailing commas #65

nishtahir opened this issue Mar 2, 2018 · 1 comment
Labels
enhancement good first issue Good issue for first time contributors help wanted new rule

Comments

@nishtahir
Copy link
Member

We should add a new rule for trailing commas?

Reference eslint implementation
https://eslint.org/docs/rules/comma-dangle

For example, the following function

function sampleFunction() as object
    if GetGlobalAA().user = invalid then
        user = {
            _name : "",
        }
        GetGlobalAA()["user"] = user
    end if
    return invalid
end function

would warn about the trailing comma , in the code block.

@nishtahir
Copy link
Member Author

Related to #64

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement good first issue Good issue for first time contributors help wanted new rule
Projects
None yet
Development

No branches or pull requests

2 participants