The XS002 analyzer reports cases of schemas where attributes are not listed in alphabetical order.
map[string]*schema.Schema{
"name": { /* ... */ },
"arn": { /* ... */ },
},
}
map[string]*schema.Schema{
"arn": { /* ... */ },
"name": { /* ... */ },
},
}
Singular reports can be ignored by adding the a //lintignore:XS002
Go code comment at the end of the offending line or on the line immediately proceding, e.g.
//lintignore:XS002
map[string]*schema.Schema{
"name": { /* ... */ },
"arn": { /* ... */ },
},
}