Preparing report...

Report for github.com/sait/tddexample

A    Great!    Found 5 issues across 5 files

Tweet

gofmt60%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint60%

Golint is a linter for Go source code.

    • tddexample/models/nota.go
    • Line 7: warning: comment on exported type Nota should be of the form "Nota ..." (with optional leading article) (golint)
    • Line 14: warning: comment on exported type Partida should be of the form "Partida ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported method Nota.SetCliente should be of the form "SetCliente ..." (golint)
    • Line 28: warning: comment on exported method Nota.GetCliente should be of the form "GetCliente ..." (golint)
    • Line 33: warning: comment on exported method Nota.GetPartida should be of the form "GetPartida ..." (golint)
    • Line 44: warning: comment on exported method Nota.AddPartida should be of the form "AddPartida ..." (golint)
    • Line 51: warning: comment on exported method Nota.UpdPartida should be of the form "UpdPartida ..." (golint)
    • Line 65: warning: comment on exported method Nota.DltPartida should be of the form "DltPartida ..." (golint)
    • Line 77: warning: comment on exported method Nota.CountPartidas should be of the form "CountPartidas ..." (golint)
    • Line 82: warning: comment on exported method Nota.Exist should be of the form "Exist ..." (golint)
    • Line 93: warning: comment on exported method Nota.Calcular should be of the form "Calcular ..." (golint)
    • Line 103: warning: comment on exported method Nota.GetTotal should be of the form "GetTotal ..." (golint)
    • Line 108: warning: comment on exported method Partida.GetImporte should be of the form "GetImporte ..." (golint)
    • Line 113: warning: comment on exported method Partida.Calcular should be of the form "Calcular ..." (golint)
    • Line 121: warning: comment on exported method Nota.ToJSON should be of the form "ToJSON ..." (golint)
    • Line 122: warning: error should be the last type when returning multiple items (golint)
    • tddexample/models/pseudocfdi.go
    • Line 11: warning: comment on exported type CFDI should be of the form "CFDI ..." (with optional leading article) (golint)
    • Line 21: warning: comment on exported type Receptor should be of the form "Receptor ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported type Conceptos should be of the form "Conceptos ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported type Concepto should be of the form "Concepto ..." (with optional leading article) (golint)
    • Line 42: warning: comment on exported type Complemento should be of the form "Complemento ..." (with optional leading article) (golint)
    • Line 48: warning: comment on exported type TimbreFiscalDigital should be of the form "TimbreFiscalDigital ..." (with optional leading article) (golint)
    • Line 59: warning: comment on exported method Nota.ToCFDI should be of the form "ToCFDI ..." (golint)
    • Line 82: warning: comment on exported method CFDI.ToXML should be of the form "ToXML ..." (golint)
    • Line 91: warning: comment on exported method CFDI.Timbrar should be of the form "Timbrar ..." (golint)
    • Line 109: warning: comment on exported method CFDI.ToFile should be of the form "ToFile ..." (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!


misspell0%

Misspell Finds commonly misspelled English words

    • tddexample/models/pseudocfdi_test.go
    • Line 19: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • Line 20: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • Line 43: warning: "attributo" is a misspelling of "attribution" (misspell)
    • Line 47: warning: "attributo" is a misspelling of "attribution" (misspell)
    • Line 66: warning: "descripcion" is a misspelling of "description" (misspell)
    • Line 67: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • Line 78: warning: "descripcion" is a misspelling of "description" (misspell)
    • Line 79: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • tddexample/main.go
    • Line 29: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • Line 40: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • tddexample/models/nota.go
    • Line 17: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • Line 93: warning: "calcular" is a misspelling of "calculator" (misspell)
    • Line 94: warning: "Calcular" is a misspelling of "Calculator" (misspell)
    • Line 113: warning: "calcular" is a misspelling of "calculator" (misspell)
    • Line 114: warning: "Calcular" is a misspelling of "Calculator" (misspell)
    • tddexample/models/nota_test.go
    • Line 53: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • Line 75: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • Line 91: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • Line 106: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • tddexample/models/pseudocfdi.go
    • Line 17: warning: "Conceptos" is a misspelling of "Concepts" (misspell)
    • Line 17: warning: "Conceptos" is a misspelling of "Concepts" (misspell)
    • Line 17: warning: "Conceptos" is a misspelling of "Concepts" (misspell)
    • Line 26: warning: "conceptos" is a misspelling of "concepts" (misspell)
    • Line 27: warning: "Conceptos" is a misspelling of "Concepts" (misspell)
    • Line 29: warning: "Conceptos" is a misspelling of "Concepts" (misspell)
    • Line 36: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • Line 36: warning: "Descripcion" is a misspelling of "Description" (misspell)
    • Line 67: warning: "conceptos" is a misspelling of "concepts" (misspell)
    • Line 67: warning: "Conceptos" is a misspelling of "Concepts" (misspell)
    • Line 77: warning: "conceptos" is a misspelling of "concepts" (misspell)