Merge pull request #2177 from nspcc-dev/fix-lint

Replace golint with revive
This commit is contained in:
Roman Khimov 2021-09-15 17:59:04 +03:00 committed by GitHub
commit 56dd7b7364
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ jobs:
- run: - run:
name: go-lint name: go-lint
command: | command: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.40.0 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.1
make lint make lint
test_1_15: test_1_15:

View file

@ -29,7 +29,7 @@ linters:
enable: enable:
# mandatory linters # mandatory linters
- govet - govet
- golint - revive
# some default golangci-lint linters # some default golangci-lint linters
- deadcode - deadcode

View file

@ -96,7 +96,7 @@ var (
ErrPolicy = errors.New("not allowed by policy") ErrPolicy = errors.New("not allowed by policy")
// ErrInvalidBlockIndex is returned when trying to add block with index // ErrInvalidBlockIndex is returned when trying to add block with index
// other than expected height of the blockchain. // other than expected height of the blockchain.
ErrInvalidBlockIndex error = errors.New("invalid block index") ErrInvalidBlockIndex = errors.New("invalid block index")
// ErrHasConflicts is returned when trying to add some transaction which // ErrHasConflicts is returned when trying to add some transaction which
// conflicts with other transaction in the chain or pool according to // conflicts with other transaction in the chain or pool according to
// Conflicts attribute. // Conflicts attribute.

View file

@ -212,7 +212,7 @@ func (n *NEO) Initialize(ic *interop.Context) error {
} }
n.mint(ic, h, big.NewInt(NEOTotalSupply), false) n.mint(ic, h, big.NewInt(NEOTotalSupply), false)
var index uint32 = 0 var index uint32
value := big.NewInt(5 * GASFactor) value := big.NewInt(5 * GASFactor)
err = n.putGASRecord(ic.DAO, index, value) err = n.putGASRecord(ic.DAO, index, value)
if err != nil { if err != nil {