chore: Enable asciicheck, asasalint, bidichk and exportloopref linters (#12169)
This commit is contained in:
parent
ccf3b1affe
commit
0955bd714f
|
|
@ -2,8 +2,12 @@ linters:
|
|||
disable-all: true
|
||||
enable:
|
||||
# - telegraflinter
|
||||
- asciicheck
|
||||
- asasalint
|
||||
- bidichk
|
||||
- bodyclose
|
||||
- dogsled
|
||||
- exportloopref
|
||||
- errcheck
|
||||
- goprintffuncname
|
||||
- gosimple
|
||||
|
|
|
|||
|
|
@ -174,9 +174,10 @@ func (c *CloudWatchLogs) Connect() error {
|
|||
queryToken = logGroupsOutput.NextToken
|
||||
|
||||
for _, logGroup := range logGroupsOutput.LogGroups {
|
||||
if *(logGroup.LogGroupName) == c.LogGroup {
|
||||
lg := logGroup
|
||||
if *(lg.LogGroupName) == c.LogGroup {
|
||||
c.Log.Debugf("Found log group %q", c.LogGroup)
|
||||
c.lg = &logGroup //nolint:revive
|
||||
c.lg = &lg
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ func (l *DebugLogger) Printf(format string, v ...interface{}) {
|
|||
}
|
||||
|
||||
func (l *DebugLogger) Println(v ...interface{}) {
|
||||
l.Print(v)
|
||||
l.Print(v...)
|
||||
}
|
||||
|
||||
func ValidateTopicSuffixMethod(method string) error {
|
||||
|
|
|
|||
Loading…
Reference in New Issue