Preparing report...

Report for github.com/SimonBaeumer/goss

A+    Excellent!    Found 52 issues across 95 files

Tweet

gofmt94%

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!


golint46%

Golint is a linter for Go source code.

    • goss/system/package_deb.go
    • Line 10: warning: exported type DebPackage should have comment or be unexported (golint)
    • Line 17: warning: exported function NewDebPackage should have comment or be unexported (golint)
    • Line 43: warning: exported method DebPackage.Name should have comment or be unexported (golint)
    • Line 47: warning: exported method DebPackage.Exists should have comment or be unexported (golint)
    • Line 49: warning: exported method DebPackage.Installed should have comment or be unexported (golint)
    • Line 55: warning: exported method DebPackage.Versions should have comment or be unexported (golint)
    • goss/system/process.go
    • Line 11: warning: exported type Process should have comment or be unexported (golint)
    • Line 18: warning: exported type DefProcess should have comment or be unexported (golint)
    • Line 23: warning: exported function NewDefProcess should have comment or be unexported (golint)
    • Line 30: warning: exported method DefProcess.Executable should have comment or be unexported (golint)
    • Line 34: warning: exported method DefProcess.Exists should have comment or be unexported (golint)
    • Line 36: warning: exported method DefProcess.Pids should have comment or be unexported (golint)
    • Line 44: warning: exported method DefProcess.Running should have comment or be unexported (golint)
    • Line 51: warning: exported function GetProcs should have comment or be unexported (golint)
    • goss/system/service_init.go
    • Line 11: warning: exported type ServiceInit should have comment or be unexported (golint)
    • Line 16: warning: exported function NewServiceInit should have comment or be unexported (golint)
    • Line 20: warning: exported function NewAlpineServiceInit should have comment or be unexported (golint)
    • Line 24: warning: exported method ServiceInit.Service should have comment or be unexported (golint)
    • Line 28: warning: exported method ServiceInit.Exists should have comment or be unexported (golint)
    • Line 38: warning: exported method ServiceInit.Enabled 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 (golint)
    • Line 49: warning: exported method ServiceInit.Running should have comment or be unexported (golint)
    • goss/system/dns.go
    • Line 15: warning: exported type DNS should have comment or be unexported (golint)
    • Line 24: warning: exported type DefDNS should have comment or be unexported (golint)
    • Line 184: warning: comment on exported function LookupHost should be of the form "LookupHost ..." (golint)
    • Line 193: warning: comment on exported function LookupA should be of the form "LookupA ..." (golint)
    • Line 210: warning: comment on exported function LookupAAAA should be of the form "LookupAAAA ..." (golint)
    • Line 227: warning: comment on exported function LookupCNAME should be of the form "LookupCNAME ..." (golint)
    • Line 244: warning: comment on exported function LookupMX should be of the form "LookupMX ..." (golint)
    • Line 262: warning: comment on exported function LookupNS should be of the form "LookupNS ..." (golint)
    • Line 279: warning: comment on exported function LookupSRV should be of the form "LookupSRV ..." (golint)
    • Line 300: warning: comment on exported function LookupTXT should be of the form "LookupTXT ..." (golint)
    • Line 317: warning: comment on exported function LookupPTR should be of the form "LookupPTR ..." (golint)
    • Line 339: warning: comment on exported function LookupCAA should be of the form "LookupCAA ..." (golint)
    • goss/serve.go
    • Line 17: warning: comment on exported type HealthHandler should be of the form "HealthHandler ..." (with optional leading article) (golint)
    • goss/resource/command.go
    • Line 13: warning: exported type Command should have comment or be unexported (golint)
    • Line 23: warning: exported method Command.ID should have comment or be unexported (golint)
    • Line 24: warning: exported method Command.SetID should have comment or be unexported (golint)
    • Line 26: warning: exported method Command.GetTitle should have comment or be unexported (golint)
    • Line 27: warning: exported method Command.GetMeta should have comment or be unexported (golint)
    • Line 29: warning: exported method Command.Validate should have comment or be unexported (golint)
    • Line 48: warning: exported function NewCommand should have comment or be unexported (golint)
    • goss/resource/user.go
    • Line 10: warning: exported type User should have comment or be unexported (golint)
    • Line 22: warning: exported method User.ID should have comment or be unexported (golint)
    • Line 23: warning: exported method User.SetID should have comment or be unexported (golint)
    • Line 25: warning: exported method User.GetTitle should have comment or be unexported (golint)
    • Line 26: warning: exported method User.GetMeta should have comment or be unexported (golint)
    • Line 28: warning: exported method User.Validate should have comment or be unexported (golint)
    • Line 57: warning: exported function NewUser should have comment or be unexported (golint)
    • goss/system/service_systemd.go
    • Line 10: warning: exported type ServiceSystemd should have comment or be unexported (golint)
    • Line 14: warning: exported function NewServiceSystemd should have comment or be unexported (golint)
    • Line 20: warning: exported method ServiceSystemd.Service should have comment or be unexported (golint)
    • Line 24: warning: exported method ServiceSystemd.Exists should have comment or be unexported (golint)
    • Line 41: warning: exported method ServiceSystemd.Enabled should have comment or be unexported (golint)
    • Line 58: warning: exported method ServiceSystemd.Running should have comment or be unexported (golint)
    • goss/system/port.go
    • Line 11: warning: exported type Port should have comment or be unexported (golint)
    • Line 18: warning: exported type DefPort should have comment or be unexported (golint)
    • Line 23: warning: exported function NewDefPort should have comment or be unexported (golint)
    • Line 45: warning: exported method DefPort.Port should have comment or be unexported (golint)
    • Line 49: warning: exported method DefPort.Exists should have comment or be unexported (golint)
    • Line 51: warning: exported method DefPort.Listening should have comment or be unexported (golint)
    • Line 58: warning: exported method DefPort.IP should have comment or be unexported (golint)
    • Line 66: warning: comment on exported function GetPorts should be of the form "GetPorts ..." (golint)
    • goss/system/group.go
    • Line 8: warning: exported type Group should have comment or be unexported (golint)
    • Line 14: warning: exported type DefGroup should have comment or be unexported (golint)
    • Line 18: warning: exported function NewDefGroup should have comment or be unexported (golint)
    • goss/system/package.go
    • Line 9: warning: exported type Package should have comment or be unexported (golint)
    • Line 16: warning: exported var ErrNullPackage should have comment or be unexported (golint)
    • Line 18: warning: exported type NullPackage should have comment or be unexported (golint)
    • Line 22: warning: exported function NewNullPackage should have comment or be unexported (golint)
    • Line 26: warning: exported method NullPackage.Name should have comment or be unexported (golint)
    • Line 28: warning: exported method NullPackage.Exists should have comment or be unexported (golint)
    • Line 30: warning: exported method NullPackage.Installed should have comment or be unexported (golint)
    • Line 34: warning: exported method NullPackage.Versions should have comment or be unexported (golint)
    • goss/system/package_rpm.go
    • Line 10: warning: exported type RpmPackage should have comment or be unexported (golint)
    • Line 17: warning: exported function NewRpmPackage should have comment or be unexported (golint)
    • Line 34: warning: exported method RpmPackage.Name should have comment or be unexported (golint)
    • Line 38: warning: exported method RpmPackage.Exists should have comment or be unexported (golint)
    • Line 40: warning: exported method RpmPackage.Installed should have comment or be unexported (golint)
    • Line 46: warning: exported method RpmPackage.Versions should have comment or be unexported (golint)
    • goss/resource/resource_list.go
    • Line 20: warning: exported type AddrMap should have comment or be unexported (golint)
    • Line 22: warning: exported var BlacklistedAutoAddHeaders should have comment or be unexported (golint)
    • Line 24: warning: exported method AddrMap.AppendSysResource should have comment or be unexported (golint)
    • Line 30: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 38: warning: exported method AddrMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 45: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 53: warning: exported method AddrMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 53: warning: receiver name ret should be consistent with previous receiver name r for AddrMap (golint)
    • Line 90: warning: exported method AddrMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 90: warning: receiver name ret should be consistent with previous receiver name r for AddrMap (golint)
    • Line 122: warning: exported type CommandMap should have comment or be unexported (golint)
    • Line 124: warning: exported method CommandMap.AppendSysResource should have comment or be unexported (golint)
    • Line 130: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 138: warning: exported method CommandMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 145: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 153: warning: exported method CommandMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 153: warning: receiver name ret should be consistent with previous receiver name r for CommandMap (golint)
    • Line 190: warning: exported method CommandMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 190: warning: receiver name ret should be consistent with previous receiver name r for CommandMap (golint)
    • Line 222: warning: exported type DNSMap should have comment or be unexported (golint)
    • Line 224: warning: exported method DNSMap.AppendSysResource should have comment or be unexported (golint)
    • Line 230: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 238: warning: exported method DNSMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 245: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 253: warning: exported method DNSMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 253: warning: receiver name ret should be consistent with previous receiver name r for DNSMap (golint)
    • Line 290: warning: exported method DNSMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 290: warning: receiver name ret should be consistent with previous receiver name r for DNSMap (golint)
    • Line 322: warning: exported type FileMap should have comment or be unexported (golint)
    • Line 324: warning: exported method FileMap.AppendSysResource should have comment or be unexported (golint)
    • Line 330: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 338: warning: exported method FileMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 345: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 353: warning: exported method FileMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 353: warning: receiver name ret should be consistent with previous receiver name r for FileMap (golint)
    • Line 390: warning: exported method FileMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 390: warning: receiver name ret should be consistent with previous receiver name r for FileMap (golint)
    • Line 422: warning: exported type GossfileMap should have comment or be unexported (golint)
    • Line 424: warning: exported method GossfileMap.AppendSysResource should have comment or be unexported (golint)
    • Line 430: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 438: warning: exported method GossfileMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 445: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 453: warning: exported method GossfileMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 453: warning: receiver name ret should be consistent with previous receiver name r for GossfileMap (golint)
    • Line 490: warning: exported method GossfileMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 490: warning: receiver name ret should be consistent with previous receiver name r for GossfileMap (golint)
    • Line 522: warning: exported type GroupMap should have comment or be unexported (golint)
    • Line 524: warning: exported method GroupMap.AppendSysResource should have comment or be unexported (golint)
    • Line 530: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 538: warning: exported method GroupMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 545: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 553: warning: exported method GroupMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 553: warning: receiver name ret should be consistent with previous receiver name r for GroupMap (golint)
    • Line 590: warning: exported method GroupMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 590: warning: receiver name ret should be consistent with previous receiver name r for GroupMap (golint)
    • Line 622: warning: exported type PackageMap should have comment or be unexported (golint)
    • Line 624: warning: exported method PackageMap.AppendSysResource should have comment or be unexported (golint)
    • Line 630: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 638: warning: exported method PackageMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 645: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 653: warning: exported method PackageMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 653: warning: receiver name ret should be consistent with previous receiver name r for PackageMap (golint)
    • Line 690: warning: exported method PackageMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 690: warning: receiver name ret should be consistent with previous receiver name r for PackageMap (golint)
    • Line 722: warning: exported type PortMap should have comment or be unexported (golint)
    • Line 724: warning: exported method PortMap.AppendSysResource should have comment or be unexported (golint)
    • Line 730: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 738: warning: exported method PortMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 745: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 753: warning: exported method PortMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 753: warning: receiver name ret should be consistent with previous receiver name r for PortMap (golint)
    • Line 790: warning: exported method PortMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 790: warning: receiver name ret should be consistent with previous receiver name r for PortMap (golint)
    • Line 822: warning: exported type ProcessMap should have comment or be unexported (golint)
    • Line 824: warning: exported method ProcessMap.AppendSysResource should have comment or be unexported (golint)
    • Line 830: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 838: warning: exported method ProcessMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 845: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 853: warning: exported method ProcessMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 853: warning: receiver name ret should be consistent with previous receiver name r for ProcessMap (golint)
    • Line 890: warning: exported method ProcessMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 890: warning: receiver name ret should be consistent with previous receiver name r for ProcessMap (golint)
    • Line 922: warning: exported type ServiceMap should have comment or be unexported (golint)
    • Line 924: warning: exported method ServiceMap.AppendSysResource should have comment or be unexported (golint)
    • Line 930: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 938: warning: exported method ServiceMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 945: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 953: warning: exported method ServiceMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 953: warning: receiver name ret should be consistent with previous receiver name r for ServiceMap (golint)
    • Line 990: warning: exported method ServiceMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 990: warning: receiver name ret should be consistent with previous receiver name r for ServiceMap (golint)
    • Line 1022: warning: exported type UserMap should have comment or be unexported (golint)
    • Line 1024: warning: exported method UserMap.AppendSysResource should have comment or be unexported (golint)
    • Line 1030: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 1038: warning: exported method UserMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 1045: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 1053: warning: exported method UserMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1053: warning: receiver name ret should be consistent with previous receiver name r for UserMap (golint)
    • Line 1090: warning: exported method UserMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 1090: warning: receiver name ret should be consistent with previous receiver name r for UserMap (golint)
    • Line 1122: warning: exported type KernelParamMap should have comment or be unexported (golint)
    • Line 1124: warning: exported method KernelParamMap.AppendSysResource should have comment or be unexported (golint)
    • Line 1130: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 1138: warning: exported method KernelParamMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 1145: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 1153: warning: exported method KernelParamMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1153: warning: receiver name ret should be consistent with previous receiver name r for KernelParamMap (golint)
    • Line 1190: warning: exported method KernelParamMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 1190: warning: receiver name ret should be consistent with previous receiver name r for KernelParamMap (golint)
    • Line 1222: warning: exported type MountMap should have comment or be unexported (golint)
    • Line 1224: warning: exported method MountMap.AppendSysResource should have comment or be unexported (golint)
    • Line 1230: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 1238: warning: exported method MountMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 1245: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 1253: warning: exported method MountMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1253: warning: receiver name ret should be consistent with previous receiver name r for MountMap (golint)
    • Line 1290: warning: exported method MountMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 1290: warning: receiver name ret should be consistent with previous receiver name r for MountMap (golint)
    • Line 1322: warning: exported type InterfaceMap should have comment or be unexported (golint)
    • Line 1324: warning: exported method InterfaceMap.AppendSysResource should have comment or be unexported (golint)
    • Line 1330: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 1338: warning: exported method InterfaceMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 1345: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 1353: warning: exported method InterfaceMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1353: warning: receiver name ret should be consistent with previous receiver name r for InterfaceMap (golint)
    • Line 1390: warning: exported method InterfaceMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 1390: warning: receiver name ret should be consistent with previous receiver name r for InterfaceMap (golint)
    • Line 1422: warning: exported type HTTPMap should have comment or be unexported (golint)
    • Line 1424: warning: exported method HTTPMap.AppendSysResource should have comment or be unexported (golint)
    • Line 1434: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 1452: warning: exported method HTTPMap.AppendSysResourceIfExists should have comment or be unexported (golint)
    • Line 1459: warning: don't use underscores in Go names; var old_res should be oldRes (golint)
    • Line 1467: warning: exported method HTTPMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1467: warning: receiver name ret should be consistent with previous receiver name r for HTTPMap (golint)
    • Line 1504: warning: exported method HTTPMap.UnmarshalYAML should have comment or be unexported (golint)
    • Line 1504: warning: receiver name ret should be consistent with previous receiver name r for HTTPMap (golint)
    • goss/util/config.go
    • Line 26: warning: exported type Request should have comment or be unexported (golint)
    • Line 29: warning: exported type OutputConfig should have comment or be unexported (golint)
    • Line 36: warning: exported const JSON should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 62: warning: exported function WhitelistAttrs should have comment or be unexported (golint)
    • goss/system/gossfile.go
    • Line 5: warning: exported type Gossfile should have comment or be unexported (golint)
    • Line 10: warning: exported type DefGossfile should have comment or be unexported (golint)
    • Line 19: warning: comment on exported method DefGossfile.Exists should be of the form "Exists ..." (golint)
    • Line 24: warning: exported function NewDefGossfile should have comment or be unexported (golint)
    • goss/system/service_upstart.go
    • Line 13: warning: exported type ServiceUpstart should have comment or be unexported (golint)
    • Line 20: warning: exported function NewServiceUpstart should have comment or be unexported (golint)
    • Line 24: warning: exported method ServiceUpstart.Service should have comment or be unexported (golint)
    • Line 28: warning: exported method ServiceUpstart.Exists should have comment or be unexported (golint)
    • Line 41: warning: exported method ServiceUpstart.Enabled should have comment or be unexported (golint)
    • Line 71: warning: exported method ServiceUpstart.Running should have comment or be unexported (golint)
    • goss/add.go
    • Line 15: warning: exported type Add should have comment or be unexported (golint)
    • Line 187: warning: comment on exported method Add.AutoAddResources should be of the form "AutoAddResources ..." (golint)
    • Line 210: warning: comment on exported method Add.AutoAddResource should be of the form "AutoAddResource ..." (golint)
    • goss/store.go
    • Line 17: warning: exported const UNSET should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported var OutStoreFormat should have comment or be unexported (golint)
    • Line 23: warning: exported var TemplateFilter should have comment or be unexported (golint)
    • Line 51: warning: comment on exported function ReadJSON should be of the form "ReadJSON ..." (golint)
    • Line 62: warning: exported type TmplVars should have comment or be unexported (golint)
    • Line 66: warning: exported method TmplVars.Env should have comment or be unexported (golint)
    • Line 140: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 172: warning: exported function WriteJSON should have comment or be unexported (golint)
    • goss/resource/http.go
    • Line 13: warning: exported const TimeoutMS should have comment or be unexported (golint)
    • Line 15: warning: exported type HTTP should have comment or be unexported (golint)
    • Line 32: warning: exported method HTTP.ID should have comment or be unexported (golint)
    • Line 33: warning: exported method HTTP.SetID should have comment or be unexported (golint)
    • Line 35: warning: exported method HTTP.GetTitle should have comment or be unexported (golint)
    • Line 35: warning: receiver name r should be consistent with previous receiver name u for HTTP (golint)
    • Line 36: warning: exported method HTTP.GetMeta should have comment or be unexported (golint)
    • Line 36: warning: receiver name r should be consistent with previous receiver name u for HTTP (golint)
    • Line 38: warning: exported method HTTP.Validate should have comment or be unexported (golint)
    • Line 89: warning: exported function NewHTTP should have comment or be unexported (golint)
    • goss/resource/package.go
    • Line 8: warning: exported type Package should have comment or be unexported (golint)
    • Line 17: warning: exported method Package.ID should have comment or be unexported (golint)
    • Line 18: warning: exported method Package.SetID should have comment or be unexported (golint)
    • Line 20: warning: exported method Package.GetTitle should have comment or be unexported (golint)
    • Line 21: warning: exported method Package.GetMeta should have comment or be unexported (golint)
    • Line 23: warning: exported method Package.Validate should have comment or be unexported (golint)
    • Line 38: warning: exported function NewPackage should have comment or be unexported (golint)
    • goss/system/command.go
    • Line 13: warning: exported type Command should have comment or be unexported (golint)
    • Line 21: warning: exported type DefCommand should have comment or be unexported (golint)
    • Line 31: warning: exported function NewDefCommand should have comment or be unexported (golint)
    • Line 58: warning: exported method DefCommand.Command should have comment or be unexported (golint)
    • Line 62: warning: exported method DefCommand.ExitStatus should have comment or be unexported (golint)
    • Line 68: warning: exported method DefCommand.Stdout should have comment or be unexported (golint)
    • Line 74: warning: exported method DefCommand.Stderr should have comment or be unexported (golint)
    • Line 80: warning: comment on exported method DefCommand.Exists should be of the form "Exists ..." (golint)
    • goss/resource/service.go
    • Line 8: warning: exported type Service should have comment or be unexported (golint)
    • Line 16: warning: exported method Service.ID should have comment or be unexported (golint)
    • Line 17: warning: exported method Service.SetID should have comment or be unexported (golint)
    • Line 19: warning: exported method Service.GetTitle should have comment or be unexported (golint)
    • Line 20: warning: exported method Service.GetMeta should have comment or be unexported (golint)
    • Line 22: warning: exported method Service.Validate should have comment or be unexported (golint)
    • Line 32: warning: exported function NewService should have comment or be unexported (golint)
    • goss/system/kernel_param.go
    • Line 8: warning: exported type KernelParam should have comment or be unexported (golint)
    • Line 14: warning: exported type DefKernelParam should have comment or be unexported (golint)
    • Line 19: warning: exported function NewDefKernelParam should have comment or be unexported (golint)
    • Line 25: warning: exported method DefKernelParam.ID should have comment or be unexported (golint)
    • Line 29: warning: exported method DefKernelParam.Key should have comment or be unexported (golint)
    • Line 33: warning: exported method DefKernelParam.Exists should have comment or be unexported (golint)
    • Line 40: warning: exported method DefKernelParam.Value should have comment or be unexported (golint)
    • goss/resource/interface.go
    • Line 8: warning: exported type Interface should have comment or be unexported (golint)
    • Line 17: warning: exported method Interface.ID should have comment or be unexported (golint)
    • Line 18: warning: exported method Interface.SetID should have comment or be unexported (golint)
    • Line 20: warning: comment on exported method Interface.GetTitle should be of the form "GetTitle ..." (golint)
    • Line 22: warning: exported method Interface.GetMeta should have comment or be unexported (golint)
    • Line 24: warning: exported method Interface.Validate should have comment or be unexported (golint)
    • Line 42: warning: exported function NewInterface should have comment or be unexported (golint)
    • goss/resource/port.go
    • Line 8: warning: exported type Port should have comment or be unexported (golint)
    • Line 16: warning: exported method Port.ID should have comment or be unexported (golint)
    • Line 17: warning: exported method Port.SetID should have comment or be unexported (golint)
    • Line 19: warning: exported method Port.GetTitle should have comment or be unexported (golint)
    • Line 20: warning: exported method Port.GetMeta should have comment or be unexported (golint)
    • Line 22: warning: exported method Port.Validate should have comment or be unexported (golint)
    • Line 37: warning: exported function NewPort should have comment or be unexported (golint)
    • goss/resource/process.go
    • Line 8: warning: exported type Process should have comment or be unexported (golint)
    • Line 15: warning: exported method Process.ID should have comment or be unexported (golint)
    • Line 16: warning: exported method Process.SetID should have comment or be unexported (golint)
    • Line 18: warning: exported method Process.GetTitle should have comment or be unexported (golint)
    • Line 19: warning: exported method Process.GetMeta should have comment or be unexported (golint)
    • Line 21: warning: exported method Process.Validate should have comment or be unexported (golint)
    • Line 30: warning: exported function NewProcess should have comment or be unexported (golint)
    • goss/system/addr.go
    • Line 11: warning: exported type Addr should have comment or be unexported (golint)
    • Line 17: warning: exported type DefAddr should have comment or be unexported (golint)
    • Line 22: warning: exported function NewDefAddr should have comment or be unexported (golint)
    • Line 30: warning: exported method DefAddr.ID should have comment or be unexported (golint)
    • Line 33: warning: exported method DefAddr.Address should have comment or be unexported (golint)
    • Line 36: warning: exported method DefAddr.Exists should have comment or be unexported (golint)
    • Line 38: warning: exported method DefAddr.Reachable should have comment or be unexported (golint)
    • goss/system/interface.go
    • Line 9: warning: exported type Interface should have comment or be unexported (golint)
    • Line 16: warning: exported type DefInterface should have comment or be unexported (golint)
    • Line 24: warning: exported function NewDefInterface should have comment or be unexported (golint)
    • Line 47: warning: exported method DefInterface.ID should have comment or be unexported (golint)
    • Line 51: warning: exported method DefInterface.Name should have comment or be unexported (golint)
    • Line 55: warning: exported method DefInterface.Exists should have comment or be unexported (golint)
    • Line 63: warning: exported method DefInterface.Addrs should have comment or be unexported (golint)
    • Line 80: warning: exported method DefInterface.MTU should have comment or be unexported (golint)
    • goss/system/mount.go
    • Line 11: warning: exported type Mount should have comment or be unexported (golint)
    • Line 19: warning: exported type DefMount should have comment or be unexported (golint)
    • Line 27: warning: exported function NewDefMount should have comment or be unexported (golint)
    • Line 50: warning: exported method DefMount.ID should have comment or be unexported (golint)
    • Line 54: warning: exported method DefMount.MountPoint should have comment or be unexported (golint)
    • Line 58: warning: exported method DefMount.Exists should have comment or be unexported (golint)
    • Line 66: warning: exported method DefMount.Opts should have comment or be unexported (golint)
    • Line 74: warning: exported method DefMount.Source should have comment or be unexported (golint)
    • Line 82: warning: exported method DefMount.Filesystem should have comment or be unexported (golint)
    • goss/system/system.go
    • Line 16: warning: exported type Resource should have comment or be unexported (golint)
    • Line 43: warning: exported method System.Ports should have comment or be unexported (golint)
    • Line 50: warning: exported method System.ProcMap should have comment or be unexported (golint)
    • Line 80: warning: receiver name sys should be consistent with previous receiver name s for System (golint)
    • goss/resource/group.go
    • Line 10: warning: exported type Group should have comment or be unexported (golint)
    • Line 18: warning: exported method Group.ID should have comment or be unexported (golint)
    • Line 19: warning: exported method Group.SetID should have comment or be unexported (golint)
    • Line 21: warning: exported method Group.GetTitle should have comment or be unexported (golint)
    • Line 22: warning: exported method Group.GetMeta should have comment or be unexported (golint)
    • Line 24: warning: exported method Group.Validate should have comment or be unexported (golint)
    • Line 40: warning: exported function NewGroup should have comment or be unexported (golint)
    • goss/resource/mount.go
    • Line 8: warning: exported type Mount should have comment or be unexported (golint)
    • Line 18: warning: exported method Mount.ID should have comment or be unexported (golint)
    • Line 19: warning: exported method Mount.SetID should have comment or be unexported (golint)
    • Line 21: warning: comment on exported method Mount.GetTitle should be of the form "GetTitle ..." (golint)
    • Line 23: warning: exported method Mount.GetMeta should have comment or be unexported (golint)
    • Line 25: warning: exported method Mount.Validate should have comment or be unexported (golint)
    • Line 46: warning: exported function NewMount should have comment or be unexported (golint)
    • goss/resource/validate.go
    • Line 18: warning: exported const Value should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported const SUCCESS should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type TestResult should have comment or be unexported (golint)
    • Line 64: warning: exported function ValidateValue should have comment or be unexported (golint)
    • Line 253: warning: exported function ValidateContains should have comment or be unexported (golint)
    • goss/resource/kernel_param.go
    • Line 8: warning: exported type KernelParam should have comment or be unexported (golint)
    • Line 15: warning: exported method KernelParam.ID should have comment or be unexported (golint)
    • Line 16: warning: exported method KernelParam.SetID should have comment or be unexported (golint)
    • Line 18: warning: comment on exported method KernelParam.GetTitle should be of the form "GetTitle ..." (golint)
    • Line 19: warning: receiver name r should be consistent with previous receiver name a for KernelParam (golint)
    • Line 20: warning: exported method KernelParam.GetMeta should have comment or be unexported (golint)
    • Line 20: warning: receiver name r should be consistent with previous receiver name a for KernelParam (golint)
    • Line 22: warning: exported method KernelParam.Validate should have comment or be unexported (golint)
    • Line 31: warning: exported function NewKernelParam should have comment or be unexported (golint)
    • goss/system/file.go
    • Line 18: warning: exported type File should have comment or be unexported (golint)
    • Line 32: warning: exported type DefFile should have comment or be unexported (golint)
    • Line 40: warning: exported function NewDefFile should have comment or be unexported (golint)
    • Line 60: warning: exported method DefFile.Path should have comment or be unexported (golint)
    • Line 76: warning: exported method DefFile.Contains should have comment or be unexported (golint)
    • Line 88: warning: exported method DefFile.Mode should have comment or be unexported (golint)
    • Line 151: warning: exported method DefFile.Owner should have comment or be unexported (golint)
    • Line 169: warning: exported method DefFile.Group should have comment or be unexported (golint)
    • Line 187: warning: exported method DefFile.LinkedTo should have comment or be unexported (golint)
    • Line 224: warning: exported method DefFile.Md5 should have comment or be unexported (golint)
    • Line 244: warning: exported method DefFile.Sha256 should have comment or be unexported (golint)
    • goss/system/package_alpine.go
    • Line 10: warning: exported type AlpinePackage should have comment or be unexported (golint)
    • Line 17: warning: exported function NewAlpinePackage should have comment or be unexported (golint)
    • Line 43: warning: exported method AlpinePackage.Name should have comment or be unexported (golint)
    • Line 47: warning: exported method AlpinePackage.Exists should have comment or be unexported (golint)
    • Line 49: warning: exported method AlpinePackage.Installed should have comment or be unexported (golint)
    • Line 55: warning: exported method AlpinePackage.Versions should have comment or be unexported (golint)
    • goss/system/user.go
    • Line 11: warning: exported type User should have comment or be unexported (golint)
    • Line 65: warning: exported method DefUser.Home should have comment or be unexported (golint)
    • Line 74: warning: exported method DefUser.Shell should have comment or be unexported (golint)
    • Line 83: warning: exported method DefUser.Groups should have comment or be unexported (golint)
    • goss/resource/addr.go
    • Line 8: warning: exported const DefaultTimeoutMS should have comment or be unexported (golint)
    • Line 19: warning: exported method Addr.ID should have comment or be unexported (golint)
    • Line 20: warning: exported method Addr.SetID should have comment or be unexported (golint)
    • Line 22: warning: comment on exported method Addr.GetTitle should be of the form "GetTitle ..." (golint)
    • Line 23: warning: receiver name r should be consistent with previous receiver name a for Addr (golint)
    • Line 24: warning: exported method Addr.GetMeta should have comment or be unexported (golint)
    • Line 24: warning: receiver name r should be consistent with previous receiver name a for Addr (golint)
    • Line 26: warning: exported method Addr.Validate should have comment or be unexported (golint)
    • Line 38: warning: exported function NewAddr should have comment or be unexported (golint)
    • goss/resource/file.go
    • Line 8: warning: exported type File should have comment or be unexported (golint)
    • Line 24: warning: exported method File.ID should have comment or be unexported (golint)
    • Line 25: warning: exported method File.SetID should have comment or be unexported (golint)
    • Line 27: warning: exported method File.GetTitle should have comment or be unexported (golint)
    • Line 28: warning: exported method File.GetMeta should have comment or be unexported (golint)
    • Line 30: warning: exported method File.Validate should have comment or be unexported (golint)
    • Line 69: warning: exported function NewFile should have comment or be unexported (golint)
    • goss/resource/gossfile.go
    • Line 8: warning: exported type Gossfile should have comment or be unexported (golint)
    • Line 14: warning: exported method Gossfile.ID should have comment or be unexported (golint)
    • Line 15: warning: exported method Gossfile.SetID should have comment or be unexported (golint)
    • Line 17: warning: exported method Gossfile.GetTitle should have comment or be unexported (golint)
    • Line 18: warning: exported method Gossfile.GetMeta should have comment or be unexported (golint)
    • Line 20: warning: exported function NewGossfile should have comment or be unexported (golint)
    • goss/resource/matching.go
    • Line 13: warning: exported type Matching should have comment or be unexported (golint)
    • Line 21: warning: exported type MatchingMap should have comment or be unexported (golint)
    • Line 23: warning: exported method Matching.ID should have comment or be unexported (golint)
    • Line 24: warning: exported method Matching.SetID should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method Matching.GetTitle should be of the form "GetTitle ..." (golint)
    • Line 27: warning: receiver name r should be consistent with previous receiver name a for Matching (golint)
    • Line 28: warning: exported method Matching.GetMeta should have comment or be unexported (golint)
    • Line 28: warning: receiver name r should be consistent with previous receiver name a for Matching (golint)
    • Line 30: warning: exported method Matching.Validate should have comment or be unexported (golint)
    • Line 43: warning: exported method MatchingMap.UnmarshalJSON should have comment or be unexported (golint)
    • Line 80: warning: exported method MatchingMap.UnmarshalYAML should have comment or be unexported (golint)

gocyclo95%

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.

    • goss/add.go
    • Line 72: warning: cyclomatic complexity 32 of function (*Add).AddResource() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words