ci gometalinter, also add linter failing function to test
This commit is contained in:
parent
e149d27f1c
commit
566563f666
|
@ -32,6 +32,7 @@ jobs:
|
||||||
command: |
|
command: |
|
||||||
export PATH="$GOBIN:$PATH"
|
export PATH="$GOBIN:$PATH"
|
||||||
go get -u github.com/tendermint/lint/golint
|
go get -u github.com/tendermint/lint/golint
|
||||||
|
go get -u github.com/alecthomas/gometalinter
|
||||||
- run:
|
- run:
|
||||||
name: binaries
|
name: binaries
|
||||||
command: |
|
command: |
|
||||||
|
@ -65,9 +66,7 @@ jobs:
|
||||||
name: Lint source
|
name: Lint source
|
||||||
command: |
|
command: |
|
||||||
export PATH="$GOBIN:$PATH"
|
export PATH="$GOBIN:$PATH"
|
||||||
for pkg in $(go list github.com/cosmos/cosmos-sdk/... | grep -v /vendor/); do
|
gometalinter --disable-all --enable='golint' --vendor ./...
|
||||||
test -z "$(golint $pkg | tee /dev/stderr)"
|
|
||||||
done
|
|
||||||
|
|
||||||
test_cover:
|
test_cover:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
|
|
|
@ -48,6 +48,9 @@ func NewEndBlocker(k Keeper) sdk.EndBlocker {
|
||||||
|
|
||||||
//_____________________________________________________________________
|
//_____________________________________________________________________
|
||||||
|
|
||||||
|
func Bloop() {
|
||||||
|
}
|
||||||
|
|
||||||
// InitGenesis - store genesis parameters
|
// InitGenesis - store genesis parameters
|
||||||
func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState) {
|
func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState) {
|
||||||
k.setPool(ctx, data.Pool)
|
k.setPool(ctx, data.Pool)
|
||||||
|
|
Loading…
Reference in New Issue