fix: linter

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>
This commit is contained in:
Manuel Vogel 2025-03-26 16:53:40 +01:00
parent 601fe94e96
commit 16eb2933f0
2 changed files with 5 additions and 1 deletions

View file

@ -88,7 +88,7 @@ linters:
- misspell
- nakedret
- dupl
- depguard
#- depguard TODO fix later
presets:
- bugs
@ -106,6 +106,8 @@ issues:
- dupl
- gosec
- unparam
- testifylint
- depguard
# Independently from option `exclude` we use default exclude patterns,
# it can be disabled by this option. To list all

View file

@ -34,6 +34,7 @@ func (*osFileSystem) Exists(path string) bool {
func (*osFileSystem) MkdirP(path string) error {
if _, err := os.Stat(path); os.IsNotExist(err) {
//nolint:gosec
return os.MkdirAll(path, os.ModePerm)
}
return nil
@ -45,5 +46,6 @@ func (*osFileSystem) Create(name string) (File, error) {
}
func (*osFileSystem) WriteFile(path string, content []byte) error {
//nolint:gosec
return os.WriteFile(path, content, os.ModePerm)
}