Fantom-foundation/go-lachesis

View on GitHub
app/store_migration.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method Store.MigrateMultiDelegations has 80 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (s *Store) MigrateMultiDelegations() error {
    { // migrate s.table.Delegations
        newKeys := make([][]byte, 0, 10000)
        newValues := make([][]byte, 0, 10000)
        {
Severity: Major
Found in app/store_migration.go - About 2 hrs to fix

    Method Store.MigrateMultiDelegations has 6 return statements (exceeds 4 allowed).
    Open

    func (s *Store) MigrateMultiDelegations() error {
        { // migrate s.table.Delegations
            newKeys := make([][]byte, 0, 10000)
            newValues := make([][]byte, 0, 10000)
            {
    Severity: Major
    Found in app/store_migration.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status