Unleash/unleash-client-go

View on GitHub
repository.go

Summary

Maintainability
A
40 mins
Test Coverage
A
90%

Method repository.fetch has 6 return statements (exceeds 4 allowed).
Open

func (r *repository) fetch() error {
    u, _ := r.options.url.Parse(getFetchURLPath(r.options.projectName))

    req, err := http.NewRequest("GET", u.String(), nil)
    if err != nil {
Severity: Major
Found in repository.go - About 40 mins to fix

    exported var SEGMENT_CLIENT_SPEC_VERSION should have comment or be unexported
    Open

    var SEGMENT_CLIENT_SPEC_VERSION = "4.3.1"
    Severity: Minor
    Found in repository.go by golint

    range var segmentId should be segmentID
    Open

        for _, segmentId := range strategy.Segments {
    Severity: Minor
    Found in repository.go by golint

    don't use ALL_CAPS in Go names; use CamelCase
    Open

    var SEGMENT_CLIENT_SPEC_VERSION = "4.3.1"
    Severity: Minor
    Found in repository.go by golint

    There are no issues that match your filters.

    Category
    Status