pedroMMM/goss

View on GitHub

Showing 439 of 439 total issues

exported method DefHTTP.SetAllowInsecure should have comment or be unexported
Open

func (u *DefHTTP) SetAllowInsecure(t bool) {
Severity: Minor
Found in system/http.go by golint

exported type RpmPackage should have comment or be unexported
Open

type RpmPackage struct {
Severity: Minor
Found in system/package_rpm.go by golint

exported type PacmanPackage should have comment or be unexported
Open

type PacmanPackage struct {
Severity: Minor
Found in system/package_pacman.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

receiver name sys should be consistent with previous receiver name s for System
Open

func (sys *System) detectService() {
Severity: Minor
Found in system/system.go by golint

exported type ServiceSystemd should have comment or be unexported
Open

type ServiceSystemd struct {
Severity: Minor
Found in system/service_systemd.go by golint

should omit 2nd value from range; this loop is equivalent to for k := range ...
Open

        for k, _ := range v {
Severity: Minor
Found in util/config.go by golint

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

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

exported type System should have comment or be unexported
Open

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

receiver name sys should be consistent with previous receiver name s for System
Open

func (sys *System) detectPackage(p string) {
Severity: Minor
Found in system/system.go by golint

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

func (p *AlpinePackage) Exists() (bool, error) { return p.Installed() }
Severity: Minor
Found in system/package_alpine.go by golint

exported method DefUser.UID should have comment or be unexported
Open

func (u *DefUser) UID() (int, error) {
Severity: Minor
Found in system/user.go by golint

comment on exported function GetPorts should be of the form "GetPorts ..."
Open

// FIXME: Is there a better way to do this rather than ignoring errors?
Severity: Minor
Found in system/port.go by golint

exported type Config should have comment or be unexported
Open

type Config struct {
Severity: Minor
Found in util/config.go by golint

exported type Service should have comment or be unexported
Open

type Service interface {
Severity: Minor
Found in system/service.go by golint

exported function ValidateSections should have comment or be unexported
Open

func ValidateSections(unmarshal func(interface{}) error, i interface{}, whitelist map[string]bool) error {
Severity: Minor
Found in util/config.go by golint

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

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

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

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

exported method DefHTTP.Headers should have comment or be unexported
Open

func (u *DefHTTP) Headers() (io.Reader, error) {
Severity: Minor
Found in system/http.go by golint

exported type DefInterface should have comment or be unexported
Open

type DefInterface struct {
Severity: Minor
Found in system/interface.go by golint
Severity
Category
Status
Source
Language