Skip to content

Latest commit

 

History

History

AT009

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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)