Unleash/unleash-client-go

View on GitHub

Showing 138 of 138 total issues

struct field Id should be ID
Open

    Id int `json:"id"`
Severity: Minor
Found in api/strategy.go by golint

var groupId should be groupID
Open

                groupId, ok := groupIdValue.(string)
Severity: Minor
Found in client.go by golint

type gradualRolloutSessionId should be gradualRolloutSessionID
Open

type gradualRolloutSessionId struct {

const mockInstanceId should be mockInstanceID
Open

    mockInstanceId = "1234"
Severity: Minor
Found in unleash_mock.go by golint

comment on exported method VariantCollection.GetVariant should be of the form "GetVariant ..."
Open

// Get variant for a given feature which is considered as enabled
Severity: Minor
Found in api/feature.go by golint

exported type EventResponse should have comment or be unexported
Open

type EventResponse struct {
Severity: Minor
Found in internal/api/event.go by golint

exported function NewApplicationHostnameStrategy should have comment or be unexported
Open

func NewApplicationHostnameStrategy() *applicationHostnameStrategy {

exported function NewDefaultStrategy should have comment or be unexported
Open

func NewDefaultStrategy() *defaultStrategy {
Severity: Minor
Found in internal/strategies/default.go by golint

comment on exported method NoopListener.OnSent should be of the form "OnSent ..."
Open

// The server has uploaded metrics.
Severity: Minor
Found in nooplistener.go by golint

const ParamGroupId should be ParamGroupID
Open

    ParamGroupId = "groupId"
Severity: Minor
Found in strategy/strategy.go by golint

Your code does not pass gofmt in 1 place. Go fmt your code!
Open

package unleash
Severity: Minor
Found in utils.go by gofmt

exported method FeatureResponse.FeatureMap should have comment or be unexported
Open

func (fr FeatureResponse) FeatureMap() map[string]interface{} {
Severity: Minor
Found in api/feature.go by golint

exported type Strategy should have comment or be unexported
Open

type Strategy struct {
Severity: Minor
Found in api/strategy.go by golint

exported type StrategyDescription should have comment or be unexported
Open

type StrategyDescription struct {
Severity: Minor
Found in api/strategy.go by golint

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

var DISABLED_VARIANT = &Variant{
Severity: Minor
Found in api/variant.go by golint

func WithHttpClient should be WithHTTPClient
Open

func WithHttpClient(client *http.Client) ConfigOption {
Severity: Minor
Found in config.go by golint

exported type ToggleCount should have comment or be unexported
Open

type ToggleCount struct {
Severity: Minor
Found in internal/api/metrics.go by golint

should replace t.Variants[variantName] += 1 with t.Variants[variantName]++
Open

        t.Variants[variantName] += 1
Severity: Minor
Found in metrics.go by golint

exported type MockedListener should have comment or be unexported
Open

type MockedListener struct {
Severity: Minor
Found in unleash_mock.go by golint

exported type ParameterMap should have comment or be unexported
Open

type ParameterMap map[string]interface{}
Severity: Minor
Found in api/feature.go by golint
Severity
Category
Status
Source
Language