Preparing report...

Report for github.com/usmanhalalit/gost

A+    Excellent!    Found 8 issues across 11 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!


golint27%

Golint is a linter for Go source code.

    • gost/local/directory.go
    • Line 10: warning: exported type Directory should have comment or be unexported (golint)
    • Line 14: warning: exported method Directory.File should have comment or be unexported (golint)
    • Line 24: warning: exported method Directory.Directory should have comment or be unexported (golint)
    • Line 35: warning: exported method Directory.Create should have comment or be unexported (golint)
    • Line 39: warning: exported method Directory.Files should have comment or be unexported (golint)
    • Line 61: warning: exported method Directory.Directories should have comment or be unexported (golint)
    • gost/local/file.go
    • Line 13: warning: exported type File should have comment or be unexported (golint)
    • Line 18: warning: exported method File.ReadString should have comment or be unexported (golint)
    • Line 23: warning: exported method File.WriteString should have comment or be unexported (golint)
    • Line 27: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 32: warning: exported method File.Directory should have comment or be unexported (golint)
    • Line 59: warning: exported method File.Copy should have comment or be unexported (golint)
    • Line 63: warning: exported method File.CopyTo should have comment or be unexported (golint)
    • Line 89: warning: exported method File.Close should have comment or be unexported (golint)
    • gost/local/local.go
    • Line 13: warning: exported type Config should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • gost/local/object.go
    • Line 8: warning: exported type Object should have comment or be unexported (golint)
    • Line 13: warning: exported method Object.GetPath should have comment or be unexported (golint)
    • Line 21: warning: exported method Object.Exists should have comment or be unexported (golint)
    • Line 28: warning: exported method Object.Delete should have comment or be unexported (golint)
    • Line 32: warning: exported method Object.Stat should have comment or be unexported (golint)
    • gost/s3/directory.go
    • Line 10: warning: exported type Directory should have comment or be unexported (golint)
    • Line 15: warning: exported method Directory.File should have comment or be unexported (golint)
    • Line 23: warning: exported method Directory.GetPath should have comment or be unexported (golint)
    • Line 27: warning: exported method Directory.Directory should have comment or be unexported (golint)
    • Line 36: warning: exported method Directory.Files should have comment or be unexported (golint)
    • Line 65: warning: exported method Directory.Directories should have comment or be unexported (golint)
    • Line 121: warning: exported method Directory.Exists should have comment or be unexported (golint)
    • Line 131: warning: exported method Directory.Create should have comment or be unexported (golint)
    • Line 142: warning: exported method Directory.Delete should have comment or be unexported (golint)
    • Line 167: warning: exported method Directory.Stat should have comment or be unexported (golint)
    • gost/s3/file.go
    • Line 16: warning: exported type File should have comment or be unexported (golint)
    • Line 22: warning: exported method File.Directory should have comment or be unexported (golint)
    • Line 29: warning: exported method File.GetPath should have comment or be unexported (golint)
    • Line 33: warning: exported method File.ReadString should have comment or be unexported (golint)
    • Line 38: warning: exported method File.WriteString should have comment or be unexported (golint)
    • Line 42: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 47: warning: exported method File.Delete should have comment or be unexported (golint)
    • Line 57: warning: exported method File.Exists should have comment or be unexported (golint)
    • Line 62: warning: exported method File.Stat should have comment or be unexported (golint)
    • Line 105: warning: exported method File.Close should have comment or be unexported (golint)
    • Line 109: warning: exported method File.GetSignedUrl should have comment or be unexported (golint)
    • Line 121: warning: exported method File.Copy should have comment or be unexported (golint)
    • Line 125: warning: exported method File.CopyTo should have comment or be unexported (golint)
    • gost/s3/s3.go
    • Line 13: warning: exported type Filesystem should have comment or be unexported (golint)
    • Line 18: warning: exported type Config should have comment or be unexported (golint)
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • Line 64: warning: comment on exported function SetService should be of the form "SetService ..." (golint)
    • gost/gost.go
    • Line 1: warning: package comment should be of the form "Package gost ..." (golint)
    • Line 14: warning: exported type Directory should have comment or be unexported (golint)
    • Line 37: warning: exported type File should have comment or be unexported (golint)
    • Line 62: warning: exported type FileInfo 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!