efritz/scarf

View on GitHub

Showing 54 of 54 total issues

Method LoggingMiddleware.logRPC has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    ctx context.Context,
    fullMethod string,
    isClientStream bool,
    isServerStream bool,
    f func() error,
Severity: Minor
Found in middleware/logging.go - About 35 mins to fix

    exported method Initializer.Init should have comment or be unexported
    Open

    func (i *Initializer) Init(config nacelle.Config) error {
    Severity: Minor
    Found in logging/init.go by golint

    exported var DefaultExtractors should have comment or be unexported
    Open

    var DefaultExtractors = []logging.LogFieldExtractor{
    Severity: Minor
    Found in logging.go by golint

    exported function WithRecoverStackBufferSize should have comment or be unexported
    Open

    func WithRecoverStackBufferSize(stackBufferSize int) RecoverConfigFunc {
    Severity: Minor
    Found in middleware/recover_options.go by golint

    exported function NewServer should have comment or be unexported
    Open

    func NewServer(endpointSet EndpointSet) nacelle.Process {
    Severity: Minor
    Found in server.go by golint

    exported type LoggingMiddleware should have comment or be unexported
    Open

    type LoggingMiddleware struct {
    Severity: Minor
    Found in middleware/logging.go by golint

    exported method RequestIDMiddleware.Init should have comment or be unexported
    Open

    func (m *RequestIDMiddleware) Init() error {
    Severity: Minor
    Found in middleware/request_id.go by golint

    exported function NewDecorator should have comment or be unexported
    Open

    func NewDecorator(extractors ...LogFieldExtractor) *Decorator {
    Severity: Minor
    Found in logging/decorator.go by golint

    exported type RequestIDMiddleware should have comment or be unexported
    Open

        RequestIDMiddleware struct {
    Severity: Minor
    Found in middleware/request_id.go by golint

    exported type RequestIDGenerator should have comment or be unexported
    Open

        RequestIDGenerator func() (string, error)
    Severity: Minor
    Found in middleware/request_id.go by golint

    exported function WithRequestIDErrorFactory should have comment or be unexported
    Open

    func WithRequestIDErrorFactory(factory ErrorFactory) RequestIDConfigFunc {
    Severity: Minor
    Found in middleware/request_id_options.go by golint

    2: cannot find package "github.com/efritz/nacelle" in any of:
    Open

        "github.com/efritz/nacelle"
    Severity: Minor
    Found in boot.go by govet

    exported type LoggingConfigFunc should have comment or be unexported
    Open

    type LoggingConfigFunc func(m *LoggingMiddleware)
    Severity: Minor
    Found in middleware/logging_options.go by golint

    exported type RecoverMiddleware should have comment or be unexported
    Open

    type RecoverMiddleware struct {
    Severity: Minor
    Found in middleware/recover.go by golint

    exported method RecoverMiddleware.ApplyUnary should have comment or be unexported
    Open

    func (m *RecoverMiddleware) ApplyUnary(f grpc.UnaryHandler, info *grpc.UnaryServerInfo) (grpc.UnaryHandler, error) {
    Severity: Minor
    Found in middleware/recover.go by golint

    exported function WithRecoverLogAllGoroutines should have comment or be unexported
    Open

    func WithRecoverLogAllGoroutines(logAllGoroutines bool) RecoverConfigFunc {
    Severity: Minor
    Found in middleware/recover_options.go by golint

    exported method RequestIDMiddleware.ApplyUnary should have comment or be unexported
    Open

    func (m *RequestIDMiddleware) ApplyUnary(f grpc.UnaryHandler, info *grpc.UnaryServerInfo) (grpc.UnaryHandler, error) {
    Severity: Minor
    Found in middleware/request_id.go by golint

    exported function WrapServerStream should have comment or be unexported
    Open

    func WrapServerStream(ss grpc.ServerStream, key, value interface{}) grpc.ServerStream {
    Severity: Minor
    Found in middleware/wrap.go by golint

    exported type EndpointSet should have comment or be unexported
    Open

    type EndpointSet interface {
    Severity: Minor
    Found in endpoints.go by golint

    exported method LoggingMiddleware.ApplyUnary should have comment or be unexported
    Open

    func (m *LoggingMiddleware) ApplyUnary(f grpc.UnaryHandler, info *grpc.UnaryServerInfo) (grpc.UnaryHandler, error) {
    Severity: Minor
    Found in middleware/logging.go by golint
    Severity
    Category
    Status
    Source
    Language