intraxia/wp-gistpen

View on GitHub
commands/E2ECommand.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

File E2ECommand.tsx has 257 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import path from 'path';
import { Command } from 'brookjs-cli';
import { ofType, useDelta, Delta, sampleByAction } from 'brookjs';
import { Box, Color, AppContext } from 'ink';
import Kefir, { Observable } from 'kefir';
Severity: Minor
Found in commands/E2ECommand.tsx - About 2 hrs to fix

    Function reducer has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const reducer = (state: State, action: Action): State => {
      switch (action.type) {
        case getType(actions.startup.request):
          return {
            ...state,
    Severity: Minor
    Found in commands/E2ECommand.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status