Preparing report...

Report for github.com/jansorg/tom

A    Great!    Found 89 issues across 130 files

Tweet

gofmt90%

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!


gocyclo90%

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.

    • tom/go-tom/report/report.go
    • Line 133: warning: cyclomatic complexity 17 of function IsMatrix() is high (> 15) (gocyclo)
    • Line 32: warning: cyclomatic complexity 17 of function (*BucketReport).Update() is high (> 15) (gocyclo)

golint43%

Golint is a linter for Go source code.

    • tom/go-tom/cmd/frames/frames.go
    • Line 29: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 37: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 71: warning: exported function NewCommand should have comment or be unexported (golint)
    • tom/go-tom/context/context.go
    • Line 14: warning: exported type OutputFormat should have comment or be unexported (golint)
    • Line 17: warning: exported const Plain should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type TomContext should have comment or be unexported (golint)
    • tom/go-tom/dateTime/timeSeries.go
    • Line 1: warning: don't use MixedCaps in package name; dateTime should be datetime (golint)
    • Line 8: warning: comment on exported type TimeEntrySeries should be of the form "TimeEntrySeries ..." (with optional leading article) (golint)
    • tom/go-tom/cmd/cmdUtil/cmd_utils.go
    • Line 1: warning: don't use MixedCaps in package name; cmdUtil should be cmdutil (golint)
    • Line 17: warning: exported type PropList should have comment or be unexported (golint)
    • Line 22: warning: exported function AddListOutputFlags should have comment or be unexported (golint)
    • Line 48: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 89: warning: exported function PrintJSON should have comment or be unexported (golint)
    • tom/go-tom/cmd/edit/edit_frame.go
    • Line 90: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • tom/go-tom/invoice/invoice.go
    • Line 3: warning: exported type Browser should have comment or be unexported (golint)
    • Line 7: warning: exported type Factory should have comment or be unexported (golint)
    • Line 12: warning: exported type Request should have comment or be unexported (golint)
    • Line 31: warning: exported type Response should have comment or be unexported (golint)
    • tom/go-tom/test_setup/test_setup.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 17: warning: exported function CreateTestContext should have comment or be unexported (golint)
    • Line 44: warning: exported function CleanupTestContext should have comment or be unexported (golint)
    • tom/go-tom/cmd/invoice.go
    • Line 96: warning: exported type ProjectInvoiceLine should have comment or be unexported (golint)
    • Line 112: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • tom/go-tom/invoice/sevdesk/client_contact.go
    • Line 9: warning: exported type CompanyContact should have comment or be unexported (golint)
    • Line 41: warning: exported type ContactResponse should have comment or be unexported (golint)
    • Line 74: warning: exported method Client.NewCompanyContact should have comment or be unexported (golint)
    • Line 82: warning: exported method Client.GetNextCustomerNumber should have comment or be unexported (golint)
    • Line 96: warning: exported method Client.CreateCompanyContact should have comment or be unexported (golint)
    • Line 109: warning: exported method Client.GetContacts should have comment or be unexported (golint)
    • tom/go-tom/report/report_config.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 25: warning: exported type TimezoneName should have comment or be unexported (golint)
    • Line 27: warning: exported method TimezoneName.UnmarshalJSON should have comment or be unexported (golint)
    • Line 42: warning: exported method TimezoneName.AsTimezone should have comment or be unexported (golint)
    • tom/go-tom/store/store.go
    • Line 20: warning: exported var ErrTagNotFound should have comment or be unexported (golint)
    • Line 22: warning: exported function NewStore should have comment or be unexported (golint)
    • Line 43: warning: exported type DataStore should have comment or be unexported (golint)
    • Line 62: warning: exported method DataStore.DirPath should have comment or be unexported (golint)
    • Line 66: warning: exported method DataStore.BackupDirPath should have comment or be unexported (golint)
    • Line 70: warning: exported method DataStore.MaxBackups should have comment or be unexported (golint)
    • Line 74: warning: exported method DataStore.StartBatch should have comment or be unexported (golint)
    • Line 81: warning: exported method DataStore.StopBatch should have comment or be unexported (golint)
    • Line 205: warning: exported method DataStore.Reset should have comment or be unexported (golint)
    • Line 227: warning: exported method DataStore.Projects should have comment or be unexported (golint)
    • Line 234: warning: exported method DataStore.ProjectByID should have comment or be unexported (golint)
    • Line 245: warning: exported method DataStore.AddProject should have comment or be unexported (golint)
    • Line 284: warning: exported method DataStore.UpdateProject should have comment or be unexported (golint)
    • Line 298: warning: exported method DataStore.RemoveProject should have comment or be unexported (golint)
    • Line 313: warning: exported method DataStore.FindFirstProject should have comment or be unexported (golint)
    • Line 329: warning: exported method DataStore.FindProjects should have comment or be unexported (golint)
    • Line 342: warning: exported method DataStore.ProjectIsSameOrChild should have comment or be unexported (golint)
    • Line 364: warning: exported method DataStore.Tags should have comment or be unexported (golint)
    • Line 371: warning: exported method DataStore.AddTag should have comment or be unexported (golint)
    • Line 384: warning: exported method DataStore.UpdateTag should have comment or be unexported (golint)
    • Line 398: warning: exported method DataStore.RemoveTag should have comment or be unexported (golint)
    • Line 411: warning: exported method DataStore.FindTag should have comment or be unexported (golint)
    • Line 423: warning: exported method DataStore.FindFirstTag should have comment or be unexported (golint)
    • Line 435: warning: exported method DataStore.FindTags should have comment or be unexported (golint)
    • Line 448: warning: exported method DataStore.Frames should have comment or be unexported (golint)
    • Line 455: warning: exported method DataStore.AddFrame should have comment or be unexported (golint)
    • Line 468: warning: exported method DataStore.UpdateFrame should have comment or be unexported (golint)
    • Line 484: warning: exported method DataStore.RemoveFrame should have comment or be unexported (golint)
    • Line 497: warning: exported method DataStore.FindFirstFrame should have comment or be unexported (golint)
    • Line 509: warning: exported method DataStore.FindFrames should have comment or be unexported (golint)
    • Line 579: warning: exported method DataStore.Empty should have comment or be unexported (golint)
    • tom/go-tom/invoice/sevdesk/client_unit.go
    • Line 5: warning: exported type Unit should have comment or be unexported (golint)
    • Line 15: warning: comment on exported method Client.FindUnit should be of the form "FindUnit ..." (golint)
    • Line 29: warning: exported method Client.GetUnits should have comment or be unexported (golint)
    • tom/go-tom-pdf/converter/api2pdf/api2pdf.go
    • Line 16: warning: exported type RequestType should have comment or be unexported (golint)
    • Line 19: warning: exported const RequestWkHtml should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported function NewConverter should have comment or be unexported (golint)
    • Line 110: warning: exported type PageOptions should have comment or be unexported (golint)
    • Line 115: warning: exported type Request should have comment or be unexported (golint)
    • Line 122: warning: exported type Response should have comment or be unexported (golint)
    • tom/go-tom/dateTime/range.go
    • Line 1: warning: don't use MixedCaps in package name; dateTime should be datetime (golint)
    • Line 11: warning: exported function NewDateRange should have comment or be unexported (golint)
    • Line 25: warning: exported function NewYearRange should have comment or be unexported (golint)
    • Line 31: warning: exported function NewMonthRange should have comment or be unexported (golint)
    • Line 39: warning: exported function NewWeekRange should have comment or be unexported (golint)
    • Line 53: warning: exported function NewDayRange should have comment or be unexported (golint)
    • Line 61: warning: exported type DateRange should have comment or be unexported (golint)
    • Line 68: warning: exported method DateRange.In should have comment or be unexported (golint)
    • Line 99: warning: exported method DateRange.ShortString should have comment or be unexported (golint)
    • Line 110: warning: exported method DateRange.MinimalString should have comment or be unexported (golint)
    • Line 140: warning: exported method DateRange.Shift should have comment or be unexported (golint)
    • Line 151: warning: exported method DateRange.IsClosed should have comment or be unexported (golint)
    • Line 155: warning: exported method DateRange.IsMonthRange should have comment or be unexported (golint)
    • Line 159: warning: exported method DateRange.IsYearRange should have comment or be unexported (golint)
    • Line 163: warning: exported method DateRange.IsOpen should have comment or be unexported (golint)
    • Line 167: warning: exported method DateRange.Empty should have comment or be unexported (golint)
    • Line 171: warning: exported method DateRange.Contains should have comment or be unexported (golint)
    • Line 175: warning: exported method DateRange.ContainsP should have comment or be unexported (golint)
    • Line 179: warning: exported method DateRange.Intersection should have comment or be unexported (golint)
    • Line 206: warning: exported method DateRange.Intersects should have comment or be unexported (golint)
    • Line 210: warning: exported method DateRange.Years should have comment or be unexported (golint)
    • Line 221: warning: exported method DateRange.Months should have comment or be unexported (golint)
    • Line 233: warning: exported method DateRange.Days should have comment or be unexported (golint)
    • tom/go-tom/i18n/i18n.go
    • Line 15: warning: exported function FindPreferredLanguages should have comment or be unexported (golint)
    • Line 26: warning: exported function FindLocale should have comment or be unexported (golint)
    • Line 61: warning: comment on exported function GetLocale should be of the form "GetLocale ..." (golint)
    • tom/go-tom/model/project.go
    • Line 11: warning: exported type ProjectProperties should have comment or be unexported (golint)
    • Line 16: warning: exported type Project should have comment or be unexported (golint)
    • Line 26: warning: exported method Project.GetFullName should have comment or be unexported (golint)
    • Line 30: warning: exported method Project.Parent should have comment or be unexported (golint)
    • Line 39: warning: exported method Project.Validate should have comment or be unexported (golint)
    • Line 49: warning: exported method Project.HourlyRate should have comment or be unexported (golint)
    • Line 56: warning: exported method Project.IsNoteRequired should have comment or be unexported (golint)
    • Line 63: warning: exported method Project.SetHourlyRate should have comment or be unexported (golint)
    • Line 71: warning: exported method Project.SetNoteRequired should have comment or be unexported (golint)
    • Line 88: warning: exported type DetailedProject should have comment or be unexported (golint)
    • Line 90: warning: exported method DetailedProject.MarshalJSON should have comment or be unexported (golint)
    • tom/go-tom/cmd/root.go
    • Line 120: warning: don't use underscores in Go names; const bash_completion_func should be bashCompletionFunc (golint)
    • Line 151: warning: exported var RootCmd should have comment or be unexported (golint)
    • Line 191: warning: exported function Execute should have comment or be unexported (golint)
    • tom/go-tom/model/project_list.go
    • Line 8: warning: exported type ProjectList should have comment or be unexported (golint)
    • Line 10: warning: exported method ProjectList.Empty should have comment or be unexported (golint)
    • Line 14: warning: exported method ProjectList.Size should have comment or be unexported (golint)
    • Line 18: warning: exported method ProjectList.Projects should have comment or be unexported (golint)
    • Line 22: warning: exported method ProjectList.First should have comment or be unexported (golint)
    • Line 29: warning: exported method ProjectList.Last should have comment or be unexported (golint)
    • Line 36: warning: exported method ProjectList.SortByFullname should have comment or be unexported (golint)
    • tom/go-tom/model/tag.go
    • Line 8: warning: exported type Tag should have comment or be unexported (golint)
    • Line 13: warning: exported method Tag.Validate should have comment or be unexported (golint)
    • tom/go-tom/dateTime/rounding.go
    • Line 1: warning: don't use MixedCaps in package name; dateTime should be datetime (golint)
    • Line 11: warning: exported type RoundingMode should have comment or be unexported (golint)
    • Line 14: warning: exported const RoundNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported method RoundingMode.MarshalJSON should have comment or be unexported (golint)
    • Line 36: warning: exported method RoundingMode.UnmarshalJSON should have comment or be unexported (golint)
    • Line 46: warning: exported function RoundingByName should have comment or be unexported (golint)
    • Line 57: warning: exported function RoundingNone should have comment or be unexported (golint)
    • Line 64: warning: exported function RoundingUp should have comment or be unexported (golint)
    • Line 71: warning: exported function RoundingNearest should have comment or be unexported (golint)
    • Line 78: warning: exported type RoundingConfig should have comment or be unexported (golint)
    • Line 83: warning: exported method RoundingConfig.MarshalJSON should have comment or be unexported (golint)
    • Line 93: warning: exported method RoundingConfig.UnmarshalJSON should have comment or be unexported (golint)
    • tom/go-tom/money/money.go
    • Line 13: warning: exported function Parse should have comment or be unexported (golint)
    • Line 42: warning: exported type Money should have comment or be unexported (golint)
    • Line 46: warning: exported method Money.MarshalJSON should have comment or be unexported (golint)
    • Line 56: warning: exported method Money.UnmarshalJSON should have comment or be unexported (golint)
    • Line 70: warning: exported function NewMoney should have comment or be unexported (golint)
    • Line 76: warning: exported method Money.Add should have comment or be unexported (golint)
    • Line 86: warning: exported method Money.Multiple should have comment or be unexported (golint)
    • Line 91: warning: exported method Money.Amount should have comment or be unexported (golint)
    • Line 99: warning: exported method Money.ParsableString should have comment or be unexported (golint)
    • Line 103: warning: exported method Money.Currency should have comment or be unexported (golint)
    • Line 107: warning: exported method Money.CurrencyCode should have comment or be unexported (golint)
    • tom/go-tom/storeHelper/helper.go
    • Line 1: warning: don't use MixedCaps in package name; storeHelper should be storehelper (golint)
    • Line 11: warning: exported function NewStoreHelper should have comment or be unexported (golint)
    • Line 18: warning: exported type Helper should have comment or be unexported (golint)
    • Line 23: warning: exported method Helper.GetOrCreateTag should have comment or be unexported (golint)
    • Line 35: warning: exported method Helper.GetOrCreateNestedProject should have comment or be unexported (golint)
    • Line 39: warning: exported method Helper.GetOrCreateNestedProjectNames should have comment or be unexported (golint)
    • Line 65: warning: exported method Helper.GetOrCreateProject should have comment or be unexported (golint)
    • Line 82: warning: exported method Helper.RenameProjectByIDOrName should have comment or be unexported (golint)
    • Line 98: warning: exported method Helper.RenameProject should have comment or be unexported (golint)
    • Line 135: warning: exported method Helper.MoveProject should have comment or be unexported (golint)
    • Line 153: warning: exported method Helper.RemoveProject should have comment or be unexported (golint)
    • tom/go-tom/activity/activity.go
    • Line 13: warning: error var ProjectNotFoundErr should have name of the form ErrFoo (golint)
    • Line 13: warning: exported var ProjectNotFoundErr should have comment or be unexported (golint)
    • Line 14: warning: error var NoteRequiredErr should have name of the form ErrFoo (golint)
    • Line 14: warning: exported var NoteRequiredErr should have comment or be unexported (golint)
    • Line 16: warning: exported type Control should have comment or be unexported (golint)
    • Line 24: warning: exported function NewActivityControl should have comment or be unexported (golint)
    • Line 34: warning: exported method Control.Start should have comment or be unexported (golint)
    • Line 55: warning: exported method Control.StopNewest should have comment or be unexported (golint)
    • Line 68: warning: exported method Control.StopAll should have comment or be unexported (golint)
    • tom/go-tom/invoice/sevdesk/invoice.go
    • Line 9: warning: exported type InvoiceType should have comment or be unexported (golint)
    • Line 11: warning: exported const TypeInvoice should have comment or be unexported (golint)
    • Line 13: warning: exported type Currency should have comment or be unexported (golint)
    • Line 15: warning: exported const USD should have comment or be unexported (golint)
    • Line 17: warning: exported type TaxType should have comment or be unexported (golint)
    • Line 19: warning: exported const TaxTypeNotEU should have comment or be unexported (golint)
    • Line 20: warning: exported const TaxTypeDefault should have comment or be unexported (golint)
    • Line 22: warning: exported type IDWithType should have comment or be unexported (golint)
    • Line 27: warning: exported type Invoice should have comment or be unexported (golint)
    • Line 68: warning: exported type InvoicePosition should have comment or be unexported (golint)
    • Line 76: warning: exported type Quantity should have comment or be unexported (golint)
    • Line 94: warning: exported type InvoiceResponse should have comment or be unexported (golint)
    • Line 160: warning: exported method InvoiceResponse.BrowserURL should have comment or be unexported (golint)
    • Line 164: warning: exported type InvoicePosResponse should have comment or be unexported (golint)
    • tom/go-tom/config/config.go
    • Line 11: warning: exported const KeyDataDir should have comment or be unexported (golint)
    • Line 12: warning: exported const KeyBackupDir should have comment or be unexported (golint)
    • Line 13: warning: exported const KeyIsoDates should have comment or be unexported (golint)
    • Line 14: warning: exported const KeyMaxBackups should have comment or be unexported (golint)
    • Line 15: warning: exported const KeyActivityStopOnStart should have comment or be unexported (golint)
    • Line 16: warning: exported const KeyProjectCreateMissing should have comment or be unexported (golint)
    • Line 18: warning: exported var Keys should have comment or be unexported (golint)
    • Line 26: warning: exported const ConfigFilename should have comment or be unexported (golint)
    • Line 28: warning: exported function SetDefaults should have comment or be unexported (golint)
    • tom/go-tom/query/storeQuery.go
    • Line 14: warning: exported type StoreQuery should have comment or be unexported (golint)
    • Line 44: warning: exported function NewStoreQuery should have comment or be unexported (golint)
    • Line 165: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 248: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • tom/go-tom/report/bucket.go
    • Line 13: warning: exported type ResultBucket should have comment or be unexported (golint)
    • Line 33: warning: exported method ResultBucket.Update should have comment or be unexported (golint)
    • Line 89: warning: exported method ResultBucket.AppliedFilterRange should have comment or be unexported (golint)
    • Line 101: warning: exported method ResultBucket.AddChild should have comment or be unexported (golint)
    • Line 108: warning: exported method ResultBucket.TrackedDateRange should have comment or be unexported (golint)
    • Line 112: warning: exported method ResultBucket.DateRange should have comment or be unexported (golint)
    • Line 116: warning: exported method ResultBucket.Depth should have comment or be unexported (golint)
    • Line 131: warning: exported method ResultBucket.Empty should have comment or be unexported (golint)
    • Line 135: warning: exported method ResultBucket.EmptySource should have comment or be unexported (golint)
    • Line 139: warning: exported method ResultBucket.IsRounded should have comment or be unexported (golint)
    • Line 143: warning: exported method ResultBucket.IsDateBucket should have comment or be unexported (golint)
    • Line 147: warning: exported method ResultBucket.IsProjectBucket should have comment or be unexported (golint)
    • Line 152: warning: exported method ResultBucket.HasDailyTracked should have comment or be unexported (golint)
    • Line 156: warning: exported method ResultBucket.HasDailyUnTracked should have comment or be unexported (golint)
    • Line 160: warning: exported method ResultBucket.GetDailyTracked should have comment or be unexported (golint)
    • Line 164: warning: exported method ResultBucket.GetDailyUnTracked should have comment or be unexported (golint)
    • Line 168: warning: exported method ResultBucket.FindProjectBucket should have comment or be unexported (golint)
    • Line 177: warning: exported method ResultBucket.FilterResults should have comment or be unexported (golint)
    • Line 187: warning: exported method ResultBucket.ProjectResults should have comment or be unexported (golint)
    • Line 197: warning: exported method ResultBucket.HasRoundedChildren should have comment or be unexported (golint)
    • Line 206: warning: exported method ResultBucket.EmptyChildren should have comment or be unexported (golint)
    • Line 216: warning: exported method ResultBucket.FirstNonEmptyChild should have comment or be unexported (golint)
    • Line 225: warning: exported method ResultBucket.Title should have comment or be unexported (golint)
    • Line 263: warning: exported method ResultBucket.MatrixTitle should have comment or be unexported (golint)
    • Line 270: warning: exported method ResultBucket.SortChildBuckets should have comment or be unexported (golint)
    • Line 287: warning: exported method ResultBucket.SplitByProjectID should have comment or be unexported (golint)
    • Line 316: warning: exported method ResultBucket.SplitByDateRange should have comment or be unexported (golint)
    • Line 375: warning: exported method ResultBucket.WithLeafBuckets should have comment or be unexported (golint)
    • Line 386: warning: exported method ResultBucket.FindFirstParent should have comment or be unexported (golint)
    • Line 397: warning: exported method ResultBucket.FindProjectParent should have comment or be unexported (golint)
    • tom/go-tom/util/strings.go
    • Line 3: warning: exported function MapStrings should have comment or be unexported (golint)
    • Line 13: warning: exported function StringP should have comment or be unexported (golint)
    • tom/go-tom/report/report.go
    • Line 12: warning: exported type BucketReport should have comment or be unexported (golint)
    • Line 19: warning: exported function NewBucketReport should have comment or be unexported (golint)
    • Line 28: warning: exported method BucketReport.Result should have comment or be unexported (golint)
    • Line 32: warning: exported method BucketReport.Update should have comment or be unexported (golint)
    • Line 106: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 133: warning: exported function IsMatrix should have comment or be unexported (golint)
    • tom/go-tom-pdf/converter/docraptor/docraptor.go
    • Line 17: warning: exported function NewConverter should have comment or be unexported (golint)
    • Line 65: warning: exported type DocumentType should have comment or be unexported (golint)
    • Line 67: warning: exported const PDF should have comment or be unexported (golint)
    • Line 68: warning: exported const XLS should have comment or be unexported (golint)
    • Line 69: warning: exported const XLSX should have comment or be unexported (golint)
    • Line 71: warning: exported type MediaType should have comment or be unexported (golint)
    • Line 73: warning: exported const PRINT should have comment or be unexported (golint)
    • Line 74: warning: exported const SCREEN should have comment or be unexported (golint)
    • Line 76: warning: exported type PrinceOptions should have comment or be unexported (golint)
    • Line 81: warning: exported type Request should have comment or be unexported (golint)
    • Line 92: warning: exported type Response should have comment or be unexported (golint)
    • tom/go-tom/i18n/timePrinter.go
    • Line 9: warning: exported type DateTimePrinter should have comment or be unexported (golint)
    • Line 19: warning: exported function NewDateTimePrinter should have comment or be unexported (golint)
    • tom/go-tom/i18n_dummy.go
    • Line 1: warning: package comment should be of the form "Package tom ..." (golint)
    • Line 10: warning: don't use underscores in Go names; func i18n_dummy should be i18nDummy (golint)
    • tom/go-tom/htmlreport/htmlreport.go
    • Line 24: warning: exported type Report should have comment or be unexported (golint)
    • Line 30: warning: exported type Options should have comment or be unexported (golint)
    • Line 48: warning: exported var DefaultOptions should have comment or be unexported (golint)
    • Line 52: warning: exported function NewReport should have comment or be unexported (golint)
    • Line 60: warning: exported method Report.Render should have comment or be unexported (golint)
    • tom/go-tom/util/log.go
    • Line 8: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 13: warning: exported function Fatalf should have comment or be unexported (golint)
    • tom/go-tom/invoice/sevdesk/client_invoice.go
    • Line 9: warning: exported method Client.NewInvoice should have comment or be unexported (golint)
    • Line 33: warning: exported method Client.NewQuantity should have comment or be unexported (golint)
    • Line 36: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 41: warning: exported method Client.NewInvoicePosition should have comment or be unexported (golint)
    • Line 56: warning: exported method Client.GetInvoices should have comment or be unexported (golint)
    • Line 61: warning: exported method Client.DeleteInvoice should have comment or be unexported (golint)
    • Line 65: warning: exported method Client.CreateInvoice should have comment or be unexported (golint)
    • Line 78: warning: exported method Client.CreateInvoicePos should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.FetchNextInvoiceID should have comment or be unexported (golint)
    • tom/go-tom/report/project_report.go
    • Line 11: warning: exported function NewProjectSummary should have comment or be unexported (golint)
    • Line 49: warning: exported type ProjectSummary should have comment or be unexported (golint)
    • Line 82: warning: exported method ProjectSummary.Add should have comment or be unexported (golint)
    • Line 98: warning: exported function CreateProjectReports should have comment or be unexported (golint)
    • tom/go-tom/report/sales.go
    • Line 10: warning: exported function NewSales should have comment or be unexported (golint)
    • Line 19: warning: exported type Sales should have comment or be unexported (golint)
    • Line 27: warning: exported method Sales.Add should have comment or be unexported (golint)
    • Line 50: warning: exported method Sales.AddSales should have comment or be unexported (golint)
    • Line 74: warning: exported method Sales.Exact should have comment or be unexported (golint)
    • Line 84: warning: exported method Sales.Rounded should have comment or be unexported (golint)
    • tom/go-tom/dateTime/DurationSum.go
    • Line 1: warning: don't use MixedCaps in package name; dateTime should be datetime (golint)
    • Line 7: warning: exported function NewDurationSum should have comment or be unexported (golint)
    • Line 11: warning: exported function NewDurationSumWithRef should have comment or be unexported (golint)
    • Line 17: warning: exported function NewEmptyCopy should have comment or be unexported (golint)
    • Line 21: warning: exported function NewDurationSumFiltered should have comment or be unexported (golint)
    • Line 28: warning: exported function NewDurationSumAll should have comment or be unexported (golint)
    • Line 36: warning: exported type DurationSum should have comment or be unexported (golint)
    • Line 45: warning: exported method DurationSum.IsZero should have comment or be unexported (golint)
    • Line 49: warning: exported method DurationSum.IsRoundedZero should have comment or be unexported (golint)
    • Line 53: warning: exported method DurationSum.IsRounded should have comment or be unexported (golint)
    • Line 57: warning: exported method DurationSum.CalculateRoundedDuration should have comment or be unexported (golint)
    • Line 61: warning: exported method DurationSum.AddSum should have comment or be unexported (golint)
    • Line 67: warning: exported method DurationSum.AddRange should have comment or be unexported (golint)
    • Line 71: warning: exported method DurationSum.AddStartEnd should have comment or be unexported (golint)
    • Line 75: warning: exported method DurationSum.AddStartEndP should have comment or be unexported (golint)
    • Line 83: warning: exported method DurationSum.Add should have comment or be unexported (golint)
    • Line 88: warning: exported method DurationSum.Get should have comment or be unexported (golint)
    • Line 92: warning: exported method DurationSum.GetExact should have comment or be unexported (golint)
    • tom/go-tom/dateTime/util.go
    • Line 1: warning: don't use MixedCaps in package name; dateTime should be datetime (golint)
    • Line 9: warning: exported function ParseRoundingMode should have comment or be unexported (golint)
    • Line 25: warning: exported function RoundDuration should have comment or be unexported (golint)
    • Line 42: warning: exported function ShortDateString should have comment or be unexported (golint)
    • tom/go-tom/util/tristate/tristate.go
    • Line 9: warning: exported type Tristate should have comment or be unexported (golint)
    • Line 12: warning: exported const False should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported function FalseP should have comment or be unexported (golint)
    • Line 22: warning: exported function TrueP should have comment or be unexported (golint)
    • Line 27: warning: exported function InheritedP should have comment or be unexported (golint)
    • Line 32: warning: exported function FromBool should have comment or be unexported (golint)
    • Line 42: warning: exported function FromString should have comment or be unexported (golint)
    • Line 55: warning: exported method Tristate.ToBool should have comment or be unexported (golint)
    • Line 65: warning: exported method Tristate.IsInherited should have comment or be unexported (golint)
    • Line 69: warning: exported method Tristate.IsTrue should have comment or be unexported (golint)
    • Line 73: warning: exported method Tristate.IsFalse should have comment or be unexported (golint)
    • tom/go-tom/model/frame.go
    • Line 11: warning: exported function NewStartedFrame should have comment or be unexported (golint)
    • Line 21: warning: exported type Frame should have comment or be unexported (golint)
    • Line 49: warning: exported method Frame.AddTagID should have comment or be unexported (golint)
    • Line 58: warning: exported method Frame.RemoveTagID should have comment or be unexported (golint)
    • Line 65: warning: exported method Frame.AddTags should have comment or be unexported (golint)
    • Line 71: warning: exported method Frame.HasTag should have comment or be unexported (golint)
    • Line 80: warning: exported method Frame.IsStopped should have comment or be unexported (golint)
    • Line 84: warning: exported method Frame.IsSingleDay should have comment or be unexported (golint)
    • Line 95: warning: exported method Frame.IsActive should have comment or be unexported (golint)
    • Line 99: warning: exported method Frame.Stop should have comment or be unexported (golint)
    • Line 103: warning: exported method Frame.StopAt should have comment or be unexported (golint)
    • Line 108: warning: exported method Frame.Duration should have comment or be unexported (golint)
    • Line 115: warning: exported method Frame.ActiveDuration should have comment or be unexported (golint)
    • Line 122: warning: exported method Frame.Intersection should have comment or be unexported (golint)
    • Line 169: warning: exported method Frame.IsBefore should have comment or be unexported (golint)
    • Line 173: warning: exported method Frame.IsAfter should have comment or be unexported (golint)
    • Line 177: warning: exported method Frame.Validate should have comment or be unexported (golint)
    • tom/go-tom/model/frame_list.go
    • Line 12: warning: exported function NewFrameList should have comment or be unexported (golint)
    • Line 17: warning: exported function NewSortedFrameList should have comment or be unexported (golint)
    • Line 23: warning: exported function NewEmptyFrameList should have comment or be unexported (golint)
    • Line 27: warning: exported type FrameList should have comment or be unexported (golint)
    • Line 29: warning: exported method FrameList.Copy should have comment or be unexported (golint)
    • Line 33: warning: exported method FrameList.Empty should have comment or be unexported (golint)
    • Line 37: warning: exported method FrameList.Frames should have comment or be unexported (golint)
    • Line 41: warning: exported method FrameList.Size should have comment or be unexported (golint)
    • Line 45: warning: exported method FrameList.Append should have comment or be unexported (golint)
    • Line 49: warning: exported method FrameList.First should have comment or be unexported (golint)
    • Line 56: warning: exported method FrameList.Last should have comment or be unexported (golint)
    • Line 63: warning: exported method FrameList.Sort should have comment or be unexported (golint)
    • Line 71: warning: exported method FrameList.FilterByStartDate should have comment or be unexported (golint)
    • Line 81: warning: exported method FrameList.FilterByEndDate should have comment or be unexported (golint)
    • Line 91: warning: exported method FrameList.FilterByDateRange should have comment or be unexported (golint)
    • Line 105: warning: exported method FrameList.FilterByDate should have comment or be unexported (golint)
    • Line 109: warning: exported method FrameList.FilterByDatePtr should have comment or be unexported (golint)
    • Line 125: warning: exported method FrameList.Filter should have comment or be unexported (golint)
    • Line 137: warning: exported method FrameList.ExcludeArchived should have comment or be unexported (golint)
    • Line 196: warning: exported method FrameList.MapByProject should have comment or be unexported (golint)
    • Line 211: warning: exported method FrameList.DateRange should have comment or be unexported (golint)
    • tom/go-tom/invoice/sevdesk/sevdesk.go
    • Line 14: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 23: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.LoadBasicData should have comment or be unexported (golint)
    • Line 38: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 45: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • tom/go-tom/report/split.go
    • Line 8: warning: exported type SplitOperation should have comment or be unexported (golint)
    • Line 11: warning: exported const SplitByYear should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported function SplitOperationByName should have comment or be unexported (golint)
    • Line 35: warning: exported method SplitOperation.IsDateSplit should have comment or be unexported (golint)
    • Line 55: warning: exported method SplitOperation.MarshalJSON should have comment or be unexported (golint)
    • Line 59: warning: exported method SplitOperation.UnmarshalJSON should have comment or be unexported (golint)
    • Line 59: warning: receiver name r should be consistent with previous receiver name s for SplitOperation (golint)
    • tom/go-tom/dataImport/importHandler.go
    • Line 1: warning: don't use MixedCaps in package name; dataImport should be dataimport (golint)
    • Line 9: warning: exported type Result should have comment or be unexported (golint)
    • Line 20: warning: exported type Handler should have comment or be unexported (golint)
    • tom/go-tom/i18n/durationPrinter.go
    • Line 26: warning: exported type DurationPrinter should have comment or be unexported (golint)
    • Line 32: warning: exported function NewDurationPrinter should have comment or be unexported (golint)
    • Line 37: warning: exported function NewDecimalDurationPrinter should have comment or be unexported (golint)
    • tom/go-tom/util/bools.go
    • Line 3: warning: exported function FalseP should have comment or be unexported (golint)
    • Line 8: warning: exported function TrueP should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • tom/go-tom/cmd/edit/edit_project_test.go
    • Line 101: warning: ineffectual assignment to err (ineffassign)
    • Line 105: warning: ineffectual assignment to err (ineffassign)
    • Line 109: warning: ineffectual assignment to err (ineffassign)
    • Line 122: warning: ineffectual assignment to err (ineffassign)
    • Line 126: warning: ineffectual assignment to err (ineffassign)
    • Line 131: warning: ineffectual assignment to err (ineffassign)
    • Line 136: warning: ineffectual assignment to err (ineffassign)

misspell98%

Misspell Finds commonly misspelled English words