Skip to content

incompatible_restrict_attribute_names: Fail when calling rule() with non-identifier attr names #6437

@laurentlb

Description

@laurentlb

This should probably be an error:

foo = rule(
    implementation = ...,
    attrs = {"!@#$%": attr.string()}
)

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)incompatible-changeIncompatible/breaking change

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions