Preparing report...

Report for github.com/skyzyx/go-toml-fork

A+    Excellent!    Found 11 issues across 41 files

Tweet

gofmt95%

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!


golint92%

Golint is a linter for Go source code.

    • go-toml-fork/localtime.go
    • Line 19: warning: package comment should be of the form "Package toml ..." (golint)
    • Line 99: warning: receiver name d1 should be consistent with previous receiver name d for LocalDate (golint)
    • Line 110: warning: receiver name d1 should be consistent with previous receiver name d for LocalDate (golint)
    • Line 260: warning: receiver name dt1 should be consistent with previous receiver name dt for LocalDateTime (golint)
    • Line 265: warning: receiver name dt1 should be consistent with previous receiver name dt for LocalDateTime (golint)
    • go-toml-fork/marshal.go
    • Line 966: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 979: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 993: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1100: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

gocyclo78%

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.

    • go-toml-fork/marshal.go
    • Line 947: warning: cyclomatic complexity 51 of function (*Decoder).valueFromToml() is high (> 15) (gocyclo)
    • Line 734: warning: cyclomatic complexity 40 of function (*Decoder).valueFromTree() is high (> 15) (gocyclo)
    • Line 418: warning: cyclomatic complexity 28 of function (*Encoder).valueToTree() is high (> 15) (gocyclo)
    • Line 521: warning: cyclomatic complexity 21 of function (*Encoder).valueToToml() is high (> 15) (gocyclo)
    • go-toml-fork/tomltree_write.go
    • Line 313: warning: cyclomatic complexity 35 of function (*Tree).WriteToOrdered() is high (> 15) (gocyclo)
    • Line 129: warning: cyclomatic complexity 25 of function tomlValueStringRepresentation() is high (> 15) (gocyclo)
    • go-toml-fork/query/lexer.go
    • Line 220: warning: cyclomatic complexity 22 of function (*queryLexer).lexString() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 21 of function (*queryLexer).lexVoid() is high (> 15) (gocyclo)
    • go-toml-fork/lexer.go
    • Line 440: warning: cyclomatic complexity 36 of function (*tomlLexer).lexStringAsString() is high (> 15) (gocyclo)
    • Line 659: warning: cyclomatic complexity 34 of function (*tomlLexer).lexNumber() is high (> 15) (gocyclo)
    • Line 159: warning: cyclomatic complexity 28 of function (*tomlLexer).lexRvalue() is high (> 15) (gocyclo)

ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!