Preparing report...

Report for github.com/fsamin/go-repo

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


golint57%

Golint is a linter for Go source code.

    • go-repo/bare.go
    • Line 83: warning: exported method BareRepo.ListFiles should have comment or be unexported (golint)
    • Line 95: warning: exported method BareRepo.FileSize should have comment or be unexported (golint)
    • Line 117: warning: exported method BareRepo.ReadFile should have comment or be unexported (golint)
    • Line 125: warning: exported method BareRepo.FetchURL should have comment or be unexported (golint)
    • Line 129: warning: exported method BareRepo.Name should have comment or be unexported (golint)
    • Line 133: warning: exported method BareRepo.Path should have comment or be unexported (golint)
    • Line 137: warning: exported method BareRepo.CommitsBetween should have comment or be unexported (golint)
    • Line 141: warning: exported method BareRepo.DefaultBranch should have comment or be unexported (golint)
    • Line 145: warning: exported method BareRepo.Tags should have comment or be unexported (golint)
    • go-repo/repo.go
    • Line 235: warning: exported method Repo.CommitsBetween should have comment or be unexported (golint)
    • Line 391: warning: exported method Repo.Diff should have comment or be unexported (golint)
    • Line 674: warning: exported method Repo.CurrentSnapshot should have comment or be unexported (golint)
    • Line 682: warning: exported method Repo.HasDiverged should have comment or be unexported (golint)
    • Line 693: warning: exported method Repo.HookList should have comment or be unexported (golint)
    • Line 705: warning: exported method Repo.DeleteHook should have comment or be unexported (golint)
    • Line 710: warning: exported method Repo.WriteHook should have comment or be unexported (golint)
    • Line 795: warning: exported method Repo.Tags should have comment or be unexported (golint)
    • go-repo/types.go
    • Line 30: warning: exported type Tag should have comment or be unexported (golint)
    • Line 35: warning: exported type File should have comment or be unexported (golint)
    • Line 42: warning: exported type FileDiffDetail should have comment or be unexported (golint)
    • Line 46: warning: exported method FileDiffDetail.Matches should have comment or be unexported (golint)
    • Line 68: warning: exported type Hunk should have comment or be unexported (golint)
    • Line 104: warning: exported type BareRepo 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!


misspell85%

Misspell Finds commonly misspelled English words