Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Jun 27, 2024
1 parent bc643ae commit d0540ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ func readFile(path string) ([]string, bool) {
return lines, true
}

if !strings.HasSuffix(path, ".go") {
return nil, false
}

// bearer:disable go_gosec_filesystem_filereadtaint
b, err := os.ReadFile(path)
if err != nil {
return nil, false
Expand Down

0 comments on commit d0540ed

Please sign in to comment.