pedroMMM/goss

View on GitHub

Showing 439 of 439 total issues

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

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.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 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 System.Ports should have comment or be unexported
Open

func (s *System) Ports() map[string][]GOnetstat.Process {
Severity: Minor
Found in system/system.go by golint

exported type Command should have comment or be unexported
Open

type Command struct {
Severity: Minor
Found in util/command.go by golint

exported const JSON should have comment (or a comment on this block) or be unexported
Open

    JSON format = "json"
Severity: Minor
Found in util/config.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 function NewDefHTTP should have comment or be unexported
Open

func NewDefHTTP(httpStr string, system *System, config util.Config) HTTP {
Severity: Minor
Found in system/http.go by golint

exported function HeaderToArray should have comment or be unexported
Open

func HeaderToArray(header http.Header) (res []string) {
Severity: Minor
Found in system/http.go by golint

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

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

exported function NewDefPort should have comment or be unexported
Open

func NewDefPort(port string, system *System, config util.Config) Port {
Severity: Minor
Found in system/port.go by golint

exported function NewDefProcess should have comment or be unexported
Open

func NewDefProcess(executable string, system *System, config util.Config) (Process, error) {
Severity: Minor
Found in system/process.go by golint

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

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

exported function NewDefUser should have comment or be unexported
Open

func NewDefUser(username string, system *System, config util.Config) User {
Severity: Minor
Found in system/user.go by golint

exported method DefGroup.Groupname should have comment or be unexported
Open

func (u *DefGroup) Groupname() string {
Severity: Minor
Found in system/group.go by golint

exported type HTTP should have comment or be unexported
Open

type HTTP interface {
Severity: Minor
Found in system/http.go by golint

exported method DefInterface.Addrs should have comment or be unexported
Open

func (i *DefInterface) Addrs() ([]string, error) {
Severity: Minor
Found in system/interface.go by golint

exported method DefKernelParam.ID should have comment or be unexported
Open

func (k *DefKernelParam) ID() string {
Severity: Minor
Found in system/kernel_param.go by golint

exported method DefKernelParam.Key should have comment or be unexported
Open

func (k *DefKernelParam) Key() string {
Severity: Minor
Found in system/kernel_param.go by golint
Severity
Category
Status
Source
Language