Unleash/unleash-client-go

View on GitHub

Showing 138 of 138 total issues

struct field Lhs should be LHS
Open

    Lhs  bool     `json:"lhs"`
Severity: Minor
Found in internal/api/event.go by golint

func NewGradualRolloutSessionId should be NewGradualRolloutSessionID
Open

func NewGradualRolloutSessionId() *gradualRolloutSessionId {

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

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

func GetVariant(feature string, options ...VariantOption) *api.Variant {
Severity: Minor
Found in unleash.go by golint

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

exported type Response should have comment or be unexported
Open

type Response struct {
Severity: Minor
Found in api/response.go by golint

context.Context should be the first parameter of a function
Open

func (uc *Client) isParentDependencySatisfied(feature *api.Feature, context context.Context) bool {
Severity: Minor
Found in client.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 method Bucket.IsEmpty should have comment or be unexported
Open

func (b Bucket) IsEmpty() bool {
Severity: Minor
Found in internal/api/metrics.go by golint

if block ends with a return statement, so drop this else and outdent its block
Open

    } else {
Severity: Minor
Found in internal/constraints/operator_str.go by golint

var normalizedId should be normalizedID
Open

    normalizedId := normalizedValue(ctx.UserId, groupId)

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

func (ds DefaultStorage) Get(key string) (interface{}, bool) {
Severity: Minor
Found in storage.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

struct field Rhs should be RHS
Open

    Rhs  bool     `json:"rhs"`
Severity: Minor
Found in internal/api/event.go by golint

func parameter groupId should be groupID
Open

func normalizedValue(id string, groupId string) uint32 {
Severity: Minor
Found in internal/strategies/helpers.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

exported type Dependency should have comment or be unexported
Open

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

struct field UserId should be UserID
Open

    UserId string
Severity: Minor
Found in context/context.go by golint
Severity
Category
Status
Source
Language