Preparing report...

Report for github.com/chapzin/GoSped

A    Great!    Found 37 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!


gocyclo92%

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.

    • GoSped/Controller/SpedController.go
    • Line 35: warning: cyclomatic complexity 44 of function (*SpedController).addDB() is high (> 15) (gocyclo)
    • Line 226: warning: cyclomatic complexity 25 of function (*SpedController).validacoes() is high (> 15) (gocyclo)

golint2%

Golint is a linter for Go source code.

    • GoSped/Controller/ProcessamentoXmls.go
    • Line 1: warning: don't use MixedCaps in package name; Controller should be controller (golint)
    • Line 13: warning: exported function DeleteArquivoVazio should have comment or be unexported (golint)
    • Line 41: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 47: warning: exported function ProcessarResEvento should have comment or be unexported (golint)
    • Line 59: warning: exported function ProcessarCteProc should have comment or be unexported (golint)
    • Line 93: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 106: warning: exported function ProcessarNfeProcNfeProc should have comment or be unexported (golint)
    • Line 158: warning: exported function ProcessarEventoCte should have comment or be unexported (golint)
    • GoSped/Model/ResEvento.go
    • Line 1: warning: don't use MixedCaps in package name; Model should be model (golint)
    • Line 5: warning: exported type ResEvento should have comment or be unexported (golint)
    • GoSped/Dao/DaoUtil.go
    • Line 1: warning: don't use MixedCaps in package name; Dao should be dao (golint)
    • Line 4: warning: exported const COLLECTION0000 should have comment (or a comment on this block) or be unexported (golint)
    • GoSped/Model/NfeProc.go
    • Line 1: warning: don't use MixedCaps in package name; Model should be model (golint)
    • Line 5: warning: exported type NfeProc should have comment or be unexported (golint)
    • GoSped/Utilidades/SistemaArquivos.go
    • Line 1: warning: don't use MixedCaps in package name; Utilidades should be utilidades (golint)
    • Line 29: warning: exported function DiretorioVazio should have comment or be unexported (golint)
    • Line 79: warning: comment on exported function MoverArquivos should be of the form "MoverArquivos ..." (golint)
    • GoSped/Model/CteProc.go
    • Line 1: warning: don't use MixedCaps in package name; Model should be model (golint)
    • Line 5: warning: exported type CteProc should have comment or be unexported (golint)
    • GoSped/Model/ProcEventoNfe.go
    • Line 1: warning: don't use MixedCaps in package name; Model should be model (golint)
    • Line 5: warning: exported type ProcEventoNFe should have comment or be unexported (golint)
    • GoSped/Dao/DaoXml.go
    • Line 1: warning: don't use MixedCaps in package name; Dao should be dao (golint)
    • Line 10: warning: comment on exported function InserirNfeProc should be of the form "InserirNfeProc ..." (golint)
    • Line 18: warning: exported function InserirNfeProcSemValidade should have comment or be unexported (golint)
    • Line 25: warning: exported function InserirRetornoNfeInutilizada should have comment or be unexported (golint)
    • Line 32: warning: exported function InserirEventoNfe should have comment or be unexported (golint)
    • Line 39: warning: exported function InserirEventoCte should have comment or be unexported (golint)
    • Line 46: warning: exported function InserirCteProc should have comment or be unexported (golint)
    • Line 53: warning: exported function InserirResEvento should have comment or be unexported (golint)
    • GoSped/Model/Nfe.go
    • Line 1: warning: don't use MixedCaps in package name; Model should be model (golint)
    • Line 5: warning: exported type NFe should have comment or be unexported (golint)
    • GoSped/Model/ProcEventoCte.go
    • Line 1: warning: don't use MixedCaps in package name; Model should be model (golint)
    • Line 5: warning: exported type ProcEventoCTe should have comment or be unexported (golint)
    • GoSped/Model/RetInutNfe.go
    • Line 1: warning: don't use MixedCaps in package name; Model should be model (golint)
    • Line 5: warning: exported type RetInutNfe 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!


misspell89%

Misspell Finds commonly misspelled English words