-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from beatlabs/upgrades
Upgrades
- Loading branch information
Showing
1,566 changed files
with
513,708 additions
and
105 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 |
---|---|---|
|
@@ -8,13 +8,13 @@ jobs: | |
name: Linting Golang Code | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.15 | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: './go.mod' | ||
|
||
- name: Download module dependencies | ||
env: | ||
|
@@ -25,10 +25,7 @@ jobs: | |
run: make fmt | ||
|
||
- name: Run golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
version: v1.33.0 | ||
args: --enable scopelint,bodyclose,gofmt,golint --exclude-use-default=false --modules-download-mode=vendor --build-tags integration | ||
uses: golangci/golangci-lint-action@v6 | ||
|
||
- name: Run go tests | ||
run: make test |
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 |
---|---|---|
|
@@ -13,6 +13,3 @@ | |
*.swp | ||
*.swo | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
vendor/ | ||
|
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,81 @@ | ||
run: | ||
timeout: 5m | ||
issues-exit-code: 1 | ||
tests: true | ||
|
||
#modules-download-mode: vendor | ||
|
||
# list of build tags, all linters use it. Default is empty list | ||
build-tags: | ||
- integration | ||
|
||
# output configuration options | ||
output: | ||
# print lines of code with issue, default is true | ||
print-issued-lines: true | ||
|
||
# print linter name in the end of issue text, default is true | ||
print-linter-name: true | ||
|
||
issues: | ||
exclude-dirs: | ||
- vendor | ||
max-same-issues: 10 | ||
uniq-by-line: false | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- gofmt | ||
- gosimple | ||
- unparam | ||
- goconst | ||
- prealloc | ||
- stylecheck | ||
- unconvert | ||
- unused | ||
- staticcheck | ||
- ineffassign | ||
- gosec | ||
- tparallel | ||
- whitespace | ||
- revive | ||
- godot | ||
- errorlint | ||
- gocritic | ||
- errname | ||
- govet | ||
- predeclared | ||
- nestif | ||
- exhaustive | ||
- tenv | ||
- gofumpt | ||
- forcetypeassert | ||
- nilerr | ||
- errcheck | ||
- bodyclose | ||
- goimports | ||
- durationcheck | ||
- errchkjson | ||
- sloglint | ||
- dupword | ||
- noctx | ||
- makezero | ||
- nilnil | ||
- reassign | ||
- spancheck | ||
- testifylint | ||
- wastedassign | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- goprintffuncname | ||
- tagalign | ||
- testableexamples | ||
- wastedassign | ||
- nonamedreturns | ||
- perfsprint | ||
- dogsled | ||
- protogetter | ||
- usestdlibvars | ||
- testableexamples | ||
fast: false |
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
Oops, something went wrong.