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!
Golint is a linter for Go source code.
-
snowplow-golang-tracker/tracker/constants.go
- Line 17: warning: exported const TRACKER_VERSION should have comment (or a comment on this block) or be unexported (golint)
- Line 19: warning: comment on exported const POST_PROTOCOL_VENDOR should be of the form "POST_PROTOCOL_VENDOR ..." (golint)
- Line 24: warning: comment on exported const GET_PROTOCOL_PATH should be of the form "GET_PROTOCOL_PATH ..." (golint)
- Line 27: warning: comment on exported const SCHEMA_PAYLOAD_DATA should be of the form "SCHEMA_PAYLOAD_DATA ..." (golint)
- Line 34: warning: comment on exported const EVENT_PAGE_VIEW should be of the form "EVENT_PAGE_VIEW ..." (golint)
- Line 41: warning: comment on exported const SCHEMA should be of the form "SCHEMA ..." (golint)
- Line 59: warning: comment on exported const UID should be of the form "UID ..." (golint)
- Line 71: warning: comment on exported const PAGE_URL should be of the form "PAGE_URL ..." (golint)
- Line 76: warning: comment on exported const SE_CATEGORY should be of the form "SE_CATEGORY ..." (golint)
- Line 83: warning: comment on exported const TR_ID should be of the form "TR_ID ..." (golint)
- Line 94: warning: comment on exported const TI_ITEM_ID should be of the form "TI_ITEM_ID ..." (golint)
- Line 103: warning: comment on exported const SV_ID should be of the form "SV_ID ..." (golint)
- Line 107: warning: comment on exported const UT_CATEGORY should be of the form "UT_CATEGORY ..." (golint)
-
snowplow-golang-tracker/tracker/emitter.go
- Line 29: warning: exported const DEFAULT_REQ_TYPE should have comment (or a comment on this block) or be unexported (golint)
- Line 39: warning: exported type SendResult should have comment or be unexported (golint)
- Line 44: warning: exported type CallbackResult should have comment or be unexported (golint)
- Line 49: warning: exported type Emitter should have comment or be unexported (golint)
-
snowplow-golang-tracker/tracker/storage.go
- Line 22: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
- Line 26: warning: exported const DB_DRIVER should have comment (or a comment on this block) or be unexported (golint)
- Line 32: warning: exported type Storage should have comment or be unexported (golint)
- Line 40: warning: exported type RawEventRow should have comment or be unexported (golint)
- Line 45: warning: exported type RawEventRowUint should have comment or be unexported (golint)
- Line 50: warning: exported type EventRow should have comment or be unexported (golint)
- Line 57: warning: exported type StorageMemory should have comment or be unexported (golint)
- Line 62: warning: exported function InitStorageMemory should have comment or be unexported (golint)
- Line 151: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 158: warning: exported type StorageSQLite3 should have comment or be unexported (golint)
- Line 162: warning: exported function InitStorageSQLite3 should have comment or be unexported (golint)
- Line 192: warning: comment on exported method StorageSQLite3.AddEventRow should be of the form "AddEventRow ..." (golint)
- Line 246: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
-
snowplow-golang-tracker/tracker/utils.go
- Line 66: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 75: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 107: warning: comment on exported function MapToJson should be of the form "MapToJson ..." (golint)
- Line 112: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 133: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
-
snowplow-golang-tracker/tracker/events.go
- Line 18: warning: exported type PageViewEvent should have comment or be unexported (golint)
- Line 67: warning: exported type StructuredEvent should have comment or be unexported (golint)
- Line 123: warning: exported type SelfDescribingEvent should have comment or be unexported (golint)
- Line 169: warning: exported type ScreenViewEvent should have comment or be unexported (golint)
- Line 203: warning: exported type TimingEvent should have comment or be unexported (golint)
- Line 251: warning: exported type EcommerceTransactionEvent should have comment or be unexported (golint)
- Line 316: warning: exported type EcommerceTransactionItemEvent should have comment or be unexported (golint)
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!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Checks whether your project has a LICENSE file.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!