Codeminer42/cm42-central

View on GitHub
app/assets/javascripts/models/beta/iteration.js

Summary

Maintainability
B
4 hrs
Test Coverage

File iteration.js has 253 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import moment from 'moment';
import { last, isEmpty } from 'underscore';
import * as Story from './story';

const weeksBetween = (dateA, dateB) =>
Severity: Minor
Found in app/assets/javascripts/models/beta/iteration.js - About 2 hrs to fix

    Function groupBySprints has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const groupBySprints = (
      stories = [],
      project,
      initialSprintNumber = 1
    ) => {
    Severity: Minor
    Found in app/assets/javascripts/models/beta/iteration.js - About 1 hr to fix

      Function addSprintWithOverflow has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const addSprintWithOverflow = (
        project,
        sprints,
        story,
        velocity,
      Severity: Minor
      Found in app/assets/javascripts/models/beta/iteration.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status