Unleash/unleash-client-go

View on GitHub

Showing 138 of 138 total issues

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

type Dependency struct {
Severity: Minor
Found in api/feature.go by golint

struct field instanceId should be instanceID
Open

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

struct field UserId should be UserID
Open

    UserId string
Severity: Minor
Found in context/context.go by golint

exported type EventData should have comment or be unexported
Open

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

exported type EventDiff should have comment or be unexported
Open

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

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

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

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

func NewGradualRolloutRandomStrategy() *gradualRolloutRandomStrategy {

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

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

type gradualRolloutUserId should be gradualRolloutUserID
Open

type gradualRolloutUserId struct {

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

func (l *MockedListener) OnError(err error) {
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 Response should have comment or be unexported
Open

type Response struct {
Severity: Minor
Found in api/response.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

struct field SessionId should be SessionID
Open

    SessionId string
Severity: Minor
Found in context/context.go by golint

var groupId should be groupID
Open

    groupId, ok := groupIdValue.(string)

func NewGradualRolloutUserId should be NewGradualRolloutUserID
Open

func NewGradualRolloutUserId() *gradualRolloutUserId {

exported method DefaultStorage.Reset should have comment or be unexported
Open

func (ds *DefaultStorage) Reset(data map[string]interface{}, persist bool) error {
Severity: Minor
Found in storage.go by golint
Severity
Category
Status
Source
Language