mesg-foundation/core

View on GitHub
app/app.go

Summary

Maintainability
C
7 hrs
Test Coverage

Function NewInitApp has 196 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func NewInitApp(
    logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
    invCheckPeriod uint, skipUpgradeHeights map[int64]bool, baseAppOptions ...func(*bam.BaseApp),
) (*NewApp, error) {
    // First define the top level codec that will be shared by the different modules
Severity: Major
Found in app/app.go - About 6 hrs to fix

    Function NewInitApp has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
        invCheckPeriod uint, skipUpgradeHeights map[int64]bool, baseAppOptions ...func(*bam.BaseApp),
    Severity: Major
    Found in app/app.go - About 50 mins to fix

      2: cannot find package "github.com/cosmos/cosmos-sdk/baseapp" in any of:
      Open

          bam "github.com/cosmos/cosmos-sdk/baseapp"
      Severity: Minor
      Found in app/app.go by govet

      There are no issues that match your filters.

      Category
      Status