The S016 analyzer reports cases of schemas including Set
without TypeSet
,
which will fail schema validation.
&schema.Schema{
Set: /* ... */,
Type: schema.TypeList,
}
&schema.Schema{
Set: /* ... */,
Type: schema.TypeSet,
}
Singular reports can be ignored by adding the a //lintignore:S016
Go code comment at the end of the offending line or on the line immediately proceding, e.g.
//lintignore:S016
&schema.Schema{
Set: /* ... */,
Type: schema.TypeList,
}