-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
glendc
committed
Oct 25, 2021
1 parent
08db112
commit 3177366
Showing
11 changed files
with
202 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
run: | ||
timeout: 2m | ||
issues-exit-code: 1 | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
# Enabled by default | ||
- deadcode | ||
# - errcheck | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- staticcheck | ||
- structcheck | ||
- typecheck | ||
- unused | ||
- varcheck | ||
|
||
# Disabled by default | ||
- asciicheck | ||
- bodyclose | ||
# - cyclop | ||
- depguard | ||
- dogsled | ||
- dupl | ||
- durationcheck | ||
- errorlint | ||
# - exhaustive | ||
# - exhaustivestruct | ||
- exportloopref | ||
- forbidigo | ||
- forcetypeassert | ||
# - funlen | ||
# - gci | ||
# - gochecknoglobals | ||
# - gochecknoinits | ||
# - gocognit | ||
- goconst | ||
# - gocritic | ||
# - gocyclo | ||
# - godot | ||
# - godox | ||
- goerr113 | ||
- gofmt | ||
# - gofumpt | ||
- goheader | ||
- goimports | ||
# - gomnd | ||
# - gomoddirectives | ||
- gomodguard | ||
- goprintffuncname | ||
# - gosec | ||
- ifshort | ||
# - importas | ||
# - lll | ||
- makezero | ||
- misspell | ||
- nakedret | ||
# - nestif | ||
- nilerr | ||
# - nlreturn | ||
- noctx | ||
- nolintlint | ||
# - paralleltest | ||
- prealloc | ||
- predeclared | ||
# - promlinter | ||
# - revive | ||
- rowserrcheck | ||
- sqlclosecheck | ||
# - stylecheck | ||
- tagliatelle | ||
# - testpackage | ||
# thelper | ||
- tparallel | ||
- unconvert | ||
# - unparam | ||
- wastedassign | ||
- whitespace | ||
- wrapcheck | ||
# - wsl | ||
|
||
linters-settings: | ||
govet: | ||
disable: | ||
- copylocks | ||
gosimple: | ||
go: "1.17" | ||
|
||
|
||
issues: | ||
max-same-issues: 0 | ||
max-issues-per-linter: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package bqwriter | ||
|
||
import "errors" | ||
|
||
// internal errors, as to not lock them in as part of the API, | ||
// given these are errors not meant to be caught by users but really indicating a bug | ||
var ( | ||
// invalidParamErr is returned in case we exit a function early with an error, | ||
// due to an invalid parameter passed in by the callee. | ||
invalidParamErr = errors.New("invalid function parameter") | ||
|
||
// notSupportedErr is returned in case a feature is used that is not (yet) supported. | ||
notSupportedErr = errors.New("not supported") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package bqwriter | ||
|
||
import "errors" | ||
|
||
// testStaticErr is an error used for testing purposes only | ||
var testStaticErr = errors.New("static test error") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.