status-im/status-go

View on GitHub
protocol/activity_center_persistence.go

Summary

Maintainability
D
1 day
Test Coverage
F
28%

File activity_center_persistence.go has 1212 lines of code (exceeds 900 allowed). Consider refactoring.
Open

package protocol

import (
    "context"
    "database/sql"
Severity: Major
Found in protocol/activity_center_persistence.go - About 1 day to fix

    sqlitePersistence has 37 methods (exceeds 21 allowed). Consider refactoring.
    Open

    func (db sqlitePersistence) DeleteActivityCenterNotificationByID(id []byte, updatedAt uint64) error {
        _, err := db.db.Exec(`UPDATE activity_center_notifications SET deleted = 1, updated_at = ? WHERE id = ? AND NOT deleted`, updatedAt, id)
        return err
    }
    Severity: Minor
    Found in protocol/activity_center_persistence.go - About 4 hrs to fix

      There are no issues that match your filters.

      Category
      Status