NMDSdevopsServiceAdm/SopraSteria-SFC

View on GitHub
backend/migrations/20201105142147-benchmarkMetric.js

Summary

Maintainability
B
6 hrs
Test Coverage

Showing 2 of 2 total issues

Function up has 117 lines of code (exceeds 25 allowed). Consider refactoring.
Open

up: (queryInterface, Sequelize) => {
const addComparisonColumns = (queryInterface, columnName, transaction) => {
return queryInterface.addColumn(
benchmarksTable,
columnName,
Severity: Major
Found in backend/migrations/20201105142147-benchmarkMetric.js - About 4 hrs to fix

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

    const createTable = (queryInterface, tableName, column, transaction) => {
    return queryInterface.createTable(
    tableName,
    {
    CssrID: {
    Severity: Minor
    Found in backend/migrations/20201105142147-benchmarkMetric.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status