Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 608 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 608 Bytes

AT008

The AT008 analyzer reports where the *testing.T parameter of an acceptance test declaration is not named t, which is a standard convention.

Flagged Code

func TestAccExampleThing_basic(invalid *testing.T) { /* ... */}

Passing Code

func TestAccExampleThing_basic(t *testing.T) { /* ... */}

Ignoring Reports

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) { /* ... */}