Skip to content

Commit

Permalink
Add "label,optional" to Alloy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ptodev committed Oct 1, 2024
1 parent 9e364e4 commit 2c007de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/alloylint/internal/syntaxtags/syntaxtags.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func lintSyntaxTag(ty *types.Var, tag string) (diagnostics []string) {
}
}

case "label":
case "label", "label,optional":
if name != "" {
diagnostics = append(diagnostics, "label field must have an empty value for name")
}
Expand Down

0 comments on commit 2c007de

Please sign in to comment.