Preparing report...

Report for github.com/freemed/remitt-server

A    Great!    Found 28 issues across 49 files

Tweet

gofmt83%

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!


gocyclo97%

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.


golint42%

Golint is a linter for Go source code.

    • remitt-server/model/fixedformxml.go
    • Line 7: warning: exported type FixedFormXml should have comment or be unexported (golint)
    • Line 12: warning: exported type FixedFormPage should have comment or be unexported (golint)
    • Line 35: warning: exported type FixedElement should have comment or be unexported (golint)
    • remitt-server/model/pluginoptions.go
    • Line 6: warning: exported const TABLE_PLUGIN_OPTIONS should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type PluginOptionsModel should have comment or be unexported (golint)
    • remitt-server/model/pluginoptiontransform.go
    • Line 6: warning: exported const TABLE_PLUGIN_OPTION_TRANSFORM should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type PluginOptionTransformModel should have comment or be unexported (golint)
    • remitt-server/model/plugins.go
    • Line 6: warning: exported const TABLE_PLUGINS should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type PluginsModel should have comment or be unexported (golint)
    • Line 22: warning: exported function GetPluginsForCategory should have comment or be unexported (golint)
    • remitt-server/common/map.go
    • Line 8: warning: exported var ApiMap should have comment or be unexported (golint)
    • Line 11: warning: exported type ApiMapping should have comment or be unexported (golint)
    • remitt-server/model/db.go
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 16: warning: exported var DbTables should have comment or be unexported (golint)
    • Line 20: warning: exported type DbTable should have comment or be unexported (golint)
    • Line 26: warning: exported function InitDb should have comment or be unexported (golint)
    • Line 61: warning: exported function MigrateDb should have comment or be unexported (golint)
    • remitt-server/model/userconfig.go
    • Line 6: warning: exported const TABLE_USER_CONFIG should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type UserConfigModel should have comment or be unexported (golint)
    • Line 20: warning: exported function GetConfigValues should have comment or be unexported (golint)
    • Line 26: warning: exported function SetConfigValue should have comment or be unexported (golint)
    • remitt-server/config/config.go
    • Line 10: warning: exported var Config should have comment or be unexported (golint)
    • Line 13: warning: exported type AppConfig should have comment or be unexported (golint)
    • Line 35: warning: exported method AppConfig.SetDefaults should have comment or be unexported (golint)
    • Line 47: warning: exported function LoadConfigWithDefaults should have comment or be unexported (golint)
    • remitt-server/model/user.go
    • Line 9: warning: exported const TABLE_USER should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type UserModel should have comment or be unexported (golint)
    • Line 27: warning: exported method UserModel.UniqueId should have comment or be unexported (golint)
    • Line 39: warning: exported function GetUserById should have comment or be unexported (golint)
    • Line 56: warning: exported function BasicAuthCallback should have comment or be unexported (golint)
    • Line 61: warning: exported function CheckUserPassword should have comment or be unexported (golint)
    • remitt-server/model/scooper.go
    • Line 8: warning: exported const TABLE_SCOOPER should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type ScooperModel should have comment or be unexported (golint)
    • remitt-server/model/translation.go
    • Line 6: warning: exported const TABLE_TRANSLATION should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type TranslationModel should have comment or be unexported (golint)
    • remitt-server/model/x12xml.go
    • Line 7: warning: exported type X12Xml should have comment or be unexported (golint)
    • Line 16: warning: exported type X12Segment should have comment or be unexported (golint)
    • Line 22: warning: exported type X12Element should have comment or be unexported (golint)
    • remitt-server/translation/x12xml.go
    • Line 14: warning: exported type TranslateX12Xml should have comment or be unexported (golint)
    • Line 20: warning: exported method TranslateX12Xml.Resolver should have comment or be unexported (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 24: warning: exported method TranslateX12Xml.Translate should have comment or be unexported (golint)
    • Line 24: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 47: warning: exported method TranslateX12Xml.RightPad should have comment or be unexported (golint)
    • Line 47: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 55: warning: exported method TranslateX12Xml.LeftZeroPad should have comment or be unexported (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 63: warning: exported method TranslateX12Xml.RenderSegment should have comment or be unexported (golint)
    • Line 63: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • remitt-server/model/eligibilityjobs.go
    • Line 8: warning: exported const TABLE_ELIGIBILITY_JOBS should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type EligibilityJobsModel should have comment or be unexported (golint)
    • remitt-server/model/jobs.go
    • Line 6: warning: exported const TABLE_JOBS should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type JobsModel should have comment or be unexported (golint)
    • remitt-server/model/keyring.go
    • Line 6: warning: exported const TABLE_KEY_RING should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type KeyringModel should have comment or be unexported (golint)
    • remitt-server/model/nullint.go
    • Line 18: warning: exported method NullInt64.MarshalJSON should have comment or be unexported (golint)
    • Line 25: warning: exported method NullInt64.UnmarshalJSON should have comment or be unexported (golint)
    • remitt-server/common/util.go
    • Line 16: warning: exported var IsRunning should have comment or be unexported (golint)
    • Line 19: warning: exported function Md5hash should have comment or be unexported (golint)
    • Line 23: warning: exported function SleepFor should have comment or be unexported (golint)
    • Line 32: warning: exported function JsonEncode should have comment or be unexported (golint)
    • Line 41: warning: exported function BodyFromContext should have comment or be unexported (golint)
    • Line 46: warning: exported function ParamInt should have comment or be unexported (golint)
    • Line 54: warning: exported function ParamMustInt should have comment or be unexported (golint)
    • remitt-server/model/filestore.go
    • Line 8: warning: exported const TABLE_FILE_STORE should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type FileStoreModel should have comment or be unexported (golint)
    • remitt-server/model/nulltime.go
    • Line 8: warning: exported type NullTime should have comment or be unexported (golint)
    • Line 29: warning: exported method NullTime.MarshalJSON should have comment or be unexported (golint)
    • Line 36: warning: exported method NullTime.UnmarshalJSON should have comment or be unexported (golint)
    • Line 47: warning: exported function NullTimeNow should have comment or be unexported (golint)
    • remitt-server/jobqueue/jobqueue.go
    • Line 20: warning: exported const JobStatusQueued should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported var WorkerQueue should have comment or be unexported (golint)
    • Line 69: warning: exported method JobQueueItem.ReadLock should have comment or be unexported (golint)
    • Line 73: warning: exported method JobQueueItem.Lock should have comment or be unexported (golint)
    • Line 77: warning: exported method JobQueueItem.ReadUnlock should have comment or be unexported (golint)
    • Line 81: warning: exported method JobQueueItem.Unlock should have comment or be unexported (golint)
    • Line 85: warning: exported method JobQueueItem.AppendLog should have comment or be unexported (golint)
    • Line 102: warning: exported method JobQueueItem.IsCancelled should have comment or be unexported (golint)
    • Line 106: warning: exported method JobQueueItem.Cancel should have comment or be unexported (golint)
    • Line 113: warning: exported method JobQueueItem.Finish should have comment or be unexported (golint)
    • Line 120: warning: exported method JobQueueItem.Fail should have comment or be unexported (golint)
    • Line 129: warning: exported method JobQueueItem.Render should have comment or be unexported (golint)
    • remitt-server/model/nullstring.go
    • Line 16: warning: exported function NewNullStringValue should have comment or be unexported (golint)
    • Line 22: warning: exported method NullString.MarshalJSON should have comment or be unexported (golint)
    • Line 29: warning: exported method NullString.UnmarshalJSON should have comment or be unexported (golint)
    • remitt-server/common/cmd.go
    • Line 11: warning: exported function RunWithTimeout should have comment or be unexported (golint)
    • Line 44: 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 52: warning: exported function ExitCodeFromCommand should have comment or be unexported (golint)
    • remitt-server/translation/fixedformpdf.go
    • Line 24: warning: exported type TranslateFixedFormPDF should have comment or be unexported (golint)
    • Line 30: warning: exported method TranslateFixedFormPDF.Resolver should have comment or be unexported (golint)
    • Line 34: warning: exported method TranslateFixedFormPDF.Translate should have comment or be unexported (golint)
    • Line 80: warning: exported method TranslateFixedFormPDF.RenderPage should have comment or be unexported (golint)
    • Line 117: warning: exported method TranslateFixedFormPDF.RenderElement should have comment or be unexported (golint)
    • Line 165: warning: exported method TranslateFixedFormPDF.RightPad should have comment or be unexported (golint)
    • Line 173: warning: exported method TranslateFixedFormPDF.LeftZeroPad should have comment or be unexported (golint)
    • remitt-server/model/payload.go
    • Line 8: warning: exported const TABLE_PAYLOAD should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type PayloadModel should have comment or be unexported (golint)
    • remitt-server/model/processor.go
    • Line 6: warning: exported const TABLE_PROCESSOR should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type ProcessorModel 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!