You've already forked prometheus-fail2ban-exporter
fix(golangci): be compliant with golangci-linter
All checks were successful
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 16s
Lint Markdown files / Run markdown linter (push) Successful in 3s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 1m15s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 51s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 2m25s
All checks were successful
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 16s
Lint Markdown files / Run markdown linter (push) Successful in 3s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 1m15s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 51s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 2m25s
This commit is contained in:
@ -37,6 +37,7 @@ func (c *Collector) collectFileContents() {
|
||||
}
|
||||
|
||||
fullPath := filepath.Join(c.folderPath, fileName)
|
||||
// #nosec G304
|
||||
content, err := os.ReadFile(fullPath)
|
||||
if err != nil {
|
||||
c.appendErrorForPath(fileName)
|
||||
|
Reference in New Issue
Block a user