Preparing report...

Report for github.com/SAP/gorfc

B    Not bad!    Found 3 issues across 4 files

Tweet

gofmt75%

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!


gocyclo75%

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.

    • gorfc/gorfc/gorfc.go
    • Line 660: warning: cyclomatic complexity 44 of function wrapVariable() is high (> 15) (gocyclo)
    • Line 178: warning: cyclomatic complexity 21 of function fillVariable() is high (> 15) (gocyclo)
    • Line 1143: warning: cyclomatic complexity 17 of function (*Connection).Call() is high (> 15) (gocyclo)

golint25%

Golint is a linter for Go source code.

    • gorfc/gorfc/gorfc_test.go
    • Line 465: warning: don't use underscores in Go names; var rfcTable_0 should be rfcTable0 (golint)
    • Line 466: warning: don't use underscores in Go names; var rfcTable_1 should be rfcTable1 (golint)
    • Line 507: warning: don't use underscores in Go names; var rfcTable_0 should be rfcTable0 (golint)
    • Line 508: warning: don't use underscores in Go names; var rfcTable_1 should be rfcTable1 (golint)
    • Line 534: warning: don't use underscores in Go names; var is_input should be isInput (golint)
    • Line 576: warning: don't use underscores in Go names; var is_input should be isInput (golint)
    • Line 614: warning: don't use underscores in Go names; var is_input should be isInput (golint)
    • gorfc/gorfc/gorfc.go
    • Line 975: warning: comment on exported type ConnectionParameters should be of the form "ConnectionParameters ..." (with optional leading article) (golint)
    • Line 978: warning: comment on exported type Connection should be of the form "Connection ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign75%

IneffAssign detects ineffectual assignments in Go code.


misspell75%

Misspell Finds commonly misspelled English words

    • gorfc/gorfc/gorfc.go
    • Line 755: warning: "requried" is a misspelling of "required" (misspell)
    • Line 780: warning: "requried" is a misspelling of "required" (misspell)
    • Line 961: warning: "returnd" is a misspelling of "returned" (misspell)
    • Line 1001: warning: "successfull" is a misspelling of "successful" (misspell)