buttercup-pw/buttercup-core

View on GitHub
source/insight/vault.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function generateVaultInsights has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function generateVaultInsights(vault: Vault): VaultInsights {
    let groupCount = 0,
        entryCount = 0,
        trashEntryCount = 0,
        trashGroupCount = 0,
Severity: Major
Found in source/insight/vault.ts - About 2 hrs to fix

    Function processGroup has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        const processGroup = (group) => {
            const entries = group.getEntries();
            groupCount += 1;
            entryCount += entries.length;
            entries.forEach((entry) => {
    Severity: Minor
    Found in source/insight/vault.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status