mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-04-09 02:13:35 +00:00
enable errcheck linter
This commit is contained in:
@@ -6,7 +6,7 @@ run:
|
||||
go: '1.24'
|
||||
|
||||
linters:
|
||||
disable: [dupl, errcheck]
|
||||
disable: [dupl]
|
||||
enable:
|
||||
# Default enabled linters
|
||||
- errcheck # Check for unchecked errors
|
||||
@@ -38,6 +38,12 @@ linters:
|
||||
errcheck:
|
||||
check-type-assertions: true
|
||||
check-blank: true
|
||||
exclude-functions:
|
||||
- fmt.Fprintf
|
||||
- fmt.Fprintln
|
||||
- fmt.Printf
|
||||
- fmt.Println
|
||||
- fmt.Errorf
|
||||
|
||||
revive:
|
||||
severity: warning
|
||||
|
||||
Reference in New Issue
Block a user