chore: enable more linter (#1557)

This commit is contained in:
Jan-Otto Kröpke
2024-08-10 22:05:33 +02:00
committed by GitHub
parent 27a3553dac
commit 9b02e4a0ea
87 changed files with 337 additions and 494 deletions

View File

@@ -26,7 +26,7 @@ const Name = "process"
type Config struct {
ProcessInclude string `yaml:"process_include"`
ProcessExclude string `yaml:"process_exclude"`
EnableWorkerProcess bool `yaml:"enable_iis_worker_process"`
EnableWorkerProcess bool `yaml:"enable_iis_worker_process"` //nolint:tagliatelle
EnableReportOwner bool `yaml:"enable_report_owner"`
}
@@ -488,7 +488,7 @@ func (c *Collector) getProcessOwner(pid int) (string, error) {
}
if err != nil {
return "", fmt.Errorf("OpenProcess: %T %w", err, err)
return "", fmt.Errorf("OpenProcess: %w", err)
}
defer windows.Close(p)