Preparing report...

Report for github.com/dapr/go-sdk

(v1.3.1)

A+    Excellent!    Found 26 issues across 64 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo96%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint62%

Golint is a linter for Go source code.

    • actor/runtime/actor_runtime.go
    • Line 27: warning: exported type ActorRunTime should have comment or be unexported (golint)
    • Line 65: warning: exported method ActorRunTime.GetJSONSerializedConfig should have comment or be unexported (golint)
    • Line 70: warning: exported method ActorRunTime.InvokeActorMethod should have comment or be unexported (golint)
    • Line 78: warning: exported method ActorRunTime.Deactivate should have comment or be unexported (golint)
    • Line 86: warning: exported method ActorRunTime.InvokeReminder should have comment or be unexported (golint)
    • Line 95: warning: exported method ActorRunTime.InvokeTimer should have comment or be unexported (golint)
    • actor/mock/mock_factory_impl.go
    • Line 22: warning: exported function ActorImplFactory should have comment or be unexported (golint)
    • Line 26: warning: exported type ActorImpl should have comment or be unexported (golint)
    • Line 30: warning: exported method ActorImpl.Type should have comment or be unexported (golint)
    • Line 34: warning: exported method ActorImpl.Invoke should have comment or be unexported (golint)
    • Line 38: warning: exported method ActorImpl.ReminderCall should have comment or be unexported (golint)
    • Line 41: warning: exported function NotReminderCalleeActorFactory should have comment or be unexported (golint)
    • Line 45: warning: exported type NotReminderCalleeActor should have comment or be unexported (golint)
    • Line 49: warning: exported method NotReminderCalleeActor.Type should have comment or be unexported (golint)
    • actor/state/state_async_provider.go
    • Line 26: warning: exported type DaprStateAsyncProvider should have comment or be unexported (golint)
    • Line 31: warning: exported method DaprStateAsyncProvider.Contains should have comment or be unexported (golint)
    • Line 43: warning: exported method DaprStateAsyncProvider.Load should have comment or be unexported (golint)
    • Line 61: warning: exported method DaprStateAsyncProvider.Apply should have comment or be unexported (golint)
    • Line 99: warning: comment on exported function NewDaprStateAsyncProvider should be of the form "NewDaprStateAsyncProvider ..." (golint)
    • actor/state/state_manager.go
    • Line 25: warning: exported type ActorStateManager should have comment or be unexported (golint)
    • Line 32: warning: exported method ActorStateManager.Add should have comment or be unexported (golint)
    • Line 62: warning: exported method ActorStateManager.Get should have comment or be unexported (golint)
    • Line 91: warning: exported method ActorStateManager.Set should have comment or be unexported (golint)
    • Line 110: warning: exported method ActorStateManager.Remove should have comment or be unexported (golint)
    • Line 139: warning: exported method ActorStateManager.Contains should have comment or be unexported (golint)
    • Line 153: warning: exported method ActorStateManager.Save should have comment or be unexported (golint)
    • Line 168: warning: exported method ActorStateManager.Flush should have comment or be unexported (golint)
    • Line 182: warning: exported function NewActorStateManager should have comment or be unexported (golint)
    • examples/actor/serving/main.go
    • Line 39: warning: exported type TestActor should have comment or be unexported (golint)
    • Line 44: warning: exported method TestActor.Type should have comment or be unexported (golint)
    • Line 48: warning: comment on exported method TestActor.StopTimer should be of the form "StopTimer ..." (golint)
    • Line 57: warning: exported method TestActor.StartTimer should have comment or be unexported (golint)
    • Line 69: warning: exported method TestActor.StartReminder should have comment or be unexported (golint)
    • Line 80: warning: exported method TestActor.StopReminder should have comment or be unexported (golint)
    • Line 88: warning: exported method TestActor.Invoke should have comment or be unexported (golint)
    • Line 93: warning: exported method TestActor.GetUser should have comment or be unexported (golint)
    • Line 98: warning: exported method TestActor.Get should have comment or be unexported (golint)
    • Line 102: warning: exported method TestActor.Post should have comment or be unexported (golint)
    • Line 107: warning: exported method TestActor.IncrementAndGet should have comment or be unexported (golint)
    • Line 126: warning: exported method TestActor.ReminderCall should have comment or be unexported (golint)
    • client/state.go
    • Line 469: warning: comment on exported method GRPCClient.DeleteBulkStateItems should be of the form "DeleteBulkStateItems ..." (golint)
    • actor/codec/impl/yaml.go
    • Line 32: warning: exported method YamlCodec.Marshal should have comment or be unexported (golint)
    • Line 36: warning: exported method YamlCodec.Unmarshal should have comment or be unexported (golint)
    • actor/state/state_change_metadata.go
    • Line 16: warning: exported type ChangeKind should have comment or be unexported (golint)
    • Line 19: warning: exported const None should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type ChangeMetadata should have comment or be unexported (golint)
    • Line 30: warning: exported function NewChangeMetadata should have comment or be unexported (golint)
    • actor/actor.go
    • Line 48: warning: exported type ReminderCallee should have comment or be unexported (golint)
    • Line 52: warning: exported type Factory should have comment or be unexported (golint)
    • Line 54: warning: exported type ServerImplBase should have comment or be unexported (golint)
    • Line 60: warning: exported method ServerImplBase.SetStateManager should have comment or be unexported (golint)
    • Line 69: warning: exported method ServerImplBase.ID should have comment or be unexported (golint)
    • Line 73: warning: exported method ServerImplBase.SetID should have comment or be unexported (golint)
    • Line 87: warning: exported type StateManager should have comment or be unexported (golint)
    • actor/codec/impl/json.go
    • Line 32: warning: exported method JSONCodec.Marshal should have comment or be unexported (golint)
    • Line 36: warning: exported method JSONCodec.Unmarshal should have comment or be unexported (golint)
    • examples/actor/api/actor.go
    • Line 18: warning: exported type ClientStub should have comment or be unexported (golint)
    • Line 30: warning: exported method ClientStub.Type should have comment or be unexported (golint)
    • Line 34: warning: exported method ClientStub.ID should have comment or be unexported (golint)
    • Line 38: warning: exported type User should have comment or be unexported (golint)
    • Line 43: warning: exported type TimerRequest should have comment or be unexported (golint)
    • Line 51: warning: exported type ReminderRequest should have comment or be unexported (golint)
    • service/common/service.go
    • Line 26: warning: exported const APITokenKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported type ServiceInvocationHandler should have comment or be unexported (golint)
    • Line 48: warning: exported type TopicEventHandler should have comment or be unexported (golint)
    • Line 49: warning: exported type BindingInvocationHandler should have comment or be unexported (golint)
    • actor/manager/container.go
    • Line 28: warning: exported type ActorContainer should have comment or be unexported (golint)
    • Line 63: warning: exported method DefaultActorContainer.GetActor should have comment or be unexported (golint)
    • actor/manager/manager.go
    • Line 33: warning: exported type ActorManager should have comment or be unexported (golint)
    • Line 53: warning: exported function NewDefaultActorManager should have comment or be unexported (golint)
    • client/actor.go
    • Line 31: warning: exported type InvokeActorRequest should have comment or be unexported (golint)
    • Line 38: warning: exported type InvokeActorResponse should have comment or be unexported (golint)
    • Line 113: warning: exported type RegisterActorReminderRequest should have comment or be unexported (golint)
    • Line 159: warning: exported type UnregisterActorReminderRequest should have comment or be unexported (golint)
    • Line 193: warning: exported type RegisterActorTimerRequest should have comment or be unexported (golint)
    • Line 242: warning: exported type UnregisterActorTimerRequest should have comment or be unexported (golint)
    • Line 389: warning: exported type GetActorStateRequest should have comment or be unexported (golint)
    • Line 395: warning: exported type GetActorStateResponse should have comment or be unexported (golint)
    • Line 399: warning: exported method GRPCClient.GetActorState should have comment or be unexported (golint)
    • Line 423: warning: exported type ActorStateOperation should have comment or be unexported (golint)
    • Line 429: warning: exported method GRPCClient.SaveStateTransactionally should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!