Details
Description
Struct tags are considered as String literals, triggering S1192 (duplicated string), even though a constant can not replace the duplicated string.
type AccessRequest struct { Id string "id" Name string "name" Status string "status" }
If multiple structs contain the same tag, the rule will trigger a false positive.
Attachments
Issue Links
- relates to
-
RSPEC-1192 String literals should not be duplicated
- Active