Preparing report...

Report for github.com/chapzin/parse-efd-fiscal

A    Great!    Found 34 issues across 35 files

Tweet

gofmt97%

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!


gocyclo91%

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.


golint5%

Golint is a linter for Go source code.

    • parse-efd-fiscal/Models/BlocoC/RegC490.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoC should be blococ (golint)
    • Line 10: warning: exported type RegC490 should have comment or be unexported (golint)
    • Line 25: warning: comment on exported method RegC490.TableName should be of the form "TableName ..." (golint)
    • Line 30: warning: comment on exported type RegC490Sped should be of the form "RegC490Sped ..." (with optional leading article) (golint)
    • Line 40: warning: exported method RegC490Sped.GetRegC490 should have comment or be unexported (golint)
    • Line 57: warning: comment on exported function CreateRegC490 should be of the form "CreateRegC490 ..." (golint)
    • parse-efd-fiscal/Models/Inventario.go
    • Line 1: warning: don't use MixedCaps in package name; Models should be models (golint)
    • Line 5: warning: comment on exported type Inventario should be of the form "Inventario ..." (with optional leading article) (golint)
    • parse-efd-fiscal/Models/Bloco0/Reg0000.go
    • Line 1: warning: don't use MixedCaps in package name; Bloco0 should be bloco0 (golint)
    • Line 11: warning: exported type Reg0000 should have comment or be unexported (golint)
    • Line 30: warning: exported method Reg0000.TableName should have comment or be unexported (golint)
    • Line 34: warning: comment on exported type Reg0000Sped should be of the form "Reg0000Sped ..." (with optional leading article) (golint)
    • Line 43: warning: exported method Reg0000Sped.GetReg0000 should have comment or be unexported (golint)
    • Line 65: warning: exported function CreateReg0000 should have comment or be unexported (golint)
    • parse-efd-fiscal/Models/Bloco0/Reg0150.go
    • Line 1: warning: don't use MixedCaps in package name; Bloco0 should be bloco0 (golint)
    • Line 11: warning: exported type Reg0150 should have comment or be unexported (golint)
    • Line 31: warning: exported method Reg0150.TableName should have comment or be unexported (golint)
    • Line 39: warning: comment on exported type Reg0150Sped should be of the form "Reg0150Sped ..." (with optional leading article) (golint)
    • Line 45: warning: comment on exported method Reg0150Sped.GetReg0150 should be of the form "GetReg0150 ..." (golint)
    • Line 68: warning: comment on exported type Reg0150Xml should be of the form "Reg0150Xml ..." (with optional leading article) (golint)
    • Line 73: warning: comment on exported method Reg0150Xml.GetReg0150 should be of the form "GetReg0150 ..." (golint)
    • Line 96: warning: exported function CreateReg0150 should have comment or be unexported (golint)
    • parse-efd-fiscal/Models/BlocoC/RegC405.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoC should be blococ (golint)
    • Line 12: warning: exported type RegC405 should have comment or be unexported (golint)
    • Line 26: warning: exported method RegC405.TableName should have comment or be unexported (golint)
    • Line 30: warning: comment on exported type RegC405Sped should be of the form "RegC405Sped ..." (with optional leading article) (golint)
    • Line 40: warning: exported method RegC405Sped.GetRegC405 should have comment or be unexported (golint)
    • Line 56: warning: exported function CreateRegC405 should have comment or be unexported (golint)
    • parse-efd-fiscal/tools/SpedConvert.go
    • Line 13: warning: comment on exported function ConvInt should be of the form "ConvInt ..." (golint)
    • Line 22: warning: comment on exported function ConvXml should be of the form "ConvXml ..." (golint)
    • Line 40: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 48: warning: comment on exported function ConvFloat should be of the form "ConvFloat ..." (golint)
    • Line 57: warning: exported function FloatToString should have comment or be unexported (golint)
    • Line 61: warning: exported function FloatToStringSped should have comment or be unexported (golint)
    • Line 65: warning: exported function AdicionaDigitosCodigo should have comment or be unexported (golint)
    • Line 87: warning: comment on exported function ConvertDataNull should be of the form "ConvertDataNull ..." (golint)
    • Line 93: warning: comment on exported function ConvertData should be of the form "ConvertData ..." (golint)
    • Line 103: warning: comment on exported function ConvertDataXml should be of the form "ConvertDataXml ..." (golint)
    • parse-efd-fiscal/config/config.go
    • Line 11: warning: exported var Propriedades should have comment or be unexported (golint)
    • Line 14: warning: exported type ConfigInterface should have comment or be unexported (golint)
    • Line 19: warning: exported type Configurador should have comment or be unexported (golint)
    • Line 36: warning: exported method Configurador.GetConfiguracoes should have comment or be unexported (golint)
    • Line 47: warning: exported function InicializaConfiguracoes should have comment or be unexported (golint)
    • parse-efd-fiscal/SpedRead/SpedRead.go
    • Line 1: warning: don't use MixedCaps in package name; SpedRead should be spedread (golint)
    • Line 20: warning: comment on exported function RecursiveSpeds should be of the form "RecursiveSpeds ..." (golint)
    • Line 56: warning: exported function InsertXml should have comment or be unexported (golint)
    • Line 162: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 215: warning: exported function InsertSped should have comment or be unexported (golint)
    • Line 228: warning: exported function ProcessRows should have comment or be unexported (golint)
    • parse-efd-fiscal/Models/BlocoC/RegC170.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoC should be blococ (golint)
    • Line 12: warning: exported type RegC170 should have comment or be unexported (golint)
    • Line 58: warning: exported method RegC170.TableName should have comment or be unexported (golint)
    • Line 62: warning: comment on exported type RegC170Sped should be of the form "RegC170Sped ..." (with optional leading article) (golint)
    • Line 74: warning: exported method RegC170Sped.GetRegC170 should have comment or be unexported (golint)
    • Line 123: warning: exported function CreateRegC170 should have comment or be unexported (golint)
    • parse-efd-fiscal/Models/BlocoC/RegC400.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoC should be blococ (golint)
    • Line 11: warning: exported type RegC400 should have comment or be unexported (golint)
    • Line 23: warning: exported method RegC400.TableName should have comment or be unexported (golint)
    • Line 27: warning: comment on exported type RegC400Sped should be of the form "RegC400Sped ..." (with optional leading article) (golint)
    • Line 37: warning: exported method RegC400Sped.GetRegC400 should have comment or be unexported (golint)
    • Line 51: warning: exported function CreateRegC400 should have comment or be unexported (golint)
    • parse-efd-fiscal/Controllers/InventarioController.go
    • Line 1: warning: don't use MixedCaps in package name; Controllers should be controllers (golint)
    • Line 17: warning: exported function ProcessarFatorConversao should have comment or be unexported (golint)
    • Line 40: warning: exported function DeletarItensNotasCanceladas should have comment or be unexported (golint)
    • Line 63: warning: exported function PopularReg0200 should have comment or be unexported (golint)
    • Line 84: warning: exported function PopularItensXmls should have comment or be unexported (golint)
    • Line 105: warning: exported function PopularInventarios should have comment or be unexported (golint)
    • Line 155: warning: exported function PopularEntradas should have comment or be unexported (golint)
    • Line 177: warning: don't use underscores in Go names; var qtd_tot should be qtdTot (golint)
    • Line 178: warning: don't use underscores in Go names; var vl_tot should be vlTot (golint)
    • Line 220: warning: exported function PopularSaidas should have comment or be unexported (golint)
    • Line 245: warning: don't use underscores in Go names; var qtd_saida should be qtdSaida (golint)
    • Line 246: warning: don't use underscores in Go names; var vl_tot_saida should be vlTotSaida (golint)
    • Line 293: warning: comment on exported function ProcessarDiferencas should be of the form "ProcessarDiferencas ..." (golint)
    • Line 456: warning: exported function ExcelAdd should have comment or be unexported (golint)
    • Line 464: warning: exported function ColunaAdd should have comment or be unexported (golint)
    • Line 469: warning: exported function ColunaAddFloat should have comment or be unexported (golint)
    • Line 473: warning: exported function ColunaAddFloatDif should have comment or be unexported (golint)
    • Line 489: warning: exported function ExcelItens should have comment or be unexported (golint)
    • Line 557: warning: exported function ExcelMenu should have comment or be unexported (golint)
    • parse-efd-fiscal/Models/BlocoC/RegC470.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoC should be blococ (golint)
    • Line 10: warning: exported type RegC470 should have comment or be unexported (golint)
    • Line 28: warning: exported method RegC470.TableName should have comment or be unexported (golint)
    • Line 32: warning: exported type RegC470Sped should have comment or be unexported (golint)
    • Line 42: warning: exported method RegC470Sped.GetRegC470 should have comment or be unexported (golint)
    • Line 63: warning: comment on exported function CreateRegC470 should be of the form "CreateRegC470 ..." (golint)
    • parse-efd-fiscal/Models/Bloco0/Reg0220.go
    • Line 1: warning: don't use MixedCaps in package name; Bloco0 should be bloco0 (golint)
    • Line 11: warning: exported type Reg0220 should have comment or be unexported (golint)
    • Line 24: warning: exported method Reg0220.TableName should have comment or be unexported (golint)
    • Line 28: warning: comment on exported type Reg0220Sped should be of the form "Reg0220Sped ..." (with optional leading article) (golint)
    • Line 36: warning: exported method Reg0220Sped.GetReg0220 should have comment or be unexported (golint)
    • Line 56: warning: exported function CreateReg0220 should have comment or be unexported (golint)
    • parse-efd-fiscal/Models/BlocoH/RegH005.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoH should be blocoh (golint)
    • Line 10: warning: comment on exported type RegH005 should be of the form "RegH005 ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported method RegH005.TableName should be of the form "TableName ..." (golint)
    • Line 28: warning: comment on exported type RegH005Sped should be of the form "RegH005Sped ..." (with optional leading article) (golint)
    • Line 38: warning: comment on exported method RegH005Sped.GetRegH005 should be of the form "GetRegH005 ..." (golint)
    • Line 52: warning: comment on exported function CreateRegH005 should be of the form "CreateRegH005 ..." (golint)
    • parse-efd-fiscal/Models/BlocoC/RegC465.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoC should be blococ (golint)
    • Line 9: warning: exported type RegC465 should have comment or be unexported (golint)
    • Line 19: warning: exported method RegC465.TableName should have comment or be unexported (golint)
    • Line 23: warning: exported type RegC465Sped should have comment or be unexported (golint)
    • Line 32: warning: exported method RegC465Sped.GetRegC465 should have comment or be unexported (golint)
    • Line 44: warning: comment on exported function CreateRegC465 should be of the form "CreateRegC465 ..." (golint)
    • parse-efd-fiscal/Models/BlocoC/RegC460.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoC should be blococ (golint)
    • Line 10: warning: exported type RegC460 should have comment or be unexported (golint)
    • Line 27: warning: exported method RegC460.TableName should have comment or be unexported (golint)
    • Line 31: warning: exported type RegC460Sped should have comment or be unexported (golint)
    • Line 40: warning: exported method RegC460Sped.GetRegC460 should have comment or be unexported (golint)
    • Line 59: warning: comment on exported function CreateRegC460 should be of the form "CreateRegC460 ..." (golint)
    • parse-efd-fiscal/SpedDB/SchemaInventario.go
    • Line 1: warning: don't use MixedCaps in package name; SpedDB should be speddb (golint)
    • Line 9: warning: comment on exported function CreateSchemaInventario should be of the form "CreateSchemaInventario ..." (golint)
    • Line 15: warning: comment on exported function DropSchemaInventario should be of the form "DropSchemaInventario ..." (golint)
    • parse-efd-fiscal/Models/Bloco0/Reg0190.go
    • Line 1: warning: don't use MixedCaps in package name; Bloco0 should be bloco0 (golint)
    • Line 9: warning: comment on exported type Reg0190 should be of the form "Reg0190 ..." (with optional leading article) (golint)
    • Line 21: warning: exported method Reg0190.TableName should have comment or be unexported (golint)
    • Line 29: warning: comment on exported type Reg0190Sped should be of the form "Reg0190Sped ..." (with optional leading article) (golint)
    • Line 35: warning: exported method Reg0190Sped.GetReg0190 should have comment or be unexported (golint)
    • Line 47: warning: exported type Reg0190Xml should have comment or be unexported (golint)
    • Line 51: warning: exported method Reg0190Xml.GetReg0190 should have comment or be unexported (golint)
    • Line 63: warning: exported function CreateReg0190 should have comment or be unexported (golint)
    • parse-efd-fiscal/Models/Bloco0/Reg0200.go
    • Line 1: warning: don't use MixedCaps in package name; Bloco0 should be bloco0 (golint)
    • Line 10: warning: comment on exported type Reg0200 should be of the form "Reg0200 ..." (with optional leading article) (golint)
    • Line 30: warning: exported method Reg0200.TableName should have comment or be unexported (golint)
    • Line 34: warning: comment on exported type Reg0200Sped should be of the form "Reg0200Sped ..." (with optional leading article) (golint)
    • Line 45: warning: exported method Reg0200Sped.GetReg0200 should have comment or be unexported (golint)
    • Line 68: warning: exported function CreateReg0200 should have comment or be unexported (golint)
    • parse-efd-fiscal/Models/BlocoH/RegH010.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoH should be blocoh (golint)
    • Line 10: warning: comment on exported type RegH010 should be of the form "RegH010 ..." (with optional leading article) (golint)
    • Line 31: warning: comment on exported method RegH010.TableName should be of the form "TableName ..." (golint)
    • Line 36: warning: comment on exported type RegH010Sped should be of the form "RegH010Sped ..." (with optional leading article) (golint)
    • Line 48: warning: comment on exported method RegH010Sped.GetRegH010 should be of the form "GetRegH010 ..." (golint)
    • Line 71: warning: comment on exported function CreateRegH010 should be of the form "CreateRegH010 ..." (golint)
    • parse-efd-fiscal/Models/BlocoC/RegC100.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoC should be blococ (golint)
    • Line 11: warning: comment on exported type RegC100 should be of the form "RegC100 ..." (with optional leading article) (golint)
    • Line 49: warning: comment on exported method RegC100.TableName should be of the form "TableName ..." (golint)
    • Line 54: warning: comment on exported type RegC100Sped should be of the form "RegC100Sped ..." (with optional leading article) (golint)
    • Line 64: warning: comment on exported method RegC100Sped.GetRegC100 should be of the form "GetRegC100 ..." (golint)
    • Line 103: warning: comment on exported function CreateRegC100 should be of the form "CreateRegC100 ..." (golint)
    • parse-efd-fiscal/SpedExec/SpedExec.go
    • Line 1: warning: don't use MixedCaps in package name; SpedExec should be spedexec (golint)
    • Line 11: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 15: warning: exported type Regs should have comment or be unexported (golint)
    • Line 23: warning: exported function TrataLinha should have comment or be unexported (golint)
    • parse-efd-fiscal/Models/BlocoC/RegC420.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoC should be blococ (golint)
    • Line 10: warning: comment on exported type RegC420 should be of the form "RegC420 ..." (with optional leading article) (golint)
    • Line 24: warning: comment on exported method RegC420.TableName should be of the form "TableName ..." (golint)
    • Line 29: warning: comment on exported type RegC420Sped should be of the form "RegC420Sped ..." (with optional leading article) (golint)
    • Line 39: warning: exported method RegC420Sped.GetRegC420 should have comment or be unexported (golint)
    • Line 54: warning: comment on exported function CreateRegC420 should be of the form "CreateRegC420 ..." (golint)
    • parse-efd-fiscal/Models/BlocoC/RegC425.go
    • Line 1: warning: don't use MixedCaps in package name; BlocoC should be blococ (golint)
    • Line 12: warning: exported type RegC425 should have comment or be unexported (golint)
    • Line 26: warning: exported method RegC425.TableName should have comment or be unexported (golint)
    • Line 30: warning: comment on exported type RegC425Sped should be of the form "RegC425Sped ..." (with optional leading article) (golint)
    • Line 41: warning: exported method RegC425Sped.GetRegC425 should have comment or be unexported (golint)
    • Line 58: warning: exported function CreateRegC425 should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.

    • parse-efd-fiscal/SpedRead/SpedRead.go
    • Line 58: warning: ineffectual assignment to err (ineffassign)
    • Line 86: warning: ineffectual assignment to err (ineffassign)
    • Line 87: warning: ineffectual assignment to err (ineffassign)
    • Line 88: warning: ineffectual assignment to err (ineffassign)
    • Line 89: warning: ineffectual assignment to err (ineffassign)
    • Line 90: warning: ineffectual assignment to err (ineffassign)
    • Line 91: warning: ineffectual assignment to err (ineffassign)
    • Line 92: warning: ineffectual assignment to err (ineffassign)
    • Line 93: warning: ineffectual assignment to err (ineffassign)
    • Line 94: warning: ineffectual assignment to err (ineffassign)
    • Line 216: warning: ineffectual assignment to err (ineffassign)

misspell88%

Misspell Finds commonly misspelled English words

    • parse-efd-fiscal/Controllers/InventarioController.go
    • Line 89: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 90: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 107: warning: "Inventario" is a misspelling of "Inventor" (misspell)
    • Line 151: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 411: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 420: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 425: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 430: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 437: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 452: warning: "inventario" is a misspelling of "inventor" (misspell)
    • parse-efd-fiscal/main.go
    • Line 22: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 22: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 22: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 25: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 61: warning: "inventario" is a misspelling of "inventor" (misspell)
    • Line 67: warning: "Inventario" is a misspelling of "Inventor" (misspell)
    • Line 127: warning: "Inventario" is a misspelling of "Inventor" (misspell)