fbredius/storybook

View on GitHub
lib/cli/src/upgrade.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function checkVersionConsistency has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const checkVersionConsistency = () => {
  const lines = spawnSync('npm', ['ls'], { stdio: 'pipe' }).output.toString().split('\n');
  const storybookPackages = lines
    .map(getStorybookVersion)
    .filter(Boolean)
Severity: Minor
Found in lib/cli/src/upgrade.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status