style: format code and improve consistency in validation and error ha… #4
Annotations
10 errors and 1 warning
lint:
repositories/base_repository.go#L40
paramTypeCombine: func(ctx context.Context, field string, value interface{}, result interface{}) error could be replaced with func(ctx context.Context, field string, value, result interface{}) error (gocritic)
|
lint:
repositories/base_repository.go#L55
paramTypeCombine: func(ctx context.Context, filter interface{}, result interface{}) error could be replaced with func(ctx context.Context, filter, result interface{}) error (gocritic)
|
lint:
repositories/base_repository.go#L69
paramTypeCombine: func(ctx context.Context, filter interface{}, results interface{}) error could be replaced with func(ctx context.Context, filter, results interface{}) error (gocritic)
|
lint:
repositories/base_repository.go#L51
return with no blank line before (nlreturn)
|
lint:
repositories/base_repository.go#L65
return with no blank line before (nlreturn)
|
lint:
deliveries/http/handlers/domain_handler/dto/domain_request.go#L4
tag is not aligned, should be: form:"domain" json:"domain" query:"domain" validate:"required,hostname" (tagalign)
|
lint:
deliveries/http/handlers/domain_handler/dto/domain_request.go#L6
tag is not aligned, should be: form:"default_ttl" json:"default_ttl" query:"default_ttl" validate:"required,min=1" (tagalign)
|
lint:
deliveries/http/handlers/domain_handler/dto/domain_request.go#L7
tag is not aligned, should be: form:"status" json:"status" query:"status" validate:"required,oneof=active inactive" (tagalign)
|
lint:
repositories/domain/domain_repository.go#L23
hugeParam: d is heavy (96 bytes); consider passing it by pointer (gocritic)
|
lint:
repositories/domain/domain_repository.go#L51
paramTypeCombine: func(ctx context.Context, filter interface{}, update interface{}) (*mongo.UpdateResult, error) could be replaced with func(ctx context.Context, filter, update interface{}) (*mongo.UpdateResult, error) (gocritic)
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|