mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-07-19 17:35:03 +00:00
fix: linter
Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>
This commit is contained in:
parent
601fe94e96
commit
16eb2933f0
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue