AT003¶
Acceptance testsStandard
check for acceptance test function names missing an underscore
The AT003 analyzer reports where an underscore is not present in the function name, which could make per-resource testing harder to execute in larger providers or those with overlapping resource names.
Examples¶
This example is presuming there are two separate resources:
example_thingexample_thing_association
Ignoring reports¶
Singular reports can be ignored by adding a //lintignore:AT003 Go code comment at the end of the offending line or on the line immediately preceding, e.g.
This page is generated from passes/AT003/README.md, which lives beside the analyzer.