-
Notifications
You must be signed in to change notification settings - Fork 28
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 #113 from White-Whale-Defi-Platform/faddat/alliancev2
alliance
- Loading branch information
Showing
14 changed files
with
357 additions
and
122 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,25 @@ | ||
name: Verify Statesync | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
verify_statesync: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up shell | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y shellcheck | ||
- name: Run verify.sh script | ||
run: | | ||
chmod +x scripts/statesync.bash | ||
timeout 5m bash scripts/statesync.bash || true | ||
- name: Check script with ShellCheck | ||
run: | | ||
shellcheck scripts/statesync.bash |
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,82 @@ | ||
run: | ||
tests: true | ||
# timeout for analysis, e.g. 30s, 5m, default is 1m | ||
timeout: 5m | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- depguard | ||
- dogsled | ||
- errcheck | ||
- exportloopref | ||
- goconst | ||
- gocritic | ||
- gofumpt | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- nolintlint | ||
- revive | ||
- staticcheck | ||
- stylecheck | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
|
||
# TODO: fix the sdkerrors.Wrap deprecation warning and re-enable staticcheck | ||
|
||
issues: | ||
exclude-rules: | ||
- text: "Error return value of `flagSet.Set` is not checked" | ||
linters: | ||
- errcheck | ||
- text: "SA1019: sdkerrors.Wrapf is deprecated: functionality of this package has been moved to it's own module" | ||
linters: | ||
- staticcheck | ||
- text: "sdkerrors.Error is deprecated: the type has been moved to cosmossdk.io/errors module" | ||
linters: | ||
- staticcheck | ||
- text: "sdkerrors.Wrap is deprecated: functionality of this package has been moved to it's own module" | ||
linters: | ||
- staticcheck | ||
- text: "Use of weak random number generator" | ||
linters: | ||
- gosec | ||
- text: "comment on exported var" | ||
linters: | ||
- golint | ||
- text: "don't use an underscore in package name" | ||
linters: | ||
- golint | ||
- text: "ST1003:" | ||
linters: | ||
- stylecheck | ||
# FIXME: Disabled until golangci-lint updates stylecheck with this fix: | ||
# https://github.com/dominikh/go-tools/issues/389 | ||
- text: "ST1016:" | ||
linters: | ||
- stylecheck | ||
- path: "migrations" | ||
text: "SA1019:" | ||
linters: | ||
- staticcheck | ||
|
||
max-issues-per-linter: 10000 | ||
max-same-issues: 10000 | ||
|
||
linters-settings: | ||
dogsled: | ||
max-blank-identifiers: 3 | ||
maligned: | ||
# print struct with more effective memory layout or not, false by default | ||
suggest-new: true | ||
nolintlint: | ||
allow-unused: false | ||
allow-leading-space: true | ||
require-explanation: false | ||
require-specific: 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
Oops, something went wrong.