Preparing report...

Report for github.com/BryanMorgan/time-tracking-api

A    Great!    Found 41 issues across 54 files

Tweet

gofmt92%

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!


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!


golint27%

Golint is a linter for Go source code.

    • time-tracking-api/task/routes.go
    • Line 9: warning: exported type TaskRouter should have comment or be unexported (golint)
    • Line 14: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 21: warning: exported method TaskRouter.Router should have comment or be unexported (golint)
    • time-tracking-api/task/service.go
    • Line 12: warning: exported type TaskService should have comment or be unexported (golint)
    • Line 25: warning: exported type TaskResource should have comment or be unexported (golint)
    • Line 29: warning: exported function NewTaskService should have comment or be unexported (golint)
    • Line 33: warning: exported method TaskResource.GetTask should have comment or be unexported (golint)
    • Line 42: warning: exported method TaskResource.GetAllTasks should have comment or be unexported (golint)
    • Line 51: warning: exported method TaskResource.SaveTask should have comment or be unexported (golint)
    • Line 68: warning: exported method TaskResource.UpdateTask should have comment or be unexported (golint)
    • Line 77: warning: exported method TaskResource.ArchiveTask should have comment or be unexported (golint)
    • Line 88: warning: exported method TaskResource.RestoreTask should have comment or be unexported (golint)
    • Line 99: warning: exported method TaskResource.DeleteTask should have comment or be unexported (golint)
    • Line 110: warning: comment on exported function GetTaskListDifference should be of the form "GetTaskListDifference ..." (golint)
    • time-tracking-api/reporting/handler.go
    • Line 18: warning: exported type ClientReportResponse should have comment or be unexported (golint)
    • Line 26: warning: exported type ProjectReportResponse should have comment or be unexported (golint)
    • Line 35: warning: exported type TaskReportResponse should have comment or be unexported (golint)
    • Line 45: warning: exported type PersonReportResponse should have comment or be unexported (golint)
    • Line 440: warning: comment on exported function AdjustForWeekStart should be of the form "AdjustForWeekStart ..." (golint)
    • Line 457: warning: exported function NewClientReportResponse should have comment or be unexported (golint)
    • Line 471: warning: exported function ExportClientReportResponse should have comment or be unexported (golint)
    • Line 485: warning: exported function ExportProjectReportResponse should have comment or be unexported (golint)
    • Line 500: warning: exported function ExportTaskReportResponse should have comment or be unexported (golint)
    • Line 514: warning: exported function ExportPersonReportResponse should have comment or be unexported (golint)
    • Line 529: warning: exported function NewClientReportsResponse should have comment or be unexported (golint)
    • Line 542: warning: exported function NewProjectReportResponse should have comment or be unexported (golint)
    • Line 557: warning: exported function NewProjectReportsResponse should have comment or be unexported (golint)
    • Line 590: warning: exported function WriteExportClientReportsResponse should have comment or be unexported (golint)
    • Line 617: warning: exported function WriteExportProjectReportsResponse should have comment or be unexported (golint)
    • Line 645: warning: exported function WriteExportTaskReportsResponse should have comment or be unexported (golint)
    • Line 672: warning: exported function WriteExportPersonReportsResponse should have comment or be unexported (golint)
    • Line 699: warning: exported function NewTaskReportResponse should have comment or be unexported (golint)
    • Line 714: warning: exported function NewTaskReportsResponse should have comment or be unexported (golint)
    • Line 727: warning: exported function NewPersonReportResponse should have comment or be unexported (golint)
    • Line 742: warning: exported function NewPersonReportsResponse should have comment or be unexported (golint)
    • time-tracking-api/client/handler.go
    • Line 19: warning: exported type ClientRequest should have comment or be unexported (golint)
    • Line 25: warning: exported type ClientResponse should have comment or be unexported (golint)
    • Line 31: warning: exported type ProjectIdRequest should have comment or be unexported (golint)
    • Line 35: warning: exported type ProjectRequest should have comment or be unexported (golint)
    • Line 41: warning: exported type ProjectContainerRequest should have comment or be unexported (golint)
    • Line 48: warning: exported type TaskRequest should have comment or be unexported (golint)
    • Line 54: warning: exported type ProjectTaskResponse should have comment or be unexported (golint)
    • Line 62: warning: exported type ProjectResponse should have comment or be unexported (golint)
    • Line 72: warning: exported type StartAndEndDateRequest should have comment or be unexported (golint)
    • Line 660: warning: exported function NewClientResponse should have comment or be unexported (golint)
    • Line 672: warning: exported function NewClientsResponse should have comment or be unexported (golint)
    • Line 685: warning: exported function NewProjectResponse should have comment or be unexported (golint)
    • Line 703: warning: exported function NewProjectTaskResponse should have comment or be unexported (golint)
    • Line 713: warning: exported function NewProjectsResponse should have comment or be unexported (golint)
    • time-tracking-api/profile/profile.go
    • Line 10: warning: exported type ProfileStatus should have comment or be unexported (golint)
    • Line 11: warning: exported type ProfileAccountStatus should have comment or be unexported (golint)
    • Line 12: warning: exported type AuthorizationRole should have comment or be unexported (golint)
    • Line 13: warning: exported type AccountStatus should have comment or be unexported (golint)
    • Line 16: warning: exported const ProfileNew should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported const ProfileAccountValid should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported const Owner should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported type Account should have comment or be unexported (golint)
    • Line 63: warning: exported type Session should have comment or be unexported (golint)
    • Line 69: warning: exported type Profile should have comment or be unexported (golint)
    • Line 89: warning: exported type ForgotPassword should have comment or be unexported (golint)
    • Line 96: warning: exported const MissingIpAddress should have comment (or a comment on this block) or be unexported (golint)
    • time-tracking-api/profile/routes.go
    • Line 7: warning: exported type ProfileRouter should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function NewRouter should be of the form "NewRouter ..." (golint)
    • Line 18: warning: exported method ProfileRouter.AuthenticationRouter should have comment or be unexported (golint)
    • Line 42: warning: exported method ProfileRouter.ProfileRouter should have comment or be unexported (golint)
    • Line 60: warning: exported method ProfileRouter.AccountRouter should have comment or be unexported (golint)
    • time-tracking-api/database/postgres.go
    • Line 13: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 17: warning: error var NoRowAffectedError should have name of the form ErrFoo (golint)
    • Line 17: warning: exported var NoRowAffectedError should have comment or be unexported (golint)
    • Line 23: warning: exported function InitPostgres should have comment or be unexported (golint)
    • Line 74: warning: exported function CloseRows should have comment or be unexported (golint)
    • Line 80: warning: exported function RollbackTransaction should have comment or be unexported (golint)
    • time-tracking-api/client/service.go
    • Line 15: warning: exported type ClientService should have comment or be unexported (golint)
    • Line 36: warning: exported type ClientResource should have comment or be unexported (golint)
    • Line 41: warning: exported function NewClientService should have comment or be unexported (golint)
    • Line 48: warning: exported method ClientResource.GetClient should have comment or be unexported (golint)
    • Line 57: warning: exported method ClientResource.GetAllClients should have comment or be unexported (golint)
    • Line 66: warning: exported method ClientResource.CreateClient should have comment or be unexported (golint)
    • Line 82: warning: exported method ClientResource.UpdateClient should have comment or be unexported (golint)
    • Line 91: warning: exported method ClientResource.ArchiveClient should have comment or be unexported (golint)
    • Line 100: warning: exported method ClientResource.RestoreClient should have comment or be unexported (golint)
    • Line 109: warning: exported method ClientResource.DeleteClient should have comment or be unexported (golint)
    • Line 120: warning: exported method ClientResource.GetProject should have comment or be unexported (golint)
    • Line 129: warning: exported method ClientResource.GetAllProjects should have comment or be unexported (golint)
    • Line 138: warning: exported method ClientResource.CreateProject should have comment or be unexported (golint)
    • Line 148: warning: exported method ClientResource.UpdateProject should have comment or be unexported (golint)
    • Line 166: warning: exported method ClientResource.UpdateProjectActive should have comment or be unexported (golint)
    • Line 177: warning: exported method ClientResource.DeleteProject should have comment or be unexported (golint)
    • Line 188: warning: exported method ClientResource.CopyProjectsFromDateRanges should have comment or be unexported (golint)
    • time-tracking-api/reporting/service.go
    • Line 12: warning: exported type ReportingService should have comment or be unexported (golint)
    • Line 19: warning: exported type ReportingResource should have comment or be unexported (golint)
    • Line 23: warning: exported function NewReportingService should have comment or be unexported (golint)
    • Line 27: warning: exported method ReportingResource.GetTimeByClient should have comment or be unexported (golint)
    • Line 36: warning: exported method ReportingResource.GetTimeByProject should have comment or be unexported (golint)
    • Line 45: warning: exported method ReportingResource.GetTimeByTask should have comment or be unexported (golint)
    • Line 54: warning: exported method ReportingResource.GetTimeByPerson should have comment or be unexported (golint)
    • time-tracking-api/reporting/store.go
    • Line 15: warning: exported const ReportPaginationLimit should have comment or be unexported (golint)
    • Line 17: warning: exported type ReportingStore should have comment or be unexported (golint)
    • Line 24: warning: exported type ReportingData should have comment or be unexported (golint)
    • Line 28: warning: exported function NewReportingStore should have comment or be unexported (golint)
    • Line 34: warning: exported method ReportingData.GetTimeByClient should have comment or be unexported (golint)
    • Line 89: warning: exported method ReportingData.GetTimeByProject should have comment or be unexported (golint)
    • Line 150: warning: exported method ReportingData.GetTimeByTask should have comment or be unexported (golint)
    • Line 208: warning: exported method ReportingData.GetTimeByPerson should have comment or be unexported (golint)
    • time-tracking-api/client/routes.go
    • Line 10: warning: exported type ClientRouter should have comment or be unexported (golint)
    • Line 15: warning: comment on exported function NewRouter should be of the form "NewRouter ..." (golint)
    • Line 23: warning: exported method ClientRouter.Router should have comment or be unexported (golint)
    • time-tracking-api/profile/cookie.go
    • Line 10: warning: exported function AddSessionCookie should have comment or be unexported (golint)
    • Line 27: warning: exported function ClearSessionCookie should have comment or be unexported (golint)
    • Line 40: warning: exported function GetSessionCookieFromRequest should have comment or be unexported (golint)
    • Line 45: warning: exported function GetSessionExpiration should have comment or be unexported (golint)
    • Line 49: warning: exported function GetCookieExpirationMinutes should have comment or be unexported (golint)
    • Line 52: warning: exported function GetSessionCookieName should have comment or be unexported (golint)
    • time-tracking-api/config/config.go
    • Line 10: warning: exported const ISOShortDateFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported function InitConfig should have comment or be unexported (golint)
    • Line 42: warning: comment on exported function CreateUrl should be of the form "CreateUrl ..." (golint)
    • time-tracking-api/api/error.go
    • Line 56: warning: exported type Error should have comment or be unexported (golint)
    • Line 63: warning: exported type ErrorDetail should have comment or be unexported (golint)
    • Line 68: warning: exported function NewFieldError should have comment or be unexported (golint)
    • Line 72: warning: exported function NewErrorDetail should have comment or be unexported (golint)
    • Line 79: warning: comment on exported function NewError should be of the form "NewError ..." (golint)
    • Line 111: warning: exported method Error.MarshalJSON should have comment or be unexported (golint)
    • time-tracking-api/reporting/reporting.go
    • Line 5: warning: exported type ClientReport should have comment or be unexported (golint)
    • Line 13: warning: exported type ProjectReport should have comment or be unexported (golint)
    • Line 22: warning: exported type TaskReport should have comment or be unexported (golint)
    • Line 31: warning: exported type PersonReport should have comment or be unexported (golint)
    • time-tracking-api/profile/handler.go
    • Line 20: warning: exported const AuthorizationHeaderName should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type ProfileRequest should have comment or be unexported (golint)
    • Line 33: warning: exported type PasswordChangeRequest should have comment or be unexported (golint)
    • Line 39: warning: exported type ProfileResponse should have comment or be unexported (golint)
    • Line 48: warning: exported type CompanyResponse should have comment or be unexported (golint)
    • Line 53: warning: exported type AccountRequest should have comment or be unexported (golint)
    • Line 63: warning: exported type AccountResponse should have comment or be unexported (golint)
    • Line 71: warning: exported type AccountUpdateRequest should have comment or be unexported (golint)
    • Line 78: warning: exported type AddUserRequest should have comment or be unexported (golint)
    • Line 85: warning: exported type RemoveUserRequest should have comment or be unexported (golint)
    • Line 89: warning: exported type EmailRequest should have comment or be unexported (golint)
    • Line 93: warning: exported type LoginRequest should have comment or be unexported (golint)
    • Line 98: warning: exported type ForgotPasswordTokenRequest should have comment or be unexported (golint)
    • Line 102: warning: exported type SetupNewUserRequest should have comment or be unexported (golint)
    • Line 107: warning: exported type AuthResponse should have comment or be unexported (golint)
    • Line 115: warning: exported type AccountIdRequest should have comment or be unexported (golint)
    • Line 296: warning: exported function TokenHandler should have comment or be unexported (golint)
    • Line 314: warning: exported function NewAuthResponse should have comment or be unexported (golint)
    • Line 324: warning: exported function GetTokenFromRequest should have comment or be unexported (golint)
    • Line 463: warning: exported method ProfileRouter.ValidateSessionHandler should have comment or be unexported (golint)
    • Line 772: warning: exported method ProfileRouter.AdminPermissionHandler should have comment or be unexported (golint)
    • Line 789: warning: exported method ProfileRouter.ValidateProfileHandler should have comment or be unexported (golint)
    • Line 842: warning: exported function NewAccountCompaniesResponse should have comment or be unexported (golint)
    • Line 854: warning: exported function NewAccountResponse should have comment or be unexported (golint)
    • Line 864: warning: exported function NewProfileListResponse should have comment or be unexported (golint)
    • Line 872: warning: exported function NewProfileResponse should have comment or be unexported (golint)
    • time-tracking-api/profile/valid.go
    • Line 3: warning: comment on exported function IsProfileStatusValid should be of the form "IsProfileStatusValid ..." (golint)
    • Line 12: warning: exported function IsRole should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function IsAdmin should be of the form "IsAdmin ..." (golint)
    • Line 37: warning: comment on exported function IsAccountStatusValid should be of the form "IsAccountStatusValid ..." (golint)
    • Line 46: warning: comment on exported function IsProfileAccountStatusValid should be of the form "IsProfileAccountStatusValid ..." (golint)
    • Line 51: warning: comment on exported function IsWeekStart should be of the form "IsWeekStart ..." (golint)
    • time-tracking-api/task/store.go
    • Line 15: warning: exported type TaskStore should have comment or be unexported (golint)
    • Line 27: warning: exported type TaskData should have comment or be unexported (golint)
    • Line 31: warning: exported function NewTaskStore should have comment or be unexported (golint)
    • Line 37: warning: exported method TaskData.GetTask should have comment or be unexported (golint)
    • Line 56: warning: exported method TaskData.GetAllTasks should have comment or be unexported (golint)
    • Line 87: warning: exported method TaskData.SaveTask should have comment or be unexported (golint)
    • Line 106: warning: exported method TaskData.UpdateTask should have comment or be unexported (golint)
    • Line 137: warning: exported method TaskData.ArchiveTask should have comment or be unexported (golint)
    • Line 157: warning: exported method TaskData.RestoreTask should have comment or be unexported (golint)
    • Line 177: warning: exported method TaskData.DeleteTask should have comment or be unexported (golint)
    • time-tracking-api/timesheet/routes.go
    • Line 9: warning: exported type TimeRouter should have comment or be unexported (golint)
    • Line 14: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 21: warning: exported method TimeRouter.Router should have comment or be unexported (golint)
    • time-tracking-api/timesheet/store.go
    • Line 17: warning: exported type TimeStore should have comment or be unexported (golint)
    • Line 28: warning: comment on exported type TimeData should be of the form "TimeData ..." (with optional leading article) (golint)
    • Line 33: warning: exported function NewTimeStore should have comment or be unexported (golint)
    • Line 39: warning: exported method TimeData.SaveOrUpdateTimeEntries should have comment or be unexported (golint)
    • Line 98: warning: exported method TimeData.UpdateTimeEntries should have comment or be unexported (golint)
    • Line 179: warning: comment on exported method TimeData.AddInitialProjectTimeEntries should be of the form "AddInitialProjectTimeEntries ..." (golint)
    • Line 217: warning: exported method TimeData.GetTimeEntriesForRange should have comment or be unexported (golint)
    • Line 259: warning: exported method TimeData.DeleteProjectForDates should have comment or be unexported (golint)
    • time-tracking-api/client/store.go
    • Line 22: warning: exported type ClientStore should have comment or be unexported (golint)
    • Line 43: warning: comment on exported type ClientData should be of the form "ClientData ..." (with optional leading article) (golint)
    • Line 48: warning: exported function NewClientStore should have comment or be unexported (golint)
    • Line 54: warning: exported method ClientData.GetClient should have comment or be unexported (golint)
    • Line 73: warning: exported method ClientData.GetAllClients should have comment or be unexported (golint)
    • Line 102: warning: exported method ClientData.CreateClient should have comment or be unexported (golint)
    • Line 121: warning: exported method ClientData.UpdateClient should have comment or be unexported (golint)
    • Line 158: warning: exported method ClientData.ArchiveClient should have comment or be unexported (golint)
    • Line 178: warning: exported method ClientData.RestoreClient should have comment or be unexported (golint)
    • Line 198: warning: exported method ClientData.DeleteClient should have comment or be unexported (golint)
    • Line 224: warning: exported method ClientData.GetProject should have comment or be unexported (golint)
    • Line 273: warning: exported method ClientData.GetAllProjects should have comment or be unexported (golint)
    • Line 336: warning: exported method ClientData.CreateProject should have comment or be unexported (golint)
    • Line 392: warning: exported method ClientData.UpdateProject should have comment or be unexported (golint)
    • Line 465: warning: exported method ClientData.UpdateProjectActive should have comment or be unexported (golint)
    • Line 485: warning: exported method ClientData.DeleteProject should have comment or be unexported (golint)
    • Line 509: warning: comment on exported method ClientData.CopyProjectsFromDateRanges should be of the form "CopyProjectsFromDateRanges ..." (golint)
    • time-tracking-api/profile/service.go
    • Line 23: warning: exported function NewProfileService should have comment or be unexported (golint)
    • Line 27: warning: exported type ProfileResource should have comment or be unexported (golint)
    • Line 31: warning: exported type ProfileService should have comment or be unexported (golint)
    • Line 51: warning: exported method ProfileResource.Login should have comment or be unexported (golint)
    • Line 116: warning: exported method ProfileResource.ForgotPassword should have comment or be unexported (golint)
    • Line 151: warning: exported method ProfileResource.ValidateForgotPasswordToken should have comment or be unexported (golint)
    • Line 177: warning: exported method ProfileResource.SetupNewUser should have comment or be unexported (golint)
    • Line 216: warning: exported function EncryptPassword should have comment or be unexported (golint)
    • Line 230: warning: exported function GenerateToken should have comment or be unexported (golint)
    • Line 256: warning: exported function GenerateTokenExpiration should have comment or be unexported (golint)
    • Line 277: warning: exported method ProfileResource.UpdateTokenExpiration should have comment or be unexported (golint)
    • Line 289: warning: exported method ProfileResource.UpdatePassword should have comment or be unexported (golint)
    • Line 326: warning: exported method ProfileResource.UpdateProfile should have comment or be unexported (golint)
    • Line 346: warning: exported method ProfileResource.Logout should have comment or be unexported (golint)
    • Line 355: warning: exported method ProfileResource.GetProfile should have comment or be unexported (golint)
    • Line 368: warning: exported method ProfileResource.Create should have comment or be unexported (golint)
    • Line 431: warning: exported method ProfileResource.AddUser should have comment or be unexported (golint)
    • Line 486: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 494: warning: exported method ProfileResource.UpdateAccount should have comment or be unexported (golint)
    • Line 520: warning: exported method ProfileResource.CloseAccount should have comment or be unexported (golint)
    • Line 529: warning: exported method ProfileResource.GetAccount should have comment or be unexported (golint)
    • Line 538: warning: exported method ProfileResource.GetAllProfiles should have comment or be unexported (golint)
    • Line 547: warning: exported method ProfileResource.GetProfileByToken should have comment or be unexported (golint)
    • Line 561: warning: exported method ProfileResource.RemoveUser should have comment or be unexported (golint)
    • Line 584: warning: exported method ProfileResource.GenerateNewTokenForProfile should have comment or be unexported (golint)
    • time-tracking-api/api/render.go
    • Line 17: warning: exported const SuccessStatus should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: comment on exported function Json should be of the form "Json ..." (golint)
    • Line 30: warning: comment on exported function JsonWithStatus should be of the form "JsonWithStatus ..." (golint)
    • Line 51: warning: exported function BadInputs should have comment or be unexported (golint)
    • Line 55: warning: comment on exported function ErrorJson should be of the form "ErrorJson ..." (golint)
    • Line 61: warning: comment on exported function WarnJson should be of the form "WarnJson ..." (golint)
    • Line 67: warning: exported function CloseBody should have comment or be unexported (golint)
    • Line 124: warning: comment on exported function TimeJson should be of the form "TimeJson ..." (golint)
    • time-tracking-api/timesheet/handler.go
    • Line 16: warning: exported type TimeEntryRequest should have comment or be unexported (golint)
    • Line 23: warning: exported type TimeEntryRangeRequest should have comment or be unexported (golint)
    • Line 27: warning: exported type ProjectWeekRequest should have comment or be unexported (golint)
    • Line 34: warning: exported type ProjectDeleteRequest should have comment or be unexported (golint)
    • Line 41: warning: exported type TimeEntryResponse should have comment or be unexported (golint)
    • Line 51: warning: exported type TimeRangeResponse should have comment or be unexported (golint)
    • Line 351: warning: exported function NewTimeRange should have comment or be unexported (golint)
    • Line 370: warning: exported function NewTimeEntryResponse should have comment or be unexported (golint)
    • time-tracking-api/client/client.go
    • Line 8: warning: exported const ClientNameMinLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type Client should have comment or be unexported (golint)
    • time-tracking-api/valid/valid.go
    • Line 15: warning: exported const EmailPattern should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported var EmailRegEx should have comment or be unexported (golint)
    • Line 22: warning: exported function IsNull should have comment or be unexported (golint)
    • Line 26: warning: exported function IsNullString should have comment or be unexported (golint)
    • Line 30: warning: exported function IsEmail should have comment or be unexported (golint)
    • Line 34: warning: exported function IsInt should have comment or be unexported (golint)
    • Line 42: warning: exported function IsIntBetween should have comment or be unexported (golint)
    • Line 52: warning: exported function IsLength should have comment or be unexported (golint)
    • Line 60: warning: exported function IsTimezone should have comment or be unexported (golint)
    • Line 64: warning: exported function ToNullString should have comment or be unexported (golint)
    • Line 68: warning: exported function ToNullTime should have comment or be unexported (golint)
    • Line 72: warning: exported function ToNullFloat64 should have comment or be unexported (golint)
    • time-tracking-api/app/app.go
    • Line 30: warning: exported type App should have comment or be unexported (golint)
    • Line 35: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 47: warning: exported method App.Run should have comment or be unexported (golint)
    • time-tracking-api/logger/logger.go
    • Line 16: warning: exported var Log should have comment or be unexported (golint)
    • Line 28: warning: exported function NewLoggingResponseWriter should have comment or be unexported (golint)
    • Line 37: warning: exported function DevelopmentTimeEncoder should have comment or be unexported (golint)
    • Line 41: warning: exported function InitLogger should have comment or be unexported (golint)
    • Line 80: warning: exported function RequestLoggingHandler should have comment or be unexported (golint)
    • Line 114: warning: exported function NamedError should have comment or be unexported (golint)
    • Line 118: warning: exported function Error should have comment or be unexported (golint)
    • Line 122: warning: exported function Skip should have comment or be unexported (golint)
    • Line 126: warning: exported function String should have comment or be unexported (golint)
    • Line 130: warning: exported function Stringer should have comment or be unexported (golint)
    • Line 134: warning: exported function ByteString should have comment or be unexported (golint)
    • Line 138: warning: exported function Bool should have comment or be unexported (golint)
    • Line 142: warning: exported function Int should have comment or be unexported (golint)
    • Line 146: warning: exported function Duration should have comment or be unexported (golint)
    • Line 150: warning: exported function Time should have comment or be unexported (golint)
    • Line 153: warning: exported function Object should have comment or be unexported (golint)
    • Line 157: warning: exported function Any should have comment or be unexported (golint)
    • time-tracking-api/timesheet/service.go
    • Line 13: warning: exported type TimeService should have comment or be unexported (golint)
    • Line 23: warning: exported type TimeResource should have comment or be unexported (golint)
    • Line 27: warning: exported function NewTimeService should have comment or be unexported (golint)
    • Line 31: warning: exported method TimeResource.GetTimeEntriesForRange should have comment or be unexported (golint)
    • Line 40: warning: exported method TimeResource.SaveOrUpdateTimeEntries should have comment or be unexported (golint)
    • Line 49: warning: exported method TimeResource.UpdateTimeEntries should have comment or be unexported (golint)
    • Line 58: warning: exported method TimeResource.AddInitialProjectTimeEntries should have comment or be unexported (golint)
    • Line 67: warning: exported method TimeResource.DeleteProjectForDates should have comment or be unexported (golint)
    • time-tracking-api/reporting/routes.go
    • Line 9: warning: exported type ReportingRouter should have comment or be unexported (golint)
    • Line 14: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 21: warning: exported method ReportingRouter.Router should have comment or be unexported (golint)
    • time-tracking-api/profile/store.go
    • Line 18: warning: exported const EmailExistsInAccount should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type ProfileStore should have comment or be unexported (golint)
    • Line 57: warning: exported function NewProfileAccountStore should have comment or be unexported (golint)
    • Line 63: warning: exported method ProfileData.GetForgotPasswordToken should have comment or be unexported (golint)
    • Line 80: warning: exported method ProfileData.AddToken should have comment or be unexported (golint)
    • Line 102: warning: exported method ProfileData.UpdateForgotPassword should have comment or be unexported (golint)
    • Line 124: warning: exported method ProfileData.GetByEmail should have comment or be unexported (golint)
    • Line 154: warning: exported method ProfileData.GetPasswordById should have comment or be unexported (golint)
    • Line 169: warning: exported method ProfileData.CreateProfile should have comment or be unexported (golint)
    • Line 219: warning: exported method ProfileData.SetProfileLocked should have comment or be unexported (golint)
    • Line 245: warning: exported method ProfileData.UpdateProfile should have comment or be unexported (golint)
    • Line 274: warning: exported method ProfileData.UpdatePassword should have comment or be unexported (golint)
    • Line 294: warning: exported method ProfileData.UpdateProfileState should have comment or be unexported (golint)
    • Line 314: warning: exported method ProfileData.UpdateTokenExpiration should have comment or be unexported (golint)
    • Line 338: warning: exported method ProfileData.AddFailedLoginAttempt should have comment or be unexported (golint)
    • Line 361: warning: exported method ProfileData.GetFailedLoginCount should have comment or be unexported (golint)
    • Line 378: warning: exported method ProfileData.DeleteSessionByToken should have comment or be unexported (golint)
    • Line 391: warning: exported method ProfileData.GetAccount should have comment or be unexported (golint)
    • Line 414: warning: exported method ProfileData.GetProfiles should have comment or be unexported (golint)
    • Line 442: warning: exported method ProfileData.GetProfileByToken should have comment or be unexported (golint)
    • Line 470: warning: exported method ProfileData.CreateAccount should have comment or be unexported (golint)
    • Line 494: warning: exported method ProfileData.UpdateAccount should have comment or be unexported (golint)
    • Line 523: warning: exported method ProfileData.AddUser should have comment or be unexported (golint)
    • Line 564: warning: exported method ProfileData.RemoveUser should have comment or be unexported (golint)
    • Line 584: warning: exported method ProfileData.CloseAccount should have comment or be unexported (golint)
    • time-tracking-api/task/handler.go
    • Line 15: warning: exported type TaskRequest should have comment or be unexported (golint)
    • Line 23: warning: exported type TaskResponse should have comment or be unexported (golint)
    • Line 276: warning: exported function NewTaskResponse should have comment or be unexported (golint)
    • Line 291: warning: exported function NewTasksResponse should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


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!