Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
spring/scripts/orm_alters.go
- Line 12: warning: exported function ORMAlters should have comment or be unexported (golint)
- Line 23: warning: exported type ORMAltersScript should have comment or be unexported (golint)
- Line 26: warning: exported method ORMAltersScript.Active should have comment or be unexported (golint)
- Line 31: warning: exported method ORMAltersScript.Unique should have comment or be unexported (golint)
- Line 35: warning: exported method ORMAltersScript.Description should have comment or be unexported (golint)
- Line 39: warning: exported method ORMAltersScript.Run should have comment or be unexported (golint)
-
spring/log/google/handler.go
- Line 12: warning: exported var Default should have comment or be unexported (golint)
- Line 14: warning: exported type Handler should have comment or be unexported (golint)
- Line 19: warning: exported function New should have comment or be unexported (golint)
- Line 25: warning: exported method Handler.HandleLog should have comment or be unexported (golint)
-
spring/config.go
- Line 17: warning: exported type Config should have comment or be unexported (golint)
- Line 21: warning: exported function ServiceProviderConfigDirectory should have comment or be unexported (golint)
- Line 89: warning: exported method Config.GetFolderPath should have comment or be unexported (golint)
-
spring/log.go
- Line 11: warning: exported type LogRequestFieldProvider should have comment or be unexported (golint)
- Line 12: warning: exported type LogFieldProvider should have comment or be unexported (golint)
- Line 14: warning: exported type RequestLog should have comment or be unexported (golint)
- Line 57: warning: exported method RequestLog.Log should have comment or be unexported (golint)
-
spring/orm_config.go
- Line 9: warning: exported type ORMRegistryInitFunc should have comment or be unexported (golint)
- Line 11: warning: exported function ServiceDefinitionOrmRegistry should have comment or be unexported (golint)
-
spring/container.go
- Line 12: warning: exported type ServiceDefinition should have comment or be unexported (golint)
- Line 21: warning: exported function HasService should have comment or be unexported (golint)
- Line 26: warning: exported function GetServiceSafe should have comment or be unexported (golint)
- Line 30: warning: exported function GetServiceOptional should have comment or be unexported (golint)
- Line 34: warning: exported function GetServiceRequired should have comment or be unexported (golint)
- Line 38: warning: exported function GetServiceForRequestSafe should have comment or be unexported (golint)
- Line 42: warning: exported function GetServiceForRequestOptional should have comment or be unexported (golint)
- Line 46: warning: exported function GetServiceForRequestRequired should have comment or be unexported (golint)
-
spring/flags.go
- Line 7: warning: exported type FlagsRegistry should have comment or be unexported (golint)
- Line 11: warning: exported type Flags should have comment or be unexported (golint)
- Line 15: warning: exported method FlagsRegistry.Bool should have comment or be unexported (golint)
- Line 23: warning: exported method Flags.Bool should have comment or be unexported (golint)
-
spring/gin.go
- Line 26: warning: exported type GinInitHandler should have comment or be unexported (golint)
- Line 28: warning: exported function GinFromContext should have comment or be unexported (golint)
- Line 51: warning: exported function InitGin should have comment or be unexported (golint)
-
spring/registry.go
- Line 14: warning: exported type Registry should have comment or be unexported (golint)
- Line 20: warning: exported type Spring should have comment or be unexported (golint)
- Line 28: warning: exported function New should have comment or be unexported (golint)
- Line 39: warning: exported method Registry.Build should have comment or be unexported (golint)
- Line 55: warning: exported method Registry.RegisterDIService should have comment or be unexported (golint)
-
spring/app_definition.go
- Line 5: warning: exported const ModeLocal should have comment or be unexported (golint)
- Line 6: warning: exported const ModeTest should have comment or be unexported (golint)
- Line 7: warning: exported const ModeProd should have comment or be unexported (golint)
- Line 9: warning: exported type AppDefinition should have comment or be unexported (golint)
- Line 16: warning: exported method AppDefinition.Name should have comment or be unexported (golint)
- Line 20: warning: exported method AppDefinition.Mode should have comment or be unexported (golint)
- Line 24: warning: exported method AppDefinition.Flags should have comment or be unexported (golint)
- Line 28: warning: exported method AppDefinition.IsInLocalMode should have comment or be unexported (golint)
- Line 32: warning: exported method AppDefinition.IsInTestMode should have comment or be unexported (golint)
- Line 36: warning: exported method AppDefinition.IsInProdMode should have comment or be unexported (golint)
- Line 39: warning: exported method AppDefinition.IsInMode should have comment or be unexported (golint)
-
spring/dic.go
- Line 10: warning: exported type DICInterface should have comment or be unexported (golint)
- Line 25: warning: exported function DIC should have comment or be unexported (golint)
-
spring/orm_engine.go
- Line 8: warning: exported function ServiceDefinitionOrmEngine should have comment or be unexported (golint)
- Line 12: warning: exported function ServiceDefinitionOrmEngineForContext should have comment or be unexported (golint)
-
spring/script.go
- Line 14: warning: exported type Script should have comment or be unexported (golint)
- Line 20: warning: exported type Exit should have comment or be unexported (golint)
- Line 42: warning: exported type ScriptInterval should have comment or be unexported (golint)
- Line 46: warning: exported type ScriptIntervalOptional should have comment or be unexported (golint)
- Line 50: warning: exported type ScriptIntermediate should have comment or be unexported (golint)
- Line 54: warning: exported type ScriptOptional should have comment or be unexported (golint)
- Line 58: warning: exported method Spring.RunScript should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!