Skip to content

Commit

Permalink
BitcoinFork
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohsen-T committed Mar 13, 2020
1 parent 4f487f2 commit 9a917ba
Show file tree
Hide file tree
Showing 90 changed files with 24,783 additions and 12 deletions.
43 changes: 33 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,38 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so
*.dylib

# Test binary, built with `go test -c`
# Folders
_obj
_test
__pycache__

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test
*.prof
.idea/
*.iml
.gx/
dist

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Development environment files
.ackrc
.tags*
*.sw?

# Dependency directories (remove the comment below to include it)
# vendor/
# macOS
.DS_Store
vendor/
52 changes: 52 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
run:
skip-dirs:
- vendor

issues:
max-per-linter: 99999
max-same: 99999
exclude:
- composite literal uses unkeyed fields

linters-settings:
errcheck:
check-type-assertions: false
check-blank: false
unparam:
algo: cha
check-exported: false
nakedret:
max-func-lines: 0
misspell:
locale: US
dupl:
threshold: 600
gocyclo:
min-complexity: 180
lll:
line-length: 750

linters:
enable:
- unconvert
- gofmt
- ineffassign
- staticcheck
- structcheck
- unused
- varcheck
- deadcode
- gosimple
- gocyclo
- lll
- goconst
- govet
- megacheck
disable:
- dupl
- nakedret
- unparam
- goimports
- errcheck
- golint
- prealloc
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: go
go:
- "1.11"
sudo: required
services:
- docker
env:
- "PATH=/home/travis/gopath/bin:$PATH"
before_install:
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- go get github.com/tcnksm/ghr
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.15.0
install:
- dep ensure
script:
- $GOPATH/bin/golangci-lint run --deadline 10m --new
- cd $TRAVIS_BUILD_DIR && chmod a+x test_compile.sh && ./test_compile.sh
- goveralls -coverprofile=coverage.out -service travis-ci
Loading

0 comments on commit 9a917ba

Please sign in to comment.