Skip to content

Commit

Permalink
update linter settings, make it less restrictive
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsannm committed Jul 14, 2022
1 parent d5ed3c8 commit 936a9fd
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,25 @@ linters:
- wrapcheck
- varnamelen
- ireturn
fast: true
linters-settings:
decorder:
# Required order of `type`, `const`, `var` and `func` declarations inside a file.
# Default: types before constants before variables before functions.
dec-order:
- type
- const
- var
- func
# If true, order of declarations is not checked at all.
# Default: true (disabled)
disable-dec-order-check: false
# If true, `init` func can be anywhere in file (does not have to be declared before all other functions).
# Default: true (disabled)
disable-init-func-first-check: false
# If true, multiple global `type`, `const` and `var` declarations are allowed.
# Default: true (disabled)
disable-dec-num-check: false
# decorder:
# # Required order of `type`, `const`, `var` and `func` declarations inside a file.
# # Default: types before constants before variables before functions.
# dec-order:
# - type
# - const
# - var
# - func
# # If true, order of declarations is not checked at all.
# # Default: true (disabled)
# disable-dec-order-check: false
# # If true, `init` func can be anywhere in file (does not have to be declared before all other functions).
# # Default: true (disabled)
# disable-init-func-first-check: false
# # If true, multiple global `type`, `const` and `var` declarations are allowed.
# # Default: true (disabled)
# disable-dec-num-check: false
errcheck:
# Report about not checking of errors in type assertions: `a := b.(MyStruct)`.
# Such cases aren't reported by default.
Expand Down

0 comments on commit 936a9fd

Please sign in to comment.