SimonBaeumer/goss

View on GitHub

Showing 58 of 157 total issues

Method PortMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
Open

func (ret *PortMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
    // Validate configuration
    zero := Port{}
    whitelist, err := util.WhitelistAttrs(zero, util.YAML)
    if err != nil {
Severity: Major
Found in resource/resource_list.go - About 35 mins to fix

    Method PackageMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
    Open

    func (ret *PackageMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
        // Validate configuration
        zero := Package{}
        whitelist, err := util.WhitelistAttrs(zero, util.YAML)
        if err != nil {
    Severity: Major
    Found in resource/resource_list.go - About 35 mins to fix

      Method UserMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
      Open

      func (ret *UserMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
          // Validate configuration
          zero := User{}
          whitelist, err := util.WhitelistAttrs(zero, util.YAML)
          if err != nil {
      Severity: Major
      Found in resource/resource_list.go - About 35 mins to fix

        Method ResourceTypeMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
        Open

        func (ret *ResourceTypeMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
            // Validate configuration
            zero := ResourceType{}
            whitelist, err := util.WhitelistAttrs(zero, util.YAML)
            if err != nil {
        Severity: Major
        Found in resource/resource_list_genny.go - About 35 mins to fix

          Method AddrMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
          Open

          func (ret *AddrMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
              // Validate configuration
              zero := Addr{}
              whitelist, err := util.WhitelistAttrs(zero, util.YAML)
              if err != nil {
          Severity: Major
          Found in resource/resource_list.go - About 35 mins to fix

            Method ServiceMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
            Open

            func (ret *ServiceMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                // Validate configuration
                zero := Service{}
                whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                if err != nil {
            Severity: Major
            Found in resource/resource_list.go - About 35 mins to fix

              Method HTTPMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
              Open

              func (ret *HTTPMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                  // Validate configuration
                  zero := HTTP{}
                  whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                  if err != nil {
              Severity: Major
              Found in resource/resource_list.go - About 35 mins to fix

                Method FileMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
                Open

                func (ret *FileMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                    // Validate configuration
                    zero := File{}
                    whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                    if err != nil {
                Severity: Major
                Found in resource/resource_list.go - About 35 mins to fix

                  Method ProcessMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
                  Open

                  func (ret *ProcessMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                      // Validate configuration
                      zero := Process{}
                      whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                      if err != nil {
                  Severity: Major
                  Found in resource/resource_list.go - About 35 mins to fix

                    Method DefFile.Filetype has 5 return statements (exceeds 4 allowed).
                    Open

                    func (f *DefFile) Filetype() (string, error) {
                        if err := f.setup(); err != nil {
                            return "", err
                        }
                    
                    
                    Severity: Major
                    Found in system/file.go - About 35 mins to fix

                      Method MountMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
                      Open

                      func (ret *MountMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                          // Validate configuration
                          zero := Mount{}
                          whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                          if err != nil {
                      Severity: Major
                      Found in resource/resource_list.go - About 35 mins to fix

                        Method DNSMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
                        Open

                        func (ret *DNSMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                            // Validate configuration
                            zero := DNS{}
                            whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                            if err != nil {
                        Severity: Major
                        Found in resource/resource_list.go - About 35 mins to fix

                          Method GossfileMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
                          Open

                          func (ret *GossfileMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                              // Validate configuration
                              zero := Gossfile{}
                              whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                              if err != nil {
                          Severity: Major
                          Found in resource/resource_list.go - About 35 mins to fix

                            Method CommandMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
                            Open

                            func (ret *CommandMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                                // Validate configuration
                                zero := Command{}
                                whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                                if err != nil {
                            Severity: Major
                            Found in resource/resource_list.go - About 35 mins to fix

                              Method KernelParamMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
                              Open

                              func (ret *KernelParamMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                                  // Validate configuration
                                  zero := KernelParam{}
                                  whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                                  if err != nil {
                              Severity: Major
                              Found in resource/resource_list.go - About 35 mins to fix

                                Method GroupMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
                                Open

                                func (ret *GroupMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                                    // Validate configuration
                                    zero := Group{}
                                    whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                                    if err != nil {
                                Severity: Major
                                Found in resource/resource_list.go - About 35 mins to fix

                                  Method InterfaceMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
                                  Open

                                  func (ret *InterfaceMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                                      // Validate configuration
                                      zero := Interface{}
                                      whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                                      if err != nil {
                                  Severity: Major
                                  Found in resource/resource_list.go - About 35 mins to fix

                                    Method MatchingMap.UnmarshalYAML has 5 return statements (exceeds 4 allowed).
                                    Open

                                    func (ret *MatchingMap) UnmarshalYAML(unmarshal func(v interface{}) error) error {
                                        // Validate configuration
                                        zero := Matching{}
                                        whitelist, err := util.WhitelistAttrs(zero, util.YAML)
                                        if err != nil {
                                    Severity: Major
                                    Found in resource/matching.go - About 35 mins to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language