The AT008 analyzer reports where the *testing.T
parameter of an acceptance test declaration is not named t
, which is a standard convention.
func TestAccExampleThing_basic(invalid *testing.T) { /* ... */}
func TestAccExampleThing_basic(t *testing.T) { /* ... */}
Singular reports can be ignored by adding the a //lintignore:AT008
Go code comment at the end of the offending line or on the line immediately proceding, e.g.
//lintignore:AT008
func TestAccExampleThing_basic(invalid *testing.T) { /* ... */}