forked from ava-labs/subnet-evm
-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit a59f55e
Showing
480 changed files
with
118,919 additions
and
0 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,9 @@ | ||
.ci | ||
.github | ||
.gitignore | ||
.golangci.yml | ||
.idea | ||
.vscode | ||
|
||
LICENSE | ||
*.md |
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,33 @@ | ||
name: Lint + Unit Tests | ||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: latest | ||
working-directory: . | ||
args: --timeout 3m | ||
test: | ||
name: Golang Unit Tests v${{ matrix.go }} (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
go: ["1.16"] | ||
os: [ubuntu-20.04] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- run: go mod download | ||
shell: bash | ||
- run: ./scripts/build.sh evm | ||
shell: bash | ||
- run: ./scripts/build_test.sh | ||
shell: 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,46 @@ | ||
./main | ||
|
||
*.log | ||
*~ | ||
.DS_Store | ||
|
||
awscpu | ||
|
||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
*.profile | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# ignore GoLand metafiles directory | ||
.idea/ | ||
|
||
*logs/ | ||
|
||
.vscode* | ||
|
||
*.pb* | ||
|
||
*cpu[0-9]* | ||
*mem[0-9]* | ||
*lock[0-9]* | ||
*.profile | ||
*.swp | ||
*.aux | ||
*.fdb* | ||
*.fls | ||
*.gz | ||
|
||
.coverage | ||
|
||
bin/ | ||
build/ |
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,48 @@ | ||
# This file configures github.com/golangci/golangci-lint. | ||
|
||
run: | ||
timeout: 3m | ||
tests: true | ||
# default is true. Enables skipping of directories: | ||
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ | ||
skip-dirs-use-default: true | ||
skip-files: | ||
- core/genesis_alloc.go | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- deadcode | ||
- goconst | ||
- goimports | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- unconvert | ||
- varcheck | ||
|
||
linters-settings: | ||
gofmt: | ||
simplify: true | ||
goconst: | ||
min-len: 3 # minimum length of string constant | ||
min-occurrences: 6 # minimum number of occurrences | ||
|
||
issues: | ||
exclude-rules: | ||
- path: crypto/blake2b/ | ||
linters: | ||
- deadcode | ||
- path: crypto/bn256/cloudflare | ||
linters: | ||
- deadcode | ||
- path: p2p/discv5/ | ||
linters: | ||
- deadcode | ||
- path: core/vm/instructions_test.go | ||
linters: | ||
- goconst | ||
- path: cmd/faucet/ | ||
linters: | ||
- deadcode |
Oops, something went wrong.