Unleash/unleash-client-go

View on GitHub

Showing 138 of 138 total issues

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

func (ds *DefaultStorage) Load() error {
Severity: Minor
Found in storage.go by golint

exported type StrategyResponse should have comment or be unexported
Open

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

exported type ParameterDescription should have comment or be unexported
Open

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

exported type Bucket should have comment or be unexported
Open

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

type gradualRolloutSessionId should be gradualRolloutSessionID
Open

type gradualRolloutSessionId struct {

exported func NewUserWithIdStrategy returns unexported type *strategies.userWithIdStrategy, which can be annoying to use
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

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

// The feature is queried.
Severity: Minor
Found in nooplistener.go by golint

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

func (ds *DefaultStorage) Persist() error {
Severity: Minor
Found in storage.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 method BootstrapStorage.Persist should have comment or be unexported
Open

func (bs *BootstrapStorage) Persist() error {
Severity: Minor
Found in bootstrap_storage.go by golint

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

func (ds *DefaultStorage) List() []interface{} {
Severity: Minor
Found in storage.go by golint

const mockInstanceId should be mockInstanceID
Open

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

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

func NewGradualRolloutSessionId() *gradualRolloutSessionId {

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

func NewGradualRolloutSessionId() *gradualRolloutSessionId {

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

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

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

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