Bnei-Baruch/mdb

View on GitHub
batch/regexp_replace.go

Summary

Maintainability
A
35 mins
Test Coverage

Method RegexpReplacer.updateDB has 5 return statements (exceeds 4 allowed).
Open

func (a *RegexpReplacer) updateDB(iteration int) error {
    log.Infof("Start replace on iteration %d", iteration)
    rows, err := queries.Raw(a.DB, fmt.Sprintf(`Select %s, id FROM %s ORDER BY id`, a.ColName, a.TableName)).Query()
    if err != nil {
        return err
Severity: Major
Found in batch/regexp_replace.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status