pedroMMM/goss

View on GitHub
util/config.go

Summary

Maintainability
A
0 mins
Test Coverage

exported function IsValueInList should have comment or be unexported
Open

func IsValueInList(value string, list []string) bool {
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 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

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 function WhitelistAttrs should have comment or be unexported
Open

func WhitelistAttrs(i interface{}, format format) (map[string]bool, error) {
Severity: Minor
Found in util/config.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 OutputConfig should have comment or be unexported
Open

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

There are no issues that match your filters.

Category
Status