Skip to content

Commit a59f55e

Browse files
first commit
0 parents  commit a59f55e

File tree

480 files changed

+118919
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

480 files changed

+118919
-0
lines changed

.dockerignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.ci
2+
.github
3+
.gitignore
4+
.golangci.yml
5+
.idea
6+
.vscode
7+
8+
LICENSE
9+
*.md
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lint + Unit Tests
2+
on: [push]
3+
4+
jobs:
5+
lint:
6+
name: Lint
7+
runs-on: ubuntu-18.04
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: golangci-lint
11+
uses: golangci/golangci-lint-action@v2
12+
with:
13+
version: latest
14+
working-directory: .
15+
args: --timeout 3m
16+
test:
17+
name: Golang Unit Tests v${{ matrix.go }} (${{ matrix.os }})
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
matrix:
21+
go: ["1.16"]
22+
os: [ubuntu-20.04]
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-go@v1
26+
with:
27+
go-version: ${{ matrix.go }}
28+
- run: go mod download
29+
shell: bash
30+
- run: ./scripts/build.sh evm
31+
shell: bash
32+
- run: ./scripts/build_test.sh
33+
shell: bash

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
./main
2+
3+
*.log
4+
*~
5+
.DS_Store
6+
7+
awscpu
8+
9+
# Binaries for programs and plugins
10+
*.exe
11+
*.exe~
12+
*.dll
13+
*.so
14+
*.dylib
15+
*.profile
16+
17+
# Test binary, build with `go test -c`
18+
*.test
19+
20+
# Output of the go coverage tool, specifically when used with LiteIDE
21+
*.out
22+
23+
# ignore GoLand metafiles directory
24+
.idea/
25+
26+
*logs/
27+
28+
.vscode*
29+
30+
*.pb*
31+
32+
*cpu[0-9]*
33+
*mem[0-9]*
34+
*lock[0-9]*
35+
*.profile
36+
*.swp
37+
*.aux
38+
*.fdb*
39+
*.fls
40+
*.gz
41+
*.pdf
42+
43+
.coverage
44+
45+
bin/
46+
build/

.golangci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This file configures github.com/golangci/golangci-lint.
2+
3+
run:
4+
timeout: 3m
5+
tests: true
6+
# default is true. Enables skipping of directories:
7+
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
8+
skip-dirs-use-default: true
9+
skip-files:
10+
- core/genesis_alloc.go
11+
12+
linters:
13+
disable-all: true
14+
enable:
15+
- deadcode
16+
- goconst
17+
- goimports
18+
- gosimple
19+
- govet
20+
- ineffassign
21+
- misspell
22+
- unconvert
23+
- varcheck
24+
25+
linters-settings:
26+
gofmt:
27+
simplify: true
28+
goconst:
29+
min-len: 3 # minimum length of string constant
30+
min-occurrences: 6 # minimum number of occurrences
31+
32+
issues:
33+
exclude-rules:
34+
- path: crypto/blake2b/
35+
linters:
36+
- deadcode
37+
- path: crypto/bn256/cloudflare
38+
linters:
39+
- deadcode
40+
- path: p2p/discv5/
41+
linters:
42+
- deadcode
43+
- path: core/vm/instructions_test.go
44+
linters:
45+
- goconst
46+
- path: cmd/faucet/
47+
linters:
48+
- deadcode

0 commit comments

Comments
 (0)