Fix travis and Other Linter Errors (#1356)

* fix travis and other linter errors

* remove megacheck
This commit is contained in:
Nishant Das 2019-01-21 13:35:34 +08:00 committed by GitHub
parent 247e8a5f8c
commit 7ff544fddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 11 deletions

View File

@ -12,7 +12,6 @@
"golint", "golint",
"gosec", "gosec",
"gotype", "gotype",
"megacheck",
"misspell", "misspell",
"structcheck", "structcheck",
"unparam", "unparam",

View File

@ -7,12 +7,11 @@ import (
"testing" "testing"
"time" "time"
"github.com/prysmaticlabs/prysm/beacon-chain/core/validators"
"github.com/prysmaticlabs/prysm/beacon-chain/db"
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"
b "github.com/prysmaticlabs/prysm/beacon-chain/core/blocks" b "github.com/prysmaticlabs/prysm/beacon-chain/core/blocks"
"github.com/prysmaticlabs/prysm/beacon-chain/core/state" "github.com/prysmaticlabs/prysm/beacon-chain/core/state"
"github.com/prysmaticlabs/prysm/beacon-chain/core/validators"
"github.com/prysmaticlabs/prysm/beacon-chain/db"
"github.com/prysmaticlabs/prysm/beacon-chain/internal" "github.com/prysmaticlabs/prysm/beacon-chain/internal"
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1" pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
bytesutil "github.com/prysmaticlabs/prysm/shared/bytes" bytesutil "github.com/prysmaticlabs/prysm/shared/bytes"

View File

@ -5,13 +5,12 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/prysmaticlabs/prysm/shared/trie"
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"
b "github.com/prysmaticlabs/prysm/beacon-chain/core/blocks" b "github.com/prysmaticlabs/prysm/beacon-chain/core/blocks"
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1" pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
"github.com/prysmaticlabs/prysm/shared/hashutil" "github.com/prysmaticlabs/prysm/shared/hashutil"
"github.com/prysmaticlabs/prysm/shared/params" "github.com/prysmaticlabs/prysm/shared/params"
"github.com/prysmaticlabs/prysm/shared/trie"
) )
// Generates a simulated beacon block to use // Generates a simulated beacon block to use

View File

@ -9,8 +9,6 @@ import (
"reflect" "reflect"
"time" "time"
"github.com/prysmaticlabs/prysm/shared/trie"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"
"github.com/prysmaticlabs/prysm/beacon-chain/blockchain" "github.com/prysmaticlabs/prysm/beacon-chain/blockchain"
@ -22,6 +20,7 @@ import (
"github.com/prysmaticlabs/prysm/shared/hashutil" "github.com/prysmaticlabs/prysm/shared/hashutil"
"github.com/prysmaticlabs/prysm/shared/params" "github.com/prysmaticlabs/prysm/shared/params"
"github.com/prysmaticlabs/prysm/shared/slices" "github.com/prysmaticlabs/prysm/shared/slices"
"github.com/prysmaticlabs/prysm/shared/trie"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -16,9 +16,8 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/prysmaticlabs/prysm/beacon-chain/core/state"
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"
"github.com/prysmaticlabs/prysm/beacon-chain/core/state"
"github.com/prysmaticlabs/prysm/beacon-chain/db" "github.com/prysmaticlabs/prysm/beacon-chain/db"
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1" pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
bytesutil "github.com/prysmaticlabs/prysm/shared/bytes" bytesutil "github.com/prysmaticlabs/prysm/shared/bytes"

View File

@ -56,7 +56,7 @@ var decodeTests = []decodeTest{
{input: "FFFFFFFFFFFFFFFF", ptr: new(uint64), value: uint64(18446744073709551615)}, {input: "FFFFFFFFFFFFFFFF", ptr: new(uint64), value: uint64(18446744073709551615)},
// bytes // bytes
{input: "00000000", ptr:new([]byte), value: []byte{}}, {input: "00000000", ptr: new([]byte), value: []byte{}},
{input: "0100000001", ptr: new([]byte), value: []byte{1}}, {input: "0100000001", ptr: new([]byte), value: []byte{1}},
{input: "06000000 010203040506", ptr: new([]byte), value: []byte{1, 2, 3, 4, 5, 6}}, {input: "06000000 010203040506", ptr: new([]byte), value: []byte{1, 2, 3, 4, 5, 6}},