mirror of https://github.com/0xPolygon/go-ibft
parent
805919c413
commit
0acf0db7c9
@ -1,6 +1,9 @@ |
|||||||
.PHONY: lint |
.PHONY: lint build-dummy |
||||||
lint: |
lint: |
||||||
golangci-lint run -E whitespace -E wsl -E wastedassign -E unconvert -E tparallel -E thelper -E stylecheck -E prealloc \
|
golangci-lint run -E whitespace -E wsl -E wastedassign -E unconvert -E tparallel -E thelper -E stylecheck -E prealloc \
|
||||||
-E predeclared -E nlreturn -E misspell -E makezero -E lll -E importas -E ifshort -E gosec -E gofmt -E goconst \
|
-E predeclared -E nlreturn -E misspell -E makezero -E lll -E importas -E ifshort -E gosec -E gofmt -E goconst \
|
||||||
-E forcetypeassert -E dogsled -E dupl -E errname -E errorlint -E nolintlint --timeout 2m
|
-E forcetypeassert -E dogsled -E dupl -E errname -E errorlint -E nolintlint --timeout 2m
|
||||||
|
|
||||||
|
builds-dummy: |
||||||
|
cd build && go build -o ./ibft1
|
||||||
|
cd build && go build -o ./ibft2
|
@ -0,0 +1,15 @@ |
|||||||
|
package main |
||||||
|
|
||||||
|
import ( |
||||||
|
"fmt" |
||||||
|
"io" |
||||||
|
|
||||||
|
"github.com/0xPolygon/go-ibft/core" |
||||||
|
) |
||||||
|
|
||||||
|
func main() { |
||||||
|
b := core.NewIBFT(nil, nil, nil) |
||||||
|
|
||||||
|
// prevent golang compiler from removing the whole function
|
||||||
|
fmt.Sprint(io.Discard, b) |
||||||
|
} |
Loading…
Reference in new issue