Preparing report...

Report for github.com/Konstantin8105/f4go

(v0.0.0-20230817072930-568775fd7b9b)

A    Great!    Found 8 issues across 17 files

Tweet

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!


gofmt82%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


gocyclo52%

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.

    • fortran/expression.go
    • Line 296: warning: cyclomatic complexity 19 of function (*parser).fixComplexValue() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 19 of function (*parser).fixArrayVariables() is high (> 15) (gocyclo)
    • main_test.go
    • Line 259: warning: cyclomatic complexity 17 of function TestBlas() is high (> 15) (gocyclo)
    • fortran/scan.go
    • Line 554: warning: cyclomatic complexity 69 of function (*scanner).postprocessor() is high (> 15) (gocyclo)
    • Line 1127: warning: cyclomatic complexity 27 of function (*scanner).scanNumbers() is high (> 15) (gocyclo)
    • Line 939: warning: cyclomatic complexity 22 of function (*scanner).scanTokens() is high (> 15) (gocyclo)
    • Line 418: warning: cyclomatic complexity 17 of function (*scanner).scanStrings() is high (> 15) (gocyclo)
    • Line 232: warning: cyclomatic complexity 16 of function (*scanner).scanNextComments() is high (> 15) (gocyclo)
    • fortran/parser.go
    • Line 1656: warning: cyclomatic complexity 66 of function (*parser).parseStmt() is high (> 15) (gocyclo)
    • Line 2212: warning: cyclomatic complexity 56 of function (*parser).parseData() is high (> 15) (gocyclo)
    • Line 395: warning: cyclomatic complexity 24 of function (*parser).parseNodes() is high (> 15) (gocyclo)
    • Line 602: warning: cyclomatic complexity 22 of function (*parser).initializeVars() is high (> 15) (gocyclo)
    • Line 2095: warning: cyclomatic complexity 21 of function explodeFor() is high (> 15) (gocyclo)
    • Line 2719: warning: cyclomatic complexity 20 of function (*parser).parseCommon() is high (> 15) (gocyclo)
    • Line 2603: warning: cyclomatic complexity 19 of function (*parser).parseParameter() is high (> 15) (gocyclo)
    • Line 1328: warning: cyclomatic complexity 18 of function (*parser).parseCall() is high (> 15) (gocyclo)
    • Line 1003: warning: cyclomatic complexity 18 of function (*parser).parseSubroutine() is high (> 15) (gocyclo)
    • Line 1438: warning: cyclomatic complexity 18 of function (*parser).parseDo() is high (> 15) (gocyclo)
    • fortran/util.go
    • Line 50: warning: cyclomatic complexity 52 of function (*parser).split() is high (> 15) (gocyclo)
    • fortran/io.go
    • Line 177: warning: cyclomatic complexity 29 of function (*parser).parseFormat() is high (> 15) (gocyclo)
    • fortran/function_definition.go
    • Line 12: warning: cyclomatic complexity 22 of function (callArgumentSimplification).Visit() is high (> 15) (gocyclo)
    • Line 71: warning: cyclomatic complexity 22 of function (intrinsic).Visit() is high (> 15) (gocyclo)

ineffassign94%

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!