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.
Golint is a linter for Go source code.
-
emergencyreporting/types.go
- Line 3: warning: exported type ErrorResponse should have comment or be unexported (golint)
- Line 9: warning: exported type ErrorResponseBuggy should have comment or be unexported (golint)
- Line 16: warning: exported type GenerateTokenResponse should have comment or be unexported (golint)
- Line 31: warning: exported type Station should have comment or be unexported (golint)
- Line 62: warning: exported type GetStationsResponse should have comment or be unexported (golint)
- Line 67: warning: exported type Incident should have comment or be unexported (golint)
- Line 84: warning: exported type GetIncidentResponse should have comment or be unexported (golint)
- Line 88: warning: exported type GetIncidentsResponse should have comment or be unexported (golint)
- Line 92: warning: exported type PostIncidentResponse should have comment or be unexported (golint)
- Line 96: warning: exported type Exposure should have comment or be unexported (golint)
- Line 130: warning: exported type GetExposuresResponse should have comment or be unexported (golint)
- Line 134: warning: exported type GetExposureResponse should have comment or be unexported (golint)
- Line 138: warning: exported type PostExposureResponse should have comment or be unexported (golint)
- Line 142: warning: exported type PatchExposureRequest should have comment or be unexported (golint)
- Line 168: warning: exported type PatchExposureResponse should have comment or be unexported (golint)
- Line 172: warning: exported type ExposureLocation should have comment or be unexported (golint)
- Line 196: warning: exported type GetExposureLocationResponse should have comment or be unexported (golint)
- Line 200: warning: exported type PutExposureLocationResponse should have comment or be unexported (golint)
- Line 204: warning: exported type ExposureFire should have comment or be unexported (golint)
- Line 239: warning: exported type GetExposureFireResponse should have comment or be unexported (golint)
- Line 243: warning: exported type ExposureApparatus should have comment or be unexported (golint)
- Line 279: warning: exported type GetExposureApparatusesResponse should have comment or be unexported (golint)
- Line 283: warning: exported type PostExposureApparatusResponse should have comment or be unexported (golint)
- Line 285: warning: exported type ExposureNarrative should have comment or be unexported (golint)
- Line 287: warning: exported type GetExposureNarrativesResponse should have comment or be unexported (golint)
- Line 291: warning: exported type CrewMember should have comment or be unexported (golint)
- Line 299: warning: exported type GetExposureMemberResponse should have comment or be unexported (golint)
- Line 303: warning: exported type GetExposureMembersResponse should have comment or be unexported (golint)
- Line 307: warning: exported type CrewMemberRole should have comment or be unexported (golint)
- Line 314: warning: exported type GetExposureMemberRolesResponse should have comment or be unexported (golint)
- Line 320: warning: exported type User should have comment or be unexported (golint)
- Line 376: warning: exported type GetUsersResponse should have comment or be unexported (golint)
- Line 380: warning: exported type GetUserResponse should have comment or be unexported (golint)
- Line 384: warning: comment on exported type UserContactInfo should be of the form "UserContactInfo ..." (with optional leading article) (golint)
- Line 387: warning: exported type GetUserContactInfoResponse should have comment or be unexported (golint)
- Line 391: warning: exported type PatchOperation should have comment or be unexported (golint)
- Line 397: warning: exported type PatchUserRequest should have comment or be unexported (golint)
- Line 399: warning: exported type PatchUserResponse should have comment or be unexported (golint)
- Line 403: warning: exported type Apparatus should have comment or be unexported (golint)
- Line 446: warning: exported type GetApparatusResponse should have comment or be unexported (golint)
- Line 450: warning: exported type GetApparatusesResponse should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!