Unleash/unleash-client-go

View on GitHub

Showing 138 of 138 total issues

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

func NewFlexibleRolloutStrategy() *flexibleRolloutStrategy {

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

func (s flexibleRolloutStrategy) resolveStickiness(st stickiness, ctx context.Context) string {

func NewGradualRolloutSessionId should be NewGradualRolloutSessionID
Open

func NewGradualRolloutSessionId() *gradualRolloutSessionId {

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

func (l *MockedListener) OnCount(name string, enabled bool) {
Severity: Minor
Found in unleash_mock.go by golint

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

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

func parameter groupId should be groupID
Open

func getNormalizedNumber(identifier, groupId string, normalizer int) uint32 {
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

exported type BootstrapStorage should have comment or be unexported
Open

type BootstrapStorage struct {
Severity: Minor
Found in bootstrap_storage.go by golint

var parsedUrl should be parsedURL
Open

    parsedUrl, err := url.Parse(uc.options.url)
Severity: Minor
Found in client.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 func NewApplicationHostnameStrategy returns unexported type *strategies.applicationHostnameStrategy, which can be annoying to use
Open

func NewApplicationHostnameStrategy() *applicationHostnameStrategy {

exported function NewGradualRolloutUserId should have comment or be unexported
Open

func NewGradualRolloutUserId() *gradualRolloutUserId {

exported function NewRemoteAddressStrategy should have comment or be unexported
Open

func NewRemoteAddressStrategy() *remoteAddressStrategy {

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

type MockedListener struct {
Severity: Minor
Found in unleash_mock.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 var DISABLED_VARIANT should have comment or be unexported
Open

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

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

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

var groupIdValue should be groupIDValue
Open

    groupIdValue := params[strategy.ParamGroupId]

range var segmentId should be segmentID
Open

    for _, segmentId := range strategy.Segments {
Severity: Minor
Found in repository.go by golint
Severity
Category
Status
Source
Language