Skip to content

UNQUOTED_STRUCT_KEY only reported for implicit declaration #405

@KamasamaK

Description

@KamasamaK

This rule is not triggered when using dot notation to declare a new key.

Reported:

<cfset sampleStruct = {
    aKey="aValue",
    anotherKey="anotherValue"
}>

Unreported:
<cfset sampleStruct.yetAnotherKey = "yetAnotherValue">

It should be consistent and report both, recommending using array-notation when declaring new keys on a struct.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions