Showing 5 of 9 total issues
Function start
has 60 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func start() {
cfg := config.Config()
logger := log.NewLogger("buroq")
app := appcontext.NewAppContext(cfg)
Function NewCache
has 8 return statements (exceeds 4 allowed). Open
Open
func NewCache(option CacheOption) *redis.Pool {
dialConnectTimeoutOption := redis.DialConnectTimeout(option.DialConnectTimeout)
readTimeoutOption := redis.DialReadTimeout(option.ReadTimeout)
writeTimeoutOption := redis.DialWriteTimeout(option.WriteTimeout)
Function doMigrate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func doMigrate(appCtx *appcontext.AppContext, logger *log.Logger, mSource migrate.FileMigrationSource, dbDialect string, direction migrate.MigrationDirection) error {
Function start
has 5 return statements (exceeds 4 allowed). Open
Open
func start() {
cfg := config.Config()
logger := log.NewLogger("buroq")
app := appcontext.NewAppContext(cfg)
Method HealthCheckHandler.HealthCheck
has 5 return statements (exceeds 4 allowed). Open
Open
func (h HealthCheckHandler) HealthCheck(w http.ResponseWriter, r *http.Request) (data interface{}, pageToken *string, err error) {
if h.HandlerOption.Config.GetBool("mysql.is_enabled") {
err = h.Services.HealthCheck.HealthCheckDbMysql()
if err != nil {
return