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

Add rule for trailing commas #65

@nishtahir

Description

@nishtahir

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions