Run tests on PR (#57)
* run tests on PR * fix tests+lint * update linter config
This commit is contained in:
@@ -149,16 +149,13 @@ linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
## enabled by default
|
||||
- deadcode # Finds unused code
|
||||
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
|
||||
- gosimple # Linter for Go source code that specializes in simplifying a code
|
||||
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
|
||||
- ineffassign # Detects when assignments to existing variables are not used
|
||||
- staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks
|
||||
- structcheck # Finds unused struct fields
|
||||
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
|
||||
- unused # Checks Go code for unused constants, variables, functions and types
|
||||
- varcheck # Finds unused global variables and constants
|
||||
## disabled by default
|
||||
# - asasalint # Check for pass []any as any in variadic func(...any)
|
||||
- asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers
|
||||
|
||||
Reference in New Issue
Block a user