api/feature.go
Function getSeed
has 6 return statements (exceeds 4 allowed). Open
Open
func getSeed(ctx *context.Context, stickiness string) string {
if stickiness != "default" && stickiness != "" {
value := ctx.Field(stickiness)
if value == "" {
return strconv.Itoa(rand.Intn(10000))
2: cannot find package "github.com/Unleash/unleash-client-go/v3/context" in any of: Open
Open
"github.com/Unleash/unleash-client-go/v3/context"
- Exclude checks
exported method FeatureResponse.FeatureMap should have comment or be unexported Open
Open
func (fr FeatureResponse) FeatureMap() map[string]interface{} {
- Exclude checks
exported type FeatureResponse should have comment or be unexported Open
Open
type FeatureResponse struct {
- Exclude checks
exported method FeatureResponse.SegmentsMap should have comment or be unexported Open
Open
func (fr FeatureResponse) SegmentsMap() map[int][]Constraint {
- Exclude checks
func parameter groupId should be groupID Open
Open
func getNormalizedNumber(identifier, groupId string, normalizer int) uint32 {
- Exclude checks
exported type Segment should have comment or be unexported Open
Open
type Segment struct {
- Exclude checks
exported type Feature should have comment or be unexported Open
Open
type Feature struct {
- Exclude checks
struct field Id should be ID Open
Open
Id int `json:"id"`
- Exclude checks
exported type Dependency should have comment or be unexported Open
Open
type Dependency struct {
- Exclude checks
comment on exported method VariantCollection.GetVariant should be of the form "GetVariant ..." Open
Open
// Get variant for a given feature which is considered as enabled
- Exclude checks
exported type ParameterMap should have comment or be unexported Open
Open
type ParameterMap map[string]interface{}
- Exclude checks