Unleash/unleash-client-go

View on GitHub

Showing 138 of 138 total issues

var groupId should be groupID
Open

    groupId, ok := groupIdValue.(string)

exported func NewFlexibleRolloutStrategy returns unexported type *strategies.flexibleRolloutStrategy, which can be annoying to use
Open

func NewFlexibleRolloutStrategy() *flexibleRolloutStrategy {

exported method MockedListener.OnReady should have comment or be unexported
Open

func (l *MockedListener) OnReady() {
Severity: Minor
Found in unleash_mock.go by golint

exported function NewGradualRolloutRandomStrategy should have comment or be unexported
Open

func NewGradualRolloutRandomStrategy() *gradualRolloutRandomStrategy {

exported func NewGradualRolloutRandomStrategy returns unexported type *strategies.gradualRolloutRandomStrategy, which can be annoying to use
Open

func NewGradualRolloutRandomStrategy() *gradualRolloutRandomStrategy {

exported function NewGradualRolloutSessionId should have comment or be unexported
Open

func NewGradualRolloutSessionId() *gradualRolloutSessionId {

func NewUserWithIdStrategy should be NewUserWithIDStrategy
Open

func NewUserWithIdStrategy() *userWithIdStrategy {
Severity: Minor
Found in internal/strategies/user_with_id.go by golint

exported method NoopListener.OnError should have comment or be unexported
Open

func (l NoopListener) OnError(err error) {
Severity: Minor
Found in nooplistener.go by golint

if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)
Open

    } else {
Severity: Minor
Found in storage.go by golint

exported type Override should have comment or be unexported
Open

type Override struct {
Severity: Minor
Found in api/variant.go by golint

exported method BootstrapStorage.Get should have comment or be unexported
Open

func (bs *BootstrapStorage) Get(key string) (interface{}, bool) {
Severity: Minor
Found in bootstrap_storage.go by golint

exported method BootstrapStorage.List should have comment or be unexported
Open

func (bs *BootstrapStorage) List() []interface{} {
Severity: Minor
Found in bootstrap_storage.go by golint

func WithInstanceId should be WithInstanceID
Open

func WithInstanceId(instanceId string) ConfigOption {
Severity: Minor
Found in config.go by golint

var normalizedId should be normalizedID
Open

    normalizedId := normalizedValue(ctx.SessionId, groupId)

exported func NewRemoteAddressStrategy returns unexported type *strategies.remoteAddressStrategy, which can be annoying to use
Open

func NewRemoteAddressStrategy() *remoteAddressStrategy {

type userWithIdStrategy should be userWithIDStrategy
Open

type userWithIdStrategy struct{}
Severity: Minor
Found in internal/strategies/user_with_id.go by golint

struct field Id should be ID
Open

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

exported type StrategyResult should have comment or be unexported
Open

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

struct field instanceId should be instanceID
Open

    instanceId      string
Severity: Minor
Found in config.go by golint

func parameter instanceId should be instanceID
Open

func WithInstanceId(instanceId string) ConfigOption {
Severity: Minor
Found in config.go by golint
Severity
Category
Status
Source
Language