pedroMMM/goss

View on GitHub
system/service_init.go

Summary

Maintainability
A
0 mins
Test Coverage

exported method ServiceInit.Enabled should have comment or be unexported
Open

func (s *ServiceInit) Enabled() (bool, error) {
Severity: Minor
Found in system/service_init.go by golint

exported function NewServiceInit should have comment or be unexported
Open

func NewServiceInit(service string, system *System, config util.Config) Service {
Severity: Minor
Found in system/service_init.go by golint

if block ends with a return statement, so drop this else and outdent its block
Open

    } else {
Severity: Minor
Found in system/service_init.go by golint

exported method ServiceInit.Service should have comment or be unexported
Open

func (s *ServiceInit) Service() string {
Severity: Minor
Found in system/service_init.go by golint

exported type ServiceInit should have comment or be unexported
Open

type ServiceInit struct {
Severity: Minor
Found in system/service_init.go by golint

exported function NewAlpineServiceInit should have comment or be unexported
Open

func NewAlpineServiceInit(service string, system *System, config util.Config) Service {
Severity: Minor
Found in system/service_init.go by golint

exported method ServiceInit.Running should have comment or be unexported
Open

func (s *ServiceInit) Running() (bool, error) {
Severity: Minor
Found in system/service_init.go by golint

exported method ServiceInit.Exists should have comment or be unexported
Open

func (s *ServiceInit) Exists() (bool, error) {
Severity: Minor
Found in system/service_init.go by golint

There are no issues that match your filters.

Category
Status