Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
pgclimb/formats/csv.go
- Line 11: warning: exported type CsvFormat should have comment or be unexported (golint)
- Line 17: warning: exported function NewCsvFormat should have comment or be unexported (golint)
- Line 27: warning: exported method CsvFormat.WriteHeader should have comment or be unexported (golint)
- Line 31: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 36: warning: exported method CsvFormat.Flush should have comment or be unexported (golint)
- Line 38: warning: exported method CsvFormat.WriteRow should have comment or be unexported (golint)
-
pgclimb/formats/inserts.go
- Line 1: warning: package comment should be of the form "Package formats ..." (golint)
- Line 28: warning: exported type InsertsFormat should have comment or be unexported (golint)
- Line 36: warning: exported function NewInsertsFormat should have comment or be unexported (golint)
- Line 45: warning: exported method InsertsFormat.WriteHeader should have comment or be unexported (golint)
- Line 50: warning: exported method InsertsFormat.Flush should have comment or be unexported (golint)
- Line 52: warning: exported method InsertsFormat.WriteRow should have comment or be unexported (golint)
-
pgclimb/formats/json.go
- Line 8: warning: exported type JSONArrayFormat should have comment or be unexported (golint)
- Line 16: warning: exported function NewJSONArrayFormat should have comment or be unexported (golint)
- Line 20: warning: comment on exported method JSONArrayFormat.WriteHeader should be of the form "WriteHeader ..." (golint)
- Line 25: warning: exported method JSONArrayFormat.Flush should have comment or be unexported (golint)
- Line 30: warning: exported method JSONArrayFormat.WriteRow should have comment or be unexported (golint)
-
pgclimb/formats/jsonlines.go
- Line 8: warning: exported type JSONLinesFormat should have comment or be unexported (golint)
- Line 12: warning: exported function NewJSONLinesFormat should have comment or be unexported (golint)
- Line 16: warning: comment on exported method JSONLinesFormat.WriteHeader should be of the form "WriteHeader ..." (golint)
- Line 21: warning: exported method JSONLinesFormat.Flush should have comment or be unexported (golint)
- Line 23: warning: exported method JSONLinesFormat.WriteRow should have comment or be unexported (golint)
-
pgclimb/formats/xml.go
- Line 11: warning: exported type XMLFormat should have comment or be unexported (golint)
- Line 15: warning: exported function NewXMLFormat should have comment or be unexported (golint)
- Line 21: warning: comment on exported method XMLFormat.WriteHeader should be of the form "WriteHeader ..." (golint)
- Line 26: warning: exported method XMLFormat.Flush should have comment or be unexported (golint)
- Line 28: warning: exported method XMLFormat.WriteRow should have comment or be unexported (golint)
-
pgclimb/pg/postgres.go
- Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
- Line 12: warning: comment on exported function Connect should be of the form "Connect ..." (golint)
- Line 27: warning: comment on exported function ParseConnStr should be of the form "ParseConnStr ..." (golint)
-
pgclimb/formats/export.go
- Line 5: warning: comment on exported type DataFormat should be of the form "DataFormat ..." (with optional leading article) (golint)
- Line 12: warning: exported function Export should have comment or be unexported (golint)
-
pgclimb/formats/template.go
- Line 8: warning: exported type TemplateFormat should have comment or be unexported (golint)
- Line 14: warning: exported function NewTemplateFormat should have comment or be unexported (golint)
- Line 23: warning: exported method TemplateFormat.Flush should have comment or be unexported (golint)
- Line 28: warning: exported method TemplateFormat.WriteHeader should have comment or be unexported (golint)
- Line 32: warning: exported method TemplateFormat.WriteRow should have comment or be unexported (golint)
-
pgclimb/formats/xlsx.go
- Line 11: warning: exported type XlsxFormat should have comment or be unexported (golint)
- Line 18: warning: exported function NewXlsxFormat should have comment or be unexported (golint)
- Line 43: warning: exported method XlsxFormat.Flush should have comment or be unexported (golint)
- Line 46: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 51: warning: exported method XlsxFormat.WriteHeader should have comment or be unexported (golint)
- Line 61: warning: exported method XlsxFormat.WriteRow should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!