Preparing report...

Report for github.com/NickTaporuk/gigamock

A    Great!    Found 33 issues across 36 files

Tweet

gofmt91%

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


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!


gocyclo100%

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.

No problems detected. Good job!


golint11%

Golint is a linter for Go source code.

    • gigamock/src/logger/init.go
    • Line 10: warning: comment on exported const LoggerKey should be of the form "LoggerKey ..." (golint)
    • Line 12: warning: comment on exported const LoggerValue should be of the form "LoggerValue ..." (golint)
    • Line 22: warning: exported function NewLocalLogger should have comment or be unexported (golint)
    • gigamock/src/fileWalkers/common.go
    • Line 1: warning: don't use MixedCaps in package name; fileWalkers should be filewalkers (golint)
    • Line 11: warning: comment on exported function PrepareInMemoryStoreKey should be of the form "PrepareInMemoryStoreKey ..." (golint)
    • gigamock/src/scenarioType/httpProvider.go
    • Line 1: warning: don't use MixedCaps in package name; scenarioType should be scenariotype (golint)
    • Line 12: warning: comment on exported type HTTPTypeProvider should be of the form "HTTPTypeProvider ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported method HTTPTypeProvider.Validate should be of the form "Validate ..." (golint)
    • Line 38: warning: comment on exported function NewHTTPTypeProvider should be of the form "NewHTTPTypeProvider ..." (golint)
    • Line 43: warning: exported method HTTPTypeProvider.Unmarshal should have comment or be unexported (golint)
    • Line 52: warning: comment on exported method HTTPTypeProvider.Retrieve should be of the form "Retrieve ..." (golint)
    • gigamock/src/app/app.go
    • Line 24: warning: exported type App should have comment or be unexported (golint)
    • Line 27: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 31: warning: exported method App.Stop should have comment or be unexported (golint)
    • Line 35: warning: comment on exported method App.Run should be of the form "Run ..." (golint)
    • gigamock/src/webhookType/http.go
    • Line 1: warning: don't use MixedCaps in package name; webhookType should be webhooktype (golint)
    • Line 14: warning: comment on exported type HTTPProvider should be of the form "HTTPProvider ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported function NewHTTPProvider should be of the form "NewHTTPProvider ..." (golint)
    • Line 35: warning: comment on exported method HTTPProvider.Unmarshal should be of the form "Unmarshal ..." (golint)
    • Line 46: warning: comment on exported method HTTPProvider.Send should be of the form "Send ..." (golint)
    • Line 80: warning: comment on exported method HTTPProvider.Validate should be of the form "Validate ..." (golint)
    • gigamock/src/scenarios/http.go
    • Line 9: warning: comment on exported type GigaMockHTTPScenario should be of the form "GigaMockHTTPScenario ..." (with optional leading article) (golint)
    • Line 14: warning: comment on exported type HTTPScenario should be of the form "HTTPScenario ..." (with optional leading article) (golint)
    • Line 21: warning: exported method HTTPScenario.Validate should have comment or be unexported (golint)
    • Line 29: warning: comment on exported type HTTPScenarios should be of the form "HTTPScenarios ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported type HTTPScenarioRequest should be of the form "HTTPScenarioRequest ..." (with optional leading article) (golint)
    • Line 40: warning: comment on exported type HTTPScenarioResponse should be of the form "HTTPScenarioResponse ..." (with optional leading article) (golint)
    • Line 48: warning: exported method HTTPScenarioResponse.Validate should have comment or be unexported (golint)
    • gigamock/src/webhook/webhook.go
    • Line 9: warning: exported type WebHooker should have comment or be unexported (golint)
    • Line 17: warning: comment on exported type WebHook should be of the form "WebHook ..." (with optional leading article) (golint)
    • Line 25: warning: exported method WebHook.Validate should have comment or be unexported (golint)
    • gigamock/src/fileWalkers/walker.go
    • Line 1: warning: don't use MixedCaps in package name; fileWalkers should be filewalkers (golint)
    • Line 23: warning: exported type DirWalk should have comment or be unexported (golint)
    • Line 28: warning: comment on exported method DirWalk.SetRootDirPath should be of the form "SetRootDirPath ..." (golint)
    • Line 33: warning: exported function NewDirWalk should have comment or be unexported (golint)
    • Line 37: warning: exported type IndexedData should have comment or be unexported (golint)
    • Line 42: warning: exported type ListIndexedData should have comment or be unexported (golint)
    • Line 44: warning: exported method DirWalk.Walk should have comment or be unexported (golint)
    • gigamock/src/fileProvider/jsonProvider.go
    • Line 1: warning: don't use MixedCaps in package name; fileProvider should be fileprovider (golint)
    • Line 12: warning: comment on exported type JSONProvider should be of the form "JSONProvider ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported function NewJSONProvider should be of the form "NewJSONProvider ..." (golint)
    • Line 22: warning: comment on exported method JSONProvider.Validate should be of the form "Validate ..." (golint)
    • Line 27: warning: comment on exported method JSONProvider.Unmarshal should be of the form "Unmarshal ..." (golint)
    • gigamock/src/webhookType/provider.go
    • Line 1: warning: don't use MixedCaps in package name; webhookType should be webhooktype (golint)
    • Line 7: warning: comment on exported type TypeProvider should be of the form "TypeProvider ..." (with optional leading article) (golint)
    • gigamock/src/handlers/inMemory/create.go
    • Line 1: warning: don't use MixedCaps in package name; inMemory should be inmemory (golint)
    • Line 21: warning: comment on exported type AddRecordResponse should be of the form "AddRecordResponse ..." (with optional leading article) (golint)
    • gigamock/src/fileProvider/yamlProvider.go
    • Line 1: warning: don't use MixedCaps in package name; fileProvider should be fileprovider (golint)
    • Line 12: warning: comment on exported type YAMLProvider should be of the form "YAMLProvider ..." (with optional leading article) (golint)
    • Line 17: warning: exported function NewYAMLProvider should have comment or be unexported (golint)
    • Line 21: warning: exported method YAMLProvider.Validate should have comment or be unexported (golint)
    • Line 25: warning: comment on exported method YAMLProvider.Unmarshal should be of the form "Unmarshal ..." (golint)
    • gigamock/src/fileType/fileType.go
    • Line 1: warning: don't use MixedCaps in package name; fileType should be filetype (golint)
    • Line 9: warning: comment on exported const FileExtensionYAML should be of the form "FileExtensionYAML ..." (golint)
    • Line 11: warning: comment on exported const FileExtensionYML should be of the form "FileExtensionYML ..." (golint)
    • Line 13: warning: comment on exported const FileExtensionJSON should be of the form "FileExtensionJSON ..." (golint)
    • Line 17: warning: comment on exported function FileExtensionDetection should be of the form "FileExtensionDetection ..." (golint)
    • gigamock/src/scenarioType/provider.go
    • Line 1: warning: don't use MixedCaps in package name; scenarioType should be scenariotype (golint)
    • Line 7: warning: comment on exported type TypeProvider should be of the form "TypeProvider ..." (with optional leading article) (golint)
    • gigamock/src/scenarioType/graphqlProvider.go
    • Line 1: warning: don't use MixedCaps in package name; scenarioType should be scenariotype (golint)
    • Line 11: warning: comment on exported type GraphQLTypeProvider should be of the form "GraphQLTypeProvider ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported function NewGraphQLTypeProvider should be of the form "NewGraphQLTypeProvider ..." (golint)
    • Line 23: warning: exported method GraphQLTypeProvider.Unmarshal should have comment or be unexported (golint)
    • Line 32: warning: exported method GraphQLTypeProvider.Retrieve should have comment or be unexported (golint)
    • gigamock/src/scenarioType/kafkaProvider.go
    • Line 1: warning: don't use MixedCaps in package name; scenarioType should be scenariotype (golint)
    • Line 21: warning: exported type KafkaProvider should have comment or be unexported (golint)
    • Line 27: warning: exported function NewKafkaProvider should have comment or be unexported (golint)
    • Line 31: warning: exported method KafkaProvider.Unmarshal should have comment or be unexported (golint)
    • Line 312: warning: exported method KafkaProvider.Validate should have comment or be unexported (golint)
    • gigamock/src/scenarios/kafka.go
    • Line 18: warning: exported method KafkaScenario.Validate should have comment or be unexported (golint)
    • Line 37: warning: comment on exported type KafkaScenarioProducerMessage should be of the form "KafkaScenarioProducerMessage ..." (with optional leading article) (golint)
    • Line 43: warning: exported method KafkaScenarioProducer.Validate should have comment or be unexported (golint)
    • Line 50: warning: exported type KafkaScenarioConsumer 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!