Preparing report...

Report for github.com/3-shake/livy-go

A    Great!    Found 6 issues across 9 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!


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!


golint44%

Golint is a linter for Go source code.

    • livy-go/batch.go
    • Line 9: warning: exported type BatchesService should have comment or be unexported (golint)
    • Line 13: warning: exported type Batches should have comment or be unexported (golint)
    • Line 19: warning: exported type Batch should have comment or be unexported (golint)
    • Line 27: warning: exported function NewBatchesService should have comment or be unexported (golint)
    • Line 32: warning: exported type BatchesListCall should have comment or be unexported (golint)
    • Line 36: warning: exported method BatchesService.List should have comment or be unexported (golint)
    • Line 41: warning: exported method BatchesListCall.Do should have comment or be unexported (golint)
    • Line 66: warning: exported type BatchesGetCall should have comment or be unexported (golint)
    • Line 71: warning: exported method BatchesService.Get should have comment or be unexported (golint)
    • Line 78: warning: exported method BatchesGetCall.Do should have comment or be unexported (golint)
    • Line 103: warning: exported type BatchState should have comment or be unexported (golint)
    • Line 108: warning: exported type BatchesStateCall should have comment or be unexported (golint)
    • Line 113: warning: exported method BatchesService.State should have comment or be unexported (golint)
    • Line 120: warning: exported method BatchesStateCall.Do should have comment or be unexported (golint)
    • Line 145: warning: exported type BatchesDeleteCall should have comment or be unexported (golint)
    • Line 151: warning: exported method BatchesService.Delete should have comment or be unexported (golint)
    • Line 157: warning: exported method BatchesDeleteCall.Do should have comment or be unexported (golint)
    • Line 180: warning: exported type BatchLogResponse should have comment or be unexported (golint)
    • Line 187: warning: exported type BatchesLogCall should have comment or be unexported (golint)
    • Line 193: warning: exported method BatchesService.Log should have comment or be unexported (golint)
    • Line 199: warning: exported method BatchesLogCall.Do should have comment or be unexported (golint)
    • Line 229: warning: exported type InsertBatchRequest should have comment or be unexported (golint)
    • Line 264: warning: exported type BatchesInsertCall should have comment or be unexported (golint)
    • Line 269: warning: comment on exported method BatchesService.Insert should be of the form "Insert ..." (golint)
    • Line 277: warning: exported method BatchesInsertCall.Do should have comment or be unexported (golint)
    • livy-go/httputil.go
    • Line 12: warning: exported type ErrorResponse should have comment or be unexported (golint)
    • Line 20: warning: exported function JSONReader should have comment or be unexported (golint)
    • Line 32: warning: exported function SendRequest should have comment or be unexported (golint)
    • livy-go/service.go
    • Line 11: warning: exported type Service should have comment or be unexported (golint)
    • Line 22: warning: exported function NewService should have comment or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • livy-go/session.go
    • Line 10: warning: don't use underscores in Go names; const SessionKind_Spark should be SessionKindSpark (golint)
    • Line 10: warning: exported const SessionKind_Spark should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; const SessionKind_PySpark should be SessionKindPySpark (golint)
    • Line 12: warning: don't use underscores in Go names; const SessionKind_SparkR should be SessionKindSparkR (golint)
    • Line 13: warning: don't use underscores in Go names; const SessionKind_Sql should be SessionKindSQL (golint)
    • Line 17: warning: exported var SessionKindList should have comment or be unexported (golint)
    • Line 26: warning: don't use underscores in Go names; const SessionState_NotStarted should be SessionStateNotStarted (golint)
    • Line 26: warning: exported const SessionState_NotStarted should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: don't use underscores in Go names; const SessionState_Starting should be SessionStateStarting (golint)
    • Line 28: warning: don't use underscores in Go names; const SessionState_Idle should be SessionStateIdle (golint)
    • Line 29: warning: don't use underscores in Go names; const SessionState_Busy should be SessionStateBusy (golint)
    • Line 30: warning: don't use underscores in Go names; const SessionState_ShuttingDown should be SessionStateShuttingDown (golint)
    • Line 31: warning: don't use underscores in Go names; const SessionState_Error should be SessionStateError (golint)
    • Line 32: warning: don't use underscores in Go names; const SessionState_Dead should be SessionStateDead (golint)
    • Line 33: warning: don't use underscores in Go names; const SessionState_Killed should be SessionStateKilled (golint)
    • Line 34: warning: don't use underscores in Go names; const SessionState_Success should be SessionStateSuccess (golint)
    • Line 37: warning: exported type SessionKind should have comment or be unexported (golint)
    • Line 39: warning: exported type SessionState should have comment or be unexported (golint)
    • Line 41: warning: exported type SessionsService should have comment or be unexported (golint)
    • Line 45: warning: exported type Sessions should have comment or be unexported (golint)
    • Line 51: warning: exported type SessionsListCall should have comment or be unexported (golint)
    • Line 55: warning: exported type Session should have comment or be unexported (golint)
    • Line 72: warning: exported function NewSessionsService should have comment or be unexported (golint)
    • Line 77: warning: exported method SessionsService.List should have comment or be unexported (golint)
    • Line 83: warning: exported method SessionsListCall.Do should have comment or be unexported (golint)
    • Line 108: warning: exported type SessionsGetCall should have comment or be unexported (golint)
    • Line 114: warning: exported method SessionsService.Get should have comment or be unexported (golint)
    • Line 120: warning: exported method SessionsGetCall.Do should have comment or be unexported (golint)
    • Line 150: warning: exported type InsertSessionRequest should have comment or be unexported (golint)
    • Line 183: warning: exported type SessionsInsertCall should have comment or be unexported (golint)
    • Line 188: warning: comment on exported method SessionsService.Insert should be of the form "Insert ..." (golint)
    • Line 196: warning: exported method SessionsInsertCall.Do should have comment or be unexported (golint)
    • Line 227: warning: exported type SessionsDeleteCall should have comment or be unexported (golint)
    • Line 233: warning: exported method SessionsService.Delete should have comment or be unexported (golint)
    • Line 239: warning: exported method SessionsDeleteCall.Do should have comment or be unexported (golint)
    • Line 262: warning: exported type SessionStateResponse should have comment or be unexported (golint)
    • Line 267: warning: exported type SessionsGetStateCall should have comment or be unexported (golint)
    • Line 273: warning: exported method SessionsService.State should have comment or be unexported (golint)
    • Line 279: warning: exported method SessionsGetStateCall.Do should have comment or be unexported (golint)
    • Line 309: warning: exported type SessionLogResponse should have comment or be unexported (golint)
    • Line 316: warning: exported type SessionsLogCall should have comment or be unexported (golint)
    • Line 322: warning: exported method SessionsService.Log should have comment or be unexported (golint)
    • Line 328: warning: exported method SessionsLogCall.Do should have comment or be unexported (golint)
    • livy-go/statement.go
    • Line 12: warning: don't use underscores in Go names; const StatementState_Waiting should be StatementStateWaiting (golint)
    • Line 12: warning: exported const StatementState_Waiting should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: don't use underscores in Go names; const StatementState_Running should be StatementStateRunning (golint)
    • Line 14: warning: don't use underscores in Go names; const StatementState_Available should be StatementStateAvailable (golint)
    • Line 15: warning: don't use underscores in Go names; const StatementState_Error should be StatementStateError (golint)
    • Line 16: warning: don't use underscores in Go names; const StatementState_Cancelling should be StatementStateCancelling (golint)
    • Line 17: warning: don't use underscores in Go names; const StatementState_Cancelled should be StatementStateCancelled (golint)
    • Line 20: warning: exported type StatementState should have comment or be unexported (golint)
    • Line 22: warning: exported type Statements should have comment or be unexported (golint)
    • Line 27: warning: exported type Statement should have comment or be unexported (golint)
    • Line 35: warning: exported type StatementOutput should have comment or be unexported (golint)
    • Line 41: warning: exported type StatementsService should have comment or be unexported (golint)
    • Line 45: warning: exported function NewStatementsService should have comment or be unexported (golint)
    • Line 50: warning: exported type StatementsListCall should have comment or be unexported (golint)
    • Line 55: warning: exported method StatementsService.List should have comment or be unexported (golint)
    • Line 61: warning: exported method StatementsListCall.Do should have comment or be unexported (golint)
    • Line 86: warning: exported type StatementsGetCall should have comment or be unexported (golint)
    • Line 92: warning: exported method StatementsService.Get should have comment or be unexported (golint)
    • Line 100: warning: exported method StatementsGetCall.Do should have comment or be unexported (golint)
    • Line 126: warning: exported type InsertStatementRequest should have comment or be unexported (golint)
    • Line 131: warning: exported type StatementsInsertCall should have comment or be unexported (golint)
    • Line 138: warning: exported method StatementsService.Insert should have comment or be unexported (golint)
    • Line 147: warning: exported method StatementsInsertCall.Do should have comment or be unexported (golint)
    • Line 194: warning: exported type StatementsCancelCall should have comment or be unexported (golint)
    • Line 200: warning: exported method StatementsService.Cancel should have comment or be unexported (golint)
    • Line 208: warning: exported method StatementsCancelCall.Do should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!