Preparing report...

Report for github.com/airbusgeo/godal

A+    Excellent!    Found 5 issues across 12 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!


gocyclo83%

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.

    • godal/godal_test.go
    • Line 851: warning: cyclomatic complexity 46 of function TestSpacedIO() is high (> 15) (gocyclo)
    • Line 2062: warning: cyclomatic complexity 27 of function TestPolygonize() is high (> 15) (gocyclo)
    • Line 526: warning: cyclomatic complexity 25 of function TestStructure() is high (> 15) (gocyclo)
    • Line 1870: warning: cyclomatic complexity 23 of function TestBuildOverviews() is high (> 15) (gocyclo)
    • Line 656: warning: cyclomatic complexity 19 of function TestDatasetRead() is high (> 15) (gocyclo)
    • Line 1048: warning: cyclomatic complexity 18 of function TestMetadata() is high (> 15) (gocyclo)
    • Line 1358: warning: cyclomatic complexity 17 of function TestTransform() is high (> 15) (gocyclo)
    • Line 989: warning: cyclomatic complexity 16 of function TestBlockIterator() is high (> 15) (gocyclo)
    • godal/godal.go
    • Line 1448: warning: cyclomatic complexity 16 of function (ResamplingAlg).String() is high (> 15) (gocyclo)

golint83%

Golint is a linter for Go source code.

    • godal/godal.go
    • Line 72: warning: don't use underscores in Go names; const CE_None should be CENone (golint)
    • Line 74: warning: don't use underscores in Go names; const CE_Debug should be CEDebug (golint)
    • Line 76: warning: don't use underscores in Go names; const CE_Warning should be CEWarning (golint)
    • Line 78: warning: don't use underscores in Go names; const CE_Failure should be CEFailure (golint)
    • Line 80: warning: don't use underscores in Go names; const CE_Fatal should be CEFatal (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign66%

IneffAssign detects ineffectual assignments in Go code.

    • godal/godal.go
    • Line 25: warning: could not import C (no metadata for C) (ineffassign)
    • Line 832: warning: i declared but not used (ineffassign)
    • Line 867: warning: i declared but not used (ineffassign)
    • Line 25: warning: could not import C (no metadata for C) (ineffassign)
    • Line 832: warning: i declared but not used (ineffassign)
    • Line 867: warning: i declared but not used (ineffassign)
    • godal/doc_test.go
    • Line 37: warning: cannot use godal.Byte (constant unknown with invalid type) as godal.DataType value in argument to godal.Create (ineffassign)
    • Line 545: warning: cannot compare ec <= godal.CE_Warning (operator <= not defined for godal.ErrorCategory) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!