mirror of
https://github.com/logos-messaging/go-libp2p-rendezvous.git
synced 2026-01-02 04:43:11 +00:00
chore: disable golangci revive for now
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
This commit is contained in:
parent
e0c189e5e9
commit
9135bf5c15
8
.github/workflows/go.yml
vendored
8
.github/workflows/go.yml
vendored
@ -59,8 +59,8 @@ jobs:
|
||||
go mod tidy -v
|
||||
git --no-pager diff go.mod go.sum
|
||||
git --no-pager diff --quiet go.mod go.sum
|
||||
- name: Run tests with race, without goleak
|
||||
run: go test -race -covermode=atomic -coverpkg=all -coverprofile=coverage.txt -cover -v ./... -test.timeout=10m
|
||||
- name: Run tests with race
|
||||
run: go test -v -tags "libsqlite3" -race ./... -test.timeout=10m
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
@ -100,8 +100,8 @@ jobs:
|
||||
go mod tidy -v
|
||||
git --no-pager diff go.mod go.sum
|
||||
git --no-pager diff --quiet go.mod go.sum
|
||||
- name: Run tests with race, without goleak
|
||||
run: go test -race -covermode=atomic -coverpkg=all -coverprofile=coverage.txt -cover -v ./... -test.timeout=10m
|
||||
- name: Run tests with race
|
||||
run: go test -v -tags "libsqlite3" -race ./... -test.timeout=10m
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
run:
|
||||
deadline: 1m
|
||||
tests: true
|
||||
tests: false
|
||||
skip-files:
|
||||
- "test/.*"
|
||||
- "test/.*/.*"
|
||||
|
||||
linters-settings:
|
||||
golint:
|
||||
@ -14,16 +17,16 @@ linters-settings:
|
||||
locale: US
|
||||
|
||||
linters:
|
||||
disable-all: false
|
||||
disable-all: true
|
||||
enable:
|
||||
- goconst
|
||||
- misspell
|
||||
- misspell
|
||||
- errcheck
|
||||
- unused
|
||||
- staticcheck
|
||||
- unconvert
|
||||
- gofmt
|
||||
- goimports
|
||||
- revive
|
||||
# @TODO(gfanton): disable revive for now has it generate to many errors,
|
||||
# it should be enable in a dedicated PR
|
||||
# - revive
|
||||
- ineffassign
|
||||
|
||||
2
proto.go
2
proto.go
@ -27,7 +27,7 @@ type RendezvousError struct {
|
||||
}
|
||||
|
||||
func (e RendezvousError) Error() string {
|
||||
return fmt.Sprintf("Rendezvous error: %s (%s)", e.Text, pb.Message_ResponseStatus(e.Status).String())
|
||||
return fmt.Sprintf("Rendezvous error: %s (%s)", e.Text, e.Status.String())
|
||||
}
|
||||
|
||||
func NewRegisterMessage(ns string, pi peer.AddrInfo, ttl int) *pb.Message {
|
||||
|
||||
@ -7,11 +7,11 @@ import (
|
||||
"time"
|
||||
|
||||
ggio "github.com/gogo/protobuf/io"
|
||||
pb "github.com/libp2p/go-libp2p-rendezvous/pb"
|
||||
"github.com/libp2p/go-libp2p/core/host"
|
||||
inet "github.com/libp2p/go-libp2p/core/network"
|
||||
"github.com/libp2p/go-libp2p/core/peer"
|
||||
"github.com/libp2p/go-libp2p/core/protocol"
|
||||
pb "github.com/libp2p/go-libp2p-rendezvous/pb"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user