The S020 analyzer reports cases of schemas which enables only Computed
and enables ForceNew
, which is invalid.
&schema.Schema{
Computed: true,
ForceNew: true,
}
&schema.Schema{
Computed: true,
}
Singular reports can be ignored by adding the a //lintignore:S020
Go code comment at the end of the offending line or on the line immediately proceding, e.g.
//lintignore:S020
&schema.Schema{
Computed: true,
ForceNew: true,
}