codeclimate/test-reporter

View on GitHub
env/git.go

Summary

Maintainability
A
35 mins
Test Coverage

Function findGitInfo has 5 return statements (exceeds 4 allowed).
Open

func findGitInfo() (Git, error) {
    g := Git{}
    var err error

    g.Branch = findVar(gitBranchVars)
Severity: Major
Found in env/git.go - About 35 mins to fix

    exported function GitSHA should have comment or be unexported
    Open

    func GitSHA(path string) (string, error) {
    Severity: Minor
    Found in env/git.go by golint

    exported var GitBlob should have comment or be unexported
    Open

    var GitBlob = func(path string, commit *object.Commit) (string, error) {
    Severity: Minor
    Found in env/git.go by golint

    exported type Git should have comment or be unexported
    Open

    type Git struct {
    Severity: Minor
    Found in env/git.go by golint

    exported function GetHead should have comment or be unexported
    Open

    func GetHead() (*object.Commit, error) {
    Severity: Minor
    Found in env/git.go by golint

    There are no issues that match your filters.

    Category
    Status