Preparing report...

Report for github.com/go-ml-dev/iokit

A+    Excellent!    Found 29 issues across 38 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!


gocyclo100%

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.

No problems detected. Good job!


golint23%

Golint is a linter for Go source code.

    • iokit/s3p/url.go
    • Line 23: warning: exported function DecodeUrl should have comment or be unexported (golint)
    • Line 55: warning: exported function ResolveUrl should have comment or be unexported (golint)
    • Line 80: warning: exported function Download should have comment or be unexported (golint)
    • Line 90: warning: exported function Upload should have comment or be unexported (golint)
    • iokit/fu/fu.go
    • Line 7: warning: exported function Option should have comment or be unexported (golint)
    • Line 22: warning: exported function Mini should have comment or be unexported (golint)
    • Line 45: warning: exported function Ife should have comment or be unexported (golint)
    • Line 52: warning: exported function Ifei should have comment or be unexported (golint)
    • Line 59: warning: exported function Ifes should have comment or be unexported (golint)
    • Line 66: warning: exported function Fvs should have comment or be unexported (golint)
    • iokit/iokit.go
    • Line 5: warning: exported const Version should have comment or be unexported (golint)
    • Line 7: warning: exported type VersionType should have comment or be unexported (golint)
    • Line 13: warning: exported method VersionType.Major should have comment or be unexported (golint)
    • Line 17: warning: exported method VersionType.Minor should have comment or be unexported (golint)
    • Line 21: warning: exported method VersionType.Patch should have comment or be unexported (golint)
    • iokit/urlhttp.go
    • Line 8: warning: exported type HttpUrl should have comment or be unexported (golint)
    • Line 10: warning: exported method HttpUrl.Download should have comment or be unexported (golint)
    • iokit/urlreader.go
    • Line 49: warning: exported function Download should have comment or be unexported (golint)
    • Line 62: warning: exported method IoUrl.Download should have comment or be unexported (golint)
    • iokit/io.go
    • Line 9: warning: exported type Input should have comment or be unexported (golint)
    • Line 13: warning: exported type Output should have comment or be unexported (golint)
    • Line 17: warning: exported type InputOutput should have comment or be unexported (golint)
    • Line 22: warning: exported type LuckyInputOutput should have comment or be unexported (golint)
    • Line 24: warning: exported method LuckyInputOutput.LuckyCreate should have comment or be unexported (golint)
    • Line 28: warning: exported method LuckyInputOutput.LuckyOpen should have comment or be unexported (golint)
    • Line 32: warning: exported method LuckyInputOutput.ReadAll should have comment or be unexported (golint)
    • Line 36: warning: exported method LuckyInputOutput.LuckyReadAll should have comment or be unexported (golint)
    • Line 40: warning: exported method LuckyInputOutput.WriteAll should have comment or be unexported (golint)
    • Line 44: warning: exported method LuckyInputOutput.LuckyWriteAll should have comment or be unexported (golint)
    • Line 48: warning: exported type LuckyOutput should have comment or be unexported (golint)
    • Line 50: warning: exported method LuckyOutput.LuckyCreate should have comment or be unexported (golint)
    • Line 58: warning: exported method LuckyOutput.WriteAll should have comment or be unexported (golint)
    • Line 71: warning: exported method LuckyOutput.LuckyWriteAll should have comment or be unexported (golint)
    • Line 77: warning: exported type LuckyWhole should have comment or be unexported (golint)
    • Line 79: warning: exported method LuckyWhole.LuckyWrite should have comment or be unexported (golint)
    • Line 85: warning: exported method LuckyWhole.LuckyCommit should have comment or be unexported (golint)
    • Line 85: warning: receiver name lr should be consistent with previous receiver name lw for LuckyWhole (golint)
    • Line 91: warning: exported type LuckyInput should have comment or be unexported (golint)
    • Line 93: warning: exported method LuckyInput.LuckyOpen should have comment or be unexported (golint)
    • Line 101: warning: exported method LuckyInput.ReadAll should have comment or be unexported (golint)
    • Line 110: warning: exported method LuckyInput.LuckyReadAll should have comment or be unexported (golint)
    • Line 118: warning: exported type LuckyReader should have comment or be unexported (golint)
    • Line 120: warning: exported method LuckyReader.LuckyReadAll should have comment or be unexported (golint)
    • iokit/url.go
    • Line 9: warning: exported type IoUrl should have comment or be unexported (golint)
    • Line 17: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 18: warning: exported type AsyncUpload should have comment or be unexported (golint)
    • Line 20: warning: exported function Url should have comment or be unexported (golint)
    • Line 35: warning: exported method IoUrl.Open should have comment or be unexported (golint)
    • Line 42: warning: exported method IoUrl.Create should have comment or be unexported (golint)
    • iokit/closechain.go
    • Line 5: warning: exported type CloserChain should have comment or be unexported (golint)
    • Line 7: warning: exported method CloserChain.Close should have comment or be unexported (golint)
    • iokit/temporary.go
    • Line 26: warning: exported type TemporaryFile should have comment or be unexported (golint)
    • Line 46: warning: exported function Tempfile should have comment or be unexported (golint)
    • iokit/gcp/accesspoint.go
    • Line 17: warning: exported type Location should have comment or be unexported (golint)
    • Line 22: warning: exported type AccessPoint should have comment or be unexported (golint)
    • Line 32: warning: exported function Register should have comment or be unexported (golint)
    • Line 38: warning: exported function Lookup should have comment or be unexported (golint)
    • Line 127: warning: exported method AccessPoint.Service should have comment or be unexported (golint)
    • iokit/decompress.go
    • Line 16: warning: exported function Compressed should have comment or be unexported (golint)
    • Line 54: warning: exported function Decompress should have comment or be unexported (golint)
    • Line 143: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • iokit/gzip.go
    • Line 12: warning: exported function Gzip should have comment or be unexported (golint)
    • iokit/whole.go
    • Line 5: warning: exported type Whole should have comment or be unexported (golint)
    • Line 12: warning: exported type Fallible should have comment or be unexported (golint)
    • iokit/s3p/accesspoint.go
    • Line 13: warning: exported type Location should have comment or be unexported (golint)
    • Line 18: warning: exported type AccessPoint should have comment or be unexported (golint)
    • Line 30: warning: exported function Register should have comment or be unexported (golint)
    • Line 36: warning: exported function Lookup should have comment or be unexported (golint)
    • Line 65: warning: exported method AccessPoint.Session should have comment or be unexported (golint)
    • iokit/file.go
    • Line 11: warning: exported function File should have comment or be unexported (golint)
    • iokit/urlwriter.go
    • Line 62: warning: exported function Upload should have comment or be unexported (golint)
    • Line 73: warning: exported method IoUrl.Upload should have comment or be unexported (golint)
    • iokit/resettable.go
    • Line 8: warning: exported type Resettable should have comment or be unexported (golint)
    • Line 12: warning: exported function ResetFile should have comment or be unexported (golint)
    • iokit/sizeable.go
    • Line 8: warning: exported type Sizeable should have comment or be unexported (golint)
    • Line 12: warning: exported function FileSize should have comment or be unexported (golint)
    • iokit/urls3.go
    • Line 8: warning: exported type S3Url should have comment or be unexported (golint)
    • Line 10: warning: exported method S3Url.Download should have comment or be unexported (golint)
    • Line 14: warning: exported method S3Url.Upload should have comment or be unexported (golint)
    • iokit/zip.go
    • Line 14: warning: exported function ZipFile should have comment or be unexported (golint)
    • Line 55: warning: exported function Zip should have comment or be unexported (golint)
    • iokit/gcp/url.go
    • Line 8: warning: exported function Download should have comment or be unexported (golint)
    • Line 26: warning: exported function Upload should have comment or be unexported (golint)
    • iokit/cache.go
    • Line 14: warning: exported var FullCacheDir should have comment or be unexported (golint)
    • Line 28: warning: exported function CacheDir should have comment or be unexported (golint)
    • Line 34: warning: exported function CacheFile should have comment or be unexported (golint)
    • Line 40: warning: exported type Cache should have comment or be unexported (golint)
    • Line 42: warning: exported method Cache.File should have comment or be unexported (golint)
    • Line 50: warning: exported method Cache.Remove should have comment or be unexported (golint)
    • Line 59: warning: exported method Cache.Defined should have comment or be unexported (golint)
    • Line 63: warning: exported method Cache.Exists should have comment or be unexported (golint)
    • Line 72: warning: exported method Cache.Path should have comment or be unexported (golint)
    • Line 76: warning: exported method Cache.Open should have comment or be unexported (golint)
    • Line 80: warning: exported method Cache.LuckyOpen should have comment or be unexported (golint)
    • iokit/urlgs.go
    • Line 8: warning: exported type GsUrl should have comment or be unexported (golint)
    • Line 10: warning: exported method GsUrl.Download should have comment or be unexported (golint)
    • Line 14: warning: exported method GsUrl.Upload should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!