Showing 58 of 157 total issues
Method PortMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method PackageMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method UserMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method ResourceTypeMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method AddrMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method ServiceMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method HTTPMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method FileMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method ProcessMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method DefFile.Filetype
has 5 return statements (exceeds 4 allowed). Open
Open
func (f *DefFile) Filetype() (string, error) {
if err := f.setup(); err != nil {
return "", err
}
Method MountMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method DNSMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method GossfileMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method CommandMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method KernelParamMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method GroupMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method InterfaceMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {
Method MatchingMap.UnmarshalYAML
has 5 return statements (exceeds 4 allowed). Open
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 {