pedroMMM/goss

View on GitHub
matchers/semver_constraint.go

Summary

Maintainability
A
35 mins
Test Coverage

Function toVersions has 5 return statements (exceeds 4 allowed).
Open

func toVersions(in interface{}) ([]*semver.Version, bool) {
    if v, ok := toVersion(in); ok {
        return []*semver.Version{v}, ok
    }

Severity: Major
Found in matchers/semver_constraint.go - About 35 mins to fix

    exported type BeSemverConstraintMatcher should have comment or be unexported
    Open

    type BeSemverConstraintMatcher struct {
    Severity: Minor
    Found in matchers/semver_constraint.go by golint

    exported method BeSemverConstraintMatcher.Match should have comment or be unexported
    Open

    func (matcher *BeSemverConstraintMatcher) Match(actual interface{}) (success bool, err error) {
    Severity: Minor
    Found in matchers/semver_constraint.go by golint

    exported method BeSemverConstraintMatcher.NegatedFailureMessage should have comment or be unexported
    Open

    func (matcher *BeSemverConstraintMatcher) NegatedFailureMessage(actual interface{}) (message string) {
    Severity: Minor
    Found in matchers/semver_constraint.go by golint

    exported function BeSemverConstraint should have comment or be unexported
    Open

    func BeSemverConstraint(constraint interface{}) types.GomegaMatcher {
    Severity: Minor
    Found in matchers/semver_constraint.go by golint

    exported method BeSemverConstraintMatcher.FailureMessage should have comment or be unexported
    Open

    func (matcher *BeSemverConstraintMatcher) FailureMessage(actual interface{}) (message string) {
    Severity: Minor
    Found in matchers/semver_constraint.go by golint

    There are no issues that match your filters.

    Category
    Status