Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 567 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 567 Bytes

AT009

The AT009 analyzer reports where acctest.RandStringFromCharSet() calls can be simplified to acctest.RandString().

Flagged Code

rString := acctest.RandStringFromCharSet(8, acctest.CharSetAlphaNum)

Passing Code

rString := acctest.RandString(8)

Ignoring Reports

Singular reports can be ignored by adding the a //lintignore:AT009 Go code comment at the end of the offending line or on the line immediately proceding, e.g.

//lintignore:AT009
rString := acctest.RandStringFromCharSet(8, acctest.CharSetAlphaNum)