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
Open
} else {
- Exclude checks
exported type Dependency should have comment or be unexported Open
Open
type Dependency struct {
- Exclude checks
struct field instanceId should be instanceID Open
Open
instanceId string
- Exclude checks
struct field UserId should be UserID Open
Open
UserId string
- Exclude checks
exported type EventData should have comment or be unexported Open
Open
type EventData struct {
- Exclude checks
exported type EventDiff should have comment or be unexported Open
Open
type EventDiff struct {
- Exclude checks
exported func NewDefaultStrategy returns unexported type *strategies.defaultStrategy, which can be annoying to use Open
Open
func NewDefaultStrategy() *defaultStrategy {
- Exclude checks
exported func NewGradualRolloutRandomStrategy returns unexported type *strategies.gradualRolloutRandomStrategy, which can be annoying to use Open
Open
func NewGradualRolloutRandomStrategy() *gradualRolloutRandomStrategy {
- Exclude checks
don't use ALL_CAPS in Go names; use CamelCase Open
Open
var SEGMENT_CLIENT_SPEC_VERSION = "4.3.1"
- Exclude checks
exported method BootstrapStorage.List should have comment or be unexported Open
Open
func (bs *BootstrapStorage) List() []interface{} {
- Exclude checks
func WithInstanceId should be WithInstanceID Open
Open
func WithInstanceId(instanceId string) ConfigOption {
- Exclude checks
type gradualRolloutUserId should be gradualRolloutUserID Open
Open
type gradualRolloutUserId struct {
- Exclude checks
exported method MockedListener.OnError should have comment or be unexported Open
Open
func (l *MockedListener) OnError(err error) {
- 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 Response should have comment or be unexported Open
Open
type Response struct {
- Exclude checks
exported type StrategyDescription should have comment or be unexported Open
Open
type StrategyDescription struct {
- Exclude checks
struct field SessionId should be SessionID Open
Open
SessionId string
- Exclude checks
var groupId should be groupID Open
Open
groupId, ok := groupIdValue.(string)
- Exclude checks
func NewGradualRolloutUserId should be NewGradualRolloutUserID Open
Open
func NewGradualRolloutUserId() *gradualRolloutUserId {
- Exclude checks
exported method DefaultStorage.Reset should have comment or be unexported Open
Open
func (ds *DefaultStorage) Reset(data map[string]interface{}, persist bool) error {
- Exclude checks