Preparing report...

Report for github.com/procyon-projects/procyon-context

A+    Excellent!    Found 11 issues across 19 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!


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!


golint42%

Golint is a linter for Go source code.

    • procyon-context/context.go
    • Line 13: warning: exported type ApplicationId should have comment or be unexported (golint)
    • Line 14: warning: exported type ContextId should have comment or be unexported (golint)
    • Line 16: warning: exported type Context should have comment or be unexported (golint)
    • Line 22: warning: exported type ApplicationContext should have comment or be unexported (golint)
    • Line 30: warning: exported type ConfigurableContext should have comment or be unexported (golint)
    • Line 39: warning: exported type ConfigurableApplicationContext should have comment or be unexported (golint)
    • Line 44: warning: exported type ConfigurableContextAdapter should have comment or be unexported (golint)
    • Line 50: warning: exported type BaseApplicationContext should have comment or be unexported (golint)
    • Line 65: warning: exported function NewBaseApplicationContext should have comment or be unexported (golint)
    • Line 94: warning: exported method BaseApplicationContext.SetLogger should have comment or be unexported (golint)
    • Line 101: warning: exported method BaseApplicationContext.GetLogger should have comment or be unexported (golint)
    • Line 105: warning: exported method BaseApplicationContext.SetApplicationName should have comment or be unexported (golint)
    • Line 109: warning: exported method BaseApplicationContext.GetApplicationName should have comment or be unexported (golint)
    • Line 113: warning: exported method BaseApplicationContext.GetAppId should have comment or be unexported (golint)
    • Line 117: warning: exported method BaseApplicationContext.GetContextId should have comment or be unexported (golint)
    • Line 121: warning: exported method BaseApplicationContext.Get should have comment or be unexported (golint)
    • Line 125: warning: exported method BaseApplicationContext.Put should have comment or be unexported (golint)
    • Line 129: warning: exported method BaseApplicationContext.GetStartupTimestamp should have comment or be unexported (golint)
    • Line 133: warning: exported method BaseApplicationContext.SetEnvironment should have comment or be unexported (golint)
    • Line 137: warning: exported method BaseApplicationContext.GetEnvironment should have comment or be unexported (golint)
    • Line 141: warning: exported method BaseApplicationContext.AddApplicationListener should have comment or be unexported (golint)
    • Line 151: warning: exported method BaseApplicationContext.GetApplicationListeners should have comment or be unexported (golint)
    • Line 155: warning: exported method BaseApplicationContext.PublishEvent should have comment or be unexported (golint)
    • Line 159: warning: exported method BaseApplicationContext.Configure should have comment or be unexported (golint)
    • Line 288: warning: exported method BaseApplicationContext.GetPeaFactory should have comment or be unexported (golint)
    • procyon-context/event.go
    • Line 7: warning: exported type ApplicationEventId should have comment or be unexported (golint)
    • Line 15: warning: exported function ApplicationContextEventId should have comment or be unexported (golint)
    • Line 19: warning: exported function ApplicationContextStartedEventId should have comment or be unexported (golint)
    • Line 23: warning: exported function ApplicationContextStoppedEventId should have comment or be unexported (golint)
    • Line 27: warning: exported function ApplicationContextRefreshedEventId should have comment or be unexported (golint)
    • Line 31: warning: exported function ApplicationContextClosedEventId should have comment or be unexported (golint)
    • Line 35: warning: exported function GetEventId should have comment or be unexported (golint)
    • Line 46: warning: exported type ApplicationEvent should have comment or be unexported (golint)
    • Line 53: warning: exported type ApplicationContextEvent should have comment or be unexported (golint)
    • Line 58: warning: exported type ApplicationContextStartedEvent should have comment or be unexported (golint)
    • Line 63: warning: exported function NewApplicationContextStartedEvent should have comment or be unexported (golint)
    • Line 70: warning: exported method ApplicationContextStartedEvent.GetEventId should have comment or be unexported (golint)
    • Line 74: warning: exported method ApplicationContextStartedEvent.GetParentEventId should have comment or be unexported (golint)
    • Line 78: warning: exported method ApplicationContextStartedEvent.GetSource should have comment or be unexported (golint)
    • Line 82: warning: exported method ApplicationContextStartedEvent.GetTimestamp should have comment or be unexported (golint)
    • Line 86: warning: exported method ApplicationContextStartedEvent.GetApplicationContext should have comment or be unexported (golint)
    • Line 90: warning: exported type ApplicationContextStoppedEvent should have comment or be unexported (golint)
    • Line 95: warning: exported function NewApplicationContextStoppedEvent should have comment or be unexported (golint)
    • Line 102: warning: exported method ApplicationContextStoppedEvent.GetEventId should have comment or be unexported (golint)
    • Line 106: warning: exported method ApplicationContextStoppedEvent.GetParentEventId should have comment or be unexported (golint)
    • Line 110: warning: exported method ApplicationContextStoppedEvent.GetSource should have comment or be unexported (golint)
    • Line 114: warning: exported method ApplicationContextStoppedEvent.GetTimestamp should have comment or be unexported (golint)
    • Line 118: warning: exported method ApplicationContextStoppedEvent.GetApplicationContext should have comment or be unexported (golint)
    • Line 122: warning: exported type ApplicationContextRefreshedEvent should have comment or be unexported (golint)
    • Line 127: warning: exported function NewApplicationContextRefreshedEvent should have comment or be unexported (golint)
    • Line 134: warning: exported method ApplicationContextRefreshedEvent.GetEventId should have comment or be unexported (golint)
    • Line 138: warning: exported method ApplicationContextRefreshedEvent.GetParentEventId should have comment or be unexported (golint)
    • Line 142: warning: exported method ApplicationContextRefreshedEvent.GetSource should have comment or be unexported (golint)
    • Line 146: warning: exported method ApplicationContextRefreshedEvent.GetTimestamp should have comment or be unexported (golint)
    • Line 150: warning: exported method ApplicationContextRefreshedEvent.GetApplicationContext should have comment or be unexported (golint)
    • Line 154: warning: exported type ApplicationContextClosedEvent should have comment or be unexported (golint)
    • Line 159: warning: exported function NewApplicationContextClosedEvent should have comment or be unexported (golint)
    • Line 166: warning: exported method ApplicationContextClosedEvent.GetEventId should have comment or be unexported (golint)
    • Line 170: warning: exported method ApplicationContextClosedEvent.GetParentEventId should have comment or be unexported (golint)
    • Line 174: warning: exported method ApplicationContextClosedEvent.GetSource should have comment or be unexported (golint)
    • Line 178: warning: exported method ApplicationContextClosedEvent.GetTimestamp should have comment or be unexported (golint)
    • Line 182: warning: exported method ApplicationContextClosedEvent.GetApplicationContext should have comment or be unexported (golint)
    • procyon-context/bind.go
    • Line 10: warning: exported type ConfigurationPropertiesBinder should have comment or be unexported (golint)
    • Line 22: warning: exported method ConfigurationPropertiesBinder.Bind should have comment or be unexported (golint)
    • procyon-context/broadcast.go
    • Line 7: warning: exported type ApplicationEventBroadcaster should have comment or be unexported (golint)
    • Line 14: warning: exported type SimpleApplicationEventBroadcaster should have comment or be unexported (golint)
    • Line 19: warning: exported function NewSimpleApplicationEventBroadcaster should have comment or be unexported (golint)
    • Line 26: warning: exported method SimpleApplicationEventBroadcaster.RegisterApplicationListener should have comment or be unexported (golint)
    • Line 40: warning: exported method SimpleApplicationEventBroadcaster.UnregisterApplicationListener should have comment or be unexported (golint)
    • Line 66: warning: exported method SimpleApplicationEventBroadcaster.RemoveAllApplicationListeners should have comment or be unexported (golint)
    • Line 72: warning: exported method SimpleApplicationEventBroadcaster.BroadcastEvent should have comment or be unexported (golint)
    • procyon-context/components.go
    • Line 10: warning: exported type ScannedPeaDefinition should have comment or be unexported (golint)
    • Line 15: warning: exported function NewScannedPeaDefinition should have comment or be unexported (golint)
    • Line 22: warning: exported method ScannedPeaDefinition.GetComponentName should have comment or be unexported (golint)
    • Line 26: warning: exported type ScannedPeaNameGenerator should have comment or be unexported (golint)
    • Line 29: warning: exported function NewScannedPeaNameGenerator should have comment or be unexported (golint)
    • Line 33: warning: exported method ScannedPeaNameGenerator.GenerateName should have comment or be unexported (golint)
    • Line 46: warning: exported type ComponentPeaDefinitionScanner should have comment or be unexported (golint)
    • Line 51: warning: exported function NewComponentPeaDefinitionScanner should have comment or be unexported (golint)
    • Line 58: warning: exported method ComponentPeaDefinitionScanner.DoScan should have comment or be unexported (golint)
    • procyon-context/logger.go
    • Line 11: warning: exported type LoggingConfiguration should have comment or be unexported (golint)
    • Line 15: warning: exported type LogLevel should have comment or be unexported (golint)
    • Line 18: warning: exported const PanicLevel should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type Logger should have comment or be unexported (golint)
    • Line 46: warning: exported type SimpleLogger should have comment or be unexported (golint)
    • Line 50: warning: exported function NewSimpleLogger should have comment or be unexported (golint)
    • Line 61: warning: exported method SimpleLogger.ApplyLoggingProperties should have comment or be unexported (golint)
    • Line 95: warning: exported method SimpleLogger.Trace should have comment or be unexported (golint)
    • Line 99: warning: exported method SimpleLogger.Debug should have comment or be unexported (golint)
    • Line 103: warning: exported method SimpleLogger.Info should have comment or be unexported (golint)
    • Line 107: warning: exported method SimpleLogger.Warning should have comment or be unexported (golint)
    • Line 115: warning: exported method SimpleLogger.Fatal should have comment or be unexported (golint)
    • Line 119: warning: exported method SimpleLogger.Panic should have comment or be unexported (golint)
    • Line 123: warning: exported method SimpleLogger.Print should have comment or be unexported (golint)
    • Line 127: warning: exported method SimpleLogger.Tracef should have comment or be unexported (golint)
    • Line 131: warning: exported method SimpleLogger.Debugf should have comment or be unexported (golint)
    • Line 135: warning: exported method SimpleLogger.Infof should have comment or be unexported (golint)
    • Line 139: warning: exported method SimpleLogger.Warningf should have comment or be unexported (golint)
    • Line 143: warning: exported method SimpleLogger.Errorf should have comment or be unexported (golint)
    • Line 147: warning: exported method SimpleLogger.Fatalf should have comment or be unexported (golint)
    • Line 151: warning: exported method SimpleLogger.Panicf should have comment or be unexported (golint)
    • Line 155: warning: exported method SimpleLogger.Printf should have comment or be unexported (golint)
    • Line 239: warning: exported type LogFormatter should have comment or be unexported (golint)
    • Line 245: warning: exported function NewLogFormatter should have comment or be unexported (golint)
    • Line 252: warning: exported method LogFormatter.Format should have comment or be unexported (golint)
    • Line 265: warning: exported method LogFormatter.GetSumContextId should have comment or be unexported (golint)
    • Line 270: warning: exported method LogFormatter.GetLevelString should have comment or be unexported (golint)
    • procyon-context/processor.go
    • Line 8: warning: exported type BootstrapProcessor should have comment or be unexported (golint)
    • Line 11: warning: exported function NewBootstrapProcessor should have comment or be unexported (golint)
    • Line 15: warning: exported method BootstrapProcessor.AfterPeaDefinitionRegistryInitialization should have comment or be unexported (golint)
    • Line 19: warning: exported method BootstrapProcessor.AfterPeaFactoryInitialization should have comment or be unexported (golint)
    • Line 28: warning: exported type EventListenerProcessor should have comment or be unexported (golint)
    • Line 31: warning: exported function NewEventListenerProcessor should have comment or be unexported (golint)
    • Line 35: warning: exported method EventListenerProcessor.AfterPeaDefinitionRegistryInitialization should have comment or be unexported (golint)
    • Line 39: warning: exported method EventListenerProcessor.AfterPeaFactoryInitialization should have comment or be unexported (golint)
    • Line 43: warning: exported type ConfigurationPropertiesBindingProcessor should have comment or be unexported (golint)
    • Line 47: warning: exported function NewConfigurationPropertiesBindingProcessor should have comment or be unexported (golint)
    • Line 53: warning: exported method ConfigurationPropertiesBindingProcessor.BeforePeaInitialization should have comment or be unexported (golint)
    • Line 61: warning: exported method ConfigurationPropertiesBindingProcessor.AfterPeaInitialization should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!