README
¶
S005
The S005 analyzer reports cases of schemas which enables Computed
and configures Default
, which will fail provider schema validation.
Flagged Code
&schema.Schema{
Computed: true,
Default: /* ... */,
}
Passing Code
&schema.Schema{
Computed: true,
}
# OR
&schema.Schema{
Default: true,
}
Ignoring Reports
Singular reports can be ignored by adding the a //lintignore:S005
Go code comment at the end of the offending line or on the line immediately proceding, e.g.
//lintignore:S005
&schema.Schema{
Computed: true,
Default: /* ... */,
}
Documentation
¶
Overview ¶
Package S005 defines an Analyzer that checks for Schema with Computed enabled and Default configured
Index ¶
Constants ¶
View Source
const Doc = `` /* 196-byte string literal not displayed */
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: analyzerName, Doc: Doc, Requires: []*analysis.Analyzer{ schemainfo.Analyzer, commentignore.Analyzer, }, Run: run, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.