Preparing report...

Report for github.com/go-akka/configuration

A    Great!    Found 13 issues across 14 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!


gocyclo85%

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.


golint7%

Golint is a linter for Go source code.

    • configuration/hocon/stack.go
    • Line 8: warning: exported type Stack should have comment or be unexported (golint)
    • Line 13: warning: exported function NewStack should have comment or be unexported (golint)
    • Line 17: warning: exported method Stack.Push should have comment or be unexported (golint)
    • Line 24: warning: exported method Stack.Pop should have comment or be unexported (golint)
    • configuration/hocon/tokenizer.go
    • Line 10: warning: exported const HoconNotInUnquotedKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type Tokenizer should have comment or be unexported (golint)
    • Line 20: warning: exported function NewTokenizer should have comment or be unexported (golint)
    • Line 27: warning: exported method Tokenizer.Push should have comment or be unexported (golint)
    • Line 31: warning: exported method Tokenizer.Pop should have comment or be unexported (golint)
    • Line 39: warning: exported method Tokenizer.EOF should have comment or be unexported (golint)
    • Line 43: warning: exported method Tokenizer.Matches should have comment or be unexported (golint)
    • Line 58: warning: exported method Tokenizer.MatchesMore should have comment or be unexported (golint)
    • Line 71: warning: exported method Tokenizer.Take should have comment or be unexported (golint)
    • Line 81: warning: exported method Tokenizer.Peek should have comment or be unexported (golint)
    • Line 89: warning: exported method Tokenizer.TakeOne should have comment or be unexported (golint)
    • Line 99: warning: exported method Tokenizer.PullWhitespace should have comment or be unexported (golint)
    • Line 105: warning: exported type HoconTokenizer should have comment or be unexported (golint)
    • Line 109: warning: exported function NewHoconTokenizer should have comment or be unexported (golint)
    • Line 113: warning: exported method HoconTokenizer.PullWhitespaceAndComments should have comment or be unexported (golint)
    • Line 126: warning: exported method HoconTokenizer.PullRestOfLine should have comment or be unexported (golint)
    • Line 146: warning: exported method HoconTokenizer.PullNext should have comment or be unexported (golint)
    • Line 184: warning: exported method HoconTokenizer.PullArrayEnd should have comment or be unexported (golint)
    • Line 189: warning: exported method HoconTokenizer.IsArrayEnd should have comment or be unexported (golint)
    • Line 193: warning: exported method HoconTokenizer.IsArrayStart should have comment or be unexported (golint)
    • Line 197: warning: exported method HoconTokenizer.PullArrayStart should have comment or be unexported (golint)
    • Line 202: warning: exported method HoconTokenizer.PullDot should have comment or be unexported (golint)
    • Line 207: warning: exported method HoconTokenizer.PullComma should have comment or be unexported (golint)
    • Line 212: warning: exported method HoconTokenizer.PullNewline should have comment or be unexported (golint)
    • Line 217: warning: exported method HoconTokenizer.PullStartOfObject should have comment or be unexported (golint)
    • Line 222: warning: exported method HoconTokenizer.PullEndOfObject should have comment or be unexported (golint)
    • Line 227: warning: exported method HoconTokenizer.PullAssignment should have comment or be unexported (golint)
    • Line 232: warning: exported method HoconTokenizer.PullPlusAssignment should have comment or be unexported (golint)
    • Line 237: warning: exported method HoconTokenizer.IsComma should have comment or be unexported (golint)
    • Line 241: warning: exported method HoconTokenizer.IsNewline should have comment or be unexported (golint)
    • Line 245: warning: exported method HoconTokenizer.IsDot should have comment or be unexported (golint)
    • Line 249: warning: exported method HoconTokenizer.IsObjectStart should have comment or be unexported (golint)
    • Line 253: warning: exported method HoconTokenizer.IsEndOfObject should have comment or be unexported (golint)
    • Line 257: warning: exported method HoconTokenizer.IsAssignment should have comment or be unexported (golint)
    • Line 261: warning: exported method HoconTokenizer.IsPlusAssignment should have comment or be unexported (golint)
    • Line 265: warning: exported method HoconTokenizer.IsStartOfQuotedText should have comment or be unexported (golint)
    • Line 269: warning: exported method HoconTokenizer.IsStartOfTripleQuotedText should have comment or be unexported (golint)
    • Line 273: warning: exported method HoconTokenizer.PullComment should have comment or be unexported (golint)
    • Line 278: warning: exported method HoconTokenizer.PullUnquotedKey should have comment or be unexported (golint)
    • Line 289: warning: exported method HoconTokenizer.IsUnquotedKey should have comment or be unexported (golint)
    • Line 293: warning: exported method HoconTokenizer.IsUnquotedKeyStart should have comment or be unexported (golint)
    • Line 297: warning: exported method HoconTokenizer.IsWhitespace should have comment or be unexported (golint)
    • Line 301: warning: exported method HoconTokenizer.IsWhitespaceOrComment should have comment or be unexported (golint)
    • Line 305: warning: exported method HoconTokenizer.PullTripleQuotedText should have comment or be unexported (golint)
    • Line 318: warning: exported method HoconTokenizer.PullQuotedText should have comment or be unexported (golint)
    • Line 337: warning: exported method HoconTokenizer.PullQuotedKey should have comment or be unexported (golint)
    • Line 356: warning: exported method HoconTokenizer.PullInclude should have comment or be unexported (golint)
    • Line 396: warning: exported method HoconTokenizer.IsStartOfComment should have comment or be unexported (golint)
    • Line 400: warning: exported method HoconTokenizer.PullValue should have comment or be unexported (golint)
    • Line 432: warning: exported method HoconTokenizer.IsSubstitutionStart should have comment or be unexported (golint)
    • Line 436: warning: exported method HoconTokenizer.IsInclude should have comment or be unexported (golint)
    • Line 474: warning: exported method HoconTokenizer.IsSpaceOrTab should have comment or be unexported (golint)
    • Line 478: warning: exported method HoconTokenizer.IsStartSimpleValue should have comment or be unexported (golint)
    • Line 490: warning: exported method HoconTokenizer.PullSpaceOrTab should have comment or be unexported (golint)
    • Line 514: warning: exported method HoconTokenizer.PullSimpleValue should have comment or be unexported (golint)
    • configuration/configuration.go
    • Line 10: warning: exported function ParseString should have comment or be unexported (golint)
    • Line 21: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 30: warning: exported function FromObject should have comment or be unexported (golint)
    • configuration/hocon/array.go
    • Line 7: warning: exported type HoconArray should have comment or be unexported (golint)
    • Line 11: warning: exported function NewHoconArray should have comment or be unexported (golint)
    • Line 15: warning: exported method HoconArray.IsString should have comment or be unexported (golint)
    • Line 19: warning: exported method HoconArray.GetString should have comment or be unexported (golint)
    • Line 23: warning: exported method HoconArray.IsArray should have comment or be unexported (golint)
    • Line 27: warning: exported method HoconArray.GetArray should have comment or be unexported (golint)
    • configuration/hocon/literal.go
    • Line 3: warning: exported type HoconLiteral should have comment or be unexported (golint)
    • Line 7: warning: exported function NewHoconLiteral should have comment or be unexported (golint)
    • Line 11: warning: exported method HoconLiteral.IsString should have comment or be unexported (golint)
    • Line 15: warning: exported method HoconLiteral.GetString should have comment or be unexported (golint)
    • Line 19: warning: exported method HoconLiteral.IsArray should have comment or be unexported (golint)
    • Line 23: warning: exported method HoconLiteral.GetArray should have comment or be unexported (golint)
    • configuration/hocon/object.go
    • Line 9: warning: exported type HoconObject should have comment or be unexported (golint)
    • Line 14: warning: exported function NewHoconObject should have comment or be unexported (golint)
    • Line 20: warning: exported method HoconObject.GetString should have comment or be unexported (golint)
    • Line 24: warning: exported method HoconObject.IsArray should have comment or be unexported (golint)
    • Line 28: warning: exported method HoconObject.GetArray should have comment or be unexported (golint)
    • Line 32: warning: exported method HoconObject.GetKeys should have comment or be unexported (golint)
    • Line 36: warning: exported method HoconObject.Unwrapped should have comment or be unexported (golint)
    • Line 57: warning: exported method HoconObject.Items should have comment or be unexported (golint)
    • Line 61: warning: exported method HoconObject.GetKey should have comment or be unexported (golint)
    • Line 66: warning: exported method HoconObject.GetOrCreateKey should have comment or be unexported (golint)
    • Line 80: warning: exported method HoconObject.IsString should have comment or be unexported (golint)
    • Line 88: warning: exported method HoconObject.ToString should have comment or be unexported (golint)
    • Line 99: warning: exported method HoconObject.Merge should have comment or be unexported (golint)
    • Line 119: warning: exported method HoconObject.MergeImmutable should have comment or be unexported (golint)
    • configuration/hocon/parser.go
    • Line 8: warning: exported type IncludeCallback should have comment or be unexported (golint)
    • Line 10: warning: exported type Parser should have comment or be unexported (golint)
    • Line 18: warning: exported function Parse should have comment or be unexported (golint)
    • Line 135: warning: exported method Parser.ParseValue should have comment or be unexported (golint)
    • Line 177: warning: exported method Parser.ParseTrailingWhitespace should have comment or be unexported (golint)
    • Line 185: warning: exported method Parser.ParseSubstitution should have comment or be unexported (golint)
    • Line 189: warning: exported method Parser.ParseArray should have comment or be unexported (golint)
    • configuration/hocon/root.go
    • Line 3: warning: exported type HoconRoot should have comment or be unexported (golint)
    • Line 8: warning: exported function NewHoconRoot should have comment or be unexported (golint)
    • Line 15: warning: exported method HoconRoot.Value should have comment or be unexported (golint)
    • Line 19: warning: exported method HoconRoot.Substitutions should have comment or be unexported (golint)
    • configuration/config.go
    • Line 11: warning: exported type Config should have comment or be unexported (golint)
    • Line 17: warning: exported function NewConfigFromRoot should have comment or be unexported (golint)
    • Line 28: warning: exported function NewConfigFromConfig should have comment or be unexported (golint)
    • Line 39: warning: exported method Config.IsEmpty should have comment or be unexported (golint)
    • Line 43: warning: exported method Config.Root should have comment or be unexported (golint)
    • Line 47: warning: exported method Config.Copy should have comment or be unexported (golint)
    • Line 65: warning: exported method Config.GetNode should have comment or be unexported (golint)
    • Line 89: warning: exported method Config.GetBoolean should have comment or be unexported (golint)
    • Line 100: warning: exported method Config.GetByteSize should have comment or be unexported (golint)
    • Line 108: warning: exported method Config.GetInt32 should have comment or be unexported (golint)
    • Line 119: warning: exported method Config.GetInt64 should have comment or be unexported (golint)
    • Line 130: warning: exported method Config.GetString should have comment or be unexported (golint)
    • Line 141: warning: exported method Config.GetFloat32 should have comment or be unexported (golint)
    • Line 151: warning: exported method Config.GetFloat64 should have comment or be unexported (golint)
    • Line 162: warning: exported method Config.GetTimeDuration should have comment or be unexported (golint)
    • Line 173: warning: exported method Config.GetTimeDurationInfiniteNotAllowed should have comment or be unexported (golint)
    • Line 184: warning: exported method Config.GetBooleanList should have comment or be unexported (golint)
    • Line 192: warning: exported method Config.GetFloat32List should have comment or be unexported (golint)
    • Line 200: warning: exported method Config.GetFloat64List should have comment or be unexported (golint)
    • Line 208: warning: exported method Config.GetInt32List should have comment or be unexported (golint)
    • Line 216: warning: exported method Config.GetInt64List should have comment or be unexported (golint)
    • Line 224: warning: exported method Config.GetByteList should have comment or be unexported (golint)
    • Line 232: warning: exported method Config.GetStringList should have comment or be unexported (golint)
    • Line 240: warning: exported method Config.GetConfig should have comment or be unexported (golint)
    • Line 263: warning: exported method Config.GetValue should have comment or be unexported (golint)
    • Line 267: warning: exported method Config.WithFallback should have comment or be unexported (golint)
    • Line 288: warning: exported method Config.HasPath should have comment or be unexported (golint)
    • Line 292: warning: exported method Config.IsObject should have comment or be unexported (golint)
    • Line 301: warning: exported method Config.IsArray should have comment or be unexported (golint)
    • Line 310: warning: exported method Config.AddConfig should have comment or be unexported (golint)
    • Line 316: warning: exported method Config.AddConfigWithTextFallback should have comment or be unexported (golint)
    • configuration/hocon/element.go
    • Line 3: warning: exported type MightBeAHoconObject should have comment or be unexported (golint)
    • Line 8: warning: exported type HoconElement should have comment or be unexported (golint)
    • configuration/hocon/substitution.go
    • Line 7: warning: exported type HoconSubstitution should have comment or be unexported (golint)
    • Line 14: warning: exported function NewHoconSubstitution should have comment or be unexported (golint)
    • Line 18: warning: exported method HoconSubstitution.IsString should have comment or be unexported (golint)
    • Line 26: warning: exported method HoconSubstitution.GetString should have comment or be unexported (golint)
    • Line 34: warning: exported method HoconSubstitution.IsArray should have comment or be unexported (golint)
    • Line 41: warning: exported method HoconSubstitution.GetArray should have comment or be unexported (golint)
    • Line 48: warning: exported method HoconSubstitution.IsObject should have comment or be unexported (golint)
    • Line 56: warning: exported method HoconSubstitution.GetObject should have comment or be unexported (golint)
    • configuration/hocon/token.go
    • Line 3: warning: exported type TokenType should have comment or be unexported (golint)
    • Line 6: warning: exported const TokenTypeNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported var DefaultToken should have comment or be unexported (golint)
    • Line 28: warning: exported type Token should have comment or be unexported (golint)
    • Line 34: warning: exported function NewToken should have comment or be unexported (golint)
    • Line 50: warning: exported method Token.Key should have comment or be unexported (golint)
    • Line 54: warning: exported method Token.Substitution should have comment or be unexported (golint)
    • Line 58: warning: exported method Token.LiteralValue should have comment or be unexported (golint)
    • Line 62: warning: exported method Token.Include should have comment or be unexported (golint)
    • Line 66: warning: exported function StringTokenType should have comment or be unexported (golint)
    • configuration/hocon/value.go
    • Line 41: warning: exported type HoconValue should have comment or be unexported (golint)
    • Line 46: warning: exported function NewHoconValue should have comment or be unexported (golint)
    • Line 50: warning: exported method HoconValue.IsEmpty should have comment or be unexported (golint)
    • Line 63: warning: exported method HoconValue.AtKey should have comment or be unexported (golint)
    • Line 72: warning: exported method HoconValue.IsString should have comment or be unexported (golint)
    • Line 120: warning: exported method HoconValue.GetByteSize should have comment or be unexported (golint)
    • Line 179: warning: exported method HoconValue.ToString should have comment or be unexported (golint)
    • Line 200: warning: exported method HoconValue.GetObject should have comment or be unexported (golint)
    • Line 228: warning: exported method HoconValue.IsObject should have comment or be unexported (golint)
    • Line 232: warning: exported method HoconValue.AppendValue should have comment or be unexported (golint)
    • Line 236: warning: exported method HoconValue.Clear should have comment or be unexported (golint)
    • Line 240: warning: exported method HoconValue.NewValue should have comment or be unexported (golint)
    • Line 245: warning: exported method HoconValue.GetBoolean should have comment or be unexported (golint)
    • Line 257: warning: exported method HoconValue.GetString should have comment or be unexported (golint)
    • Line 264: warning: exported method HoconValue.GetFloat64 should have comment or be unexported (golint)
    • Line 272: warning: exported method HoconValue.GetFloat32 should have comment or be unexported (golint)
    • Line 280: warning: exported method HoconValue.GetInt64 should have comment or be unexported (golint)
    • Line 288: warning: exported method HoconValue.GetInt32 should have comment or be unexported (golint)
    • Line 296: warning: exported method HoconValue.GetByte should have comment or be unexported (golint)
    • Line 304: warning: exported method HoconValue.GetByteList should have comment or be unexported (golint)
    • Line 313: warning: exported method HoconValue.GetInt32List should have comment or be unexported (golint)
    • Line 322: warning: exported method HoconValue.GetInt64List should have comment or be unexported (golint)
    • Line 331: warning: exported method HoconValue.GetBooleanList should have comment or be unexported (golint)
    • Line 340: warning: exported method HoconValue.GetFloat32List should have comment or be unexported (golint)
    • Line 349: warning: exported method HoconValue.GetFloat64List should have comment or be unexported (golint)
    • Line 358: warning: exported method HoconValue.GetStringList should have comment or be unexported (golint)
    • Line 367: warning: exported method HoconValue.GetArray should have comment or be unexported (golint)
    • Line 384: warning: exported method HoconValue.GetChildObject should have comment or be unexported (golint)
    • Line 392: warning: exported method HoconValue.IsArray should have comment or be unexported (golint)
    • Line 396: warning: exported method HoconValue.GetTimeDuration should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.

    • configuration/config.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/go-akka/configuration/hocon (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/go-akka/configuration/hocon (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!