-
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 #118 from vegaprotocol/chore/shotgun-cleanup
Basic (shotgun) cleanup
- Loading branch information
Showing
191 changed files
with
762 additions
and
3,022 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,29 @@ | ||
--- | ||
|
||
name: Go linters | ||
"on": | ||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- main | ||
pull_request: | ||
permissions: | ||
contents: read | ||
# Optional: allow read access to pull request. Use with `only-new-issues` option. | ||
# pull-requests: read | ||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21.5' | ||
- uses: actions/checkout@v4 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3.7.0 | ||
with: | ||
version: v1.55.2 | ||
args: --config .golangci.toml |
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,42 @@ | ||
[run] | ||
allow-parallel-runners = true | ||
print-linter-name = true | ||
timeout = '15m0s' | ||
|
||
[issues] | ||
max-issues-per-linter = 0 | ||
max-same-issues = 0 | ||
|
||
[linters] | ||
disable-all = true | ||
enable = [ | ||
"exhaustive", | ||
"gofumpt", | ||
"govet", | ||
"gci", | ||
"ineffassign", | ||
"staticcheck", | ||
"unconvert", | ||
"unparam", | ||
"unused", | ||
"wastedassign", | ||
"whitespace", | ||
] | ||
|
||
[linters-settings.gci] | ||
custom-order = true | ||
sections = [ | ||
"standard", # Standard section: captures all standard packages. | ||
"prefix(github.com/vegaprotocol/devopstools)", # Custom section: groups all imports with the specified Prefix. | ||
"prefix(code.vegaprotocol.io/vega)", # Custom section: groups all imports with the specified Prefix. | ||
"default", # Default section: contains all imports that could not be matched to another section type. | ||
"blank", # Blank section: contains all blank imports. This section is not present unless explicitly enabled. | ||
"dot", | ||
] | ||
|
||
# protoc doesn't want us copying protobuf messages because they can have some internal state | ||
# that shouldn't be copied; but we do it a lot. see below for details | ||
# https://stackoverflow.com/questions/64183794/why-do-the-go-generated-protobuf-files-contain-mutex-locks | ||
[[issues.exclude-rules]] | ||
linters = ["govet"] | ||
text = "impl.MessageState contains sync.Mutex" |
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
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.