Showing 9 of 79 total issues
File BodyActionsCell.js
has 329 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { Component, Fragment } from "react";
import {
Tooltip,
IconButton,
Checkbox,
Function render
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
rowsSelected,
printText,
printTitleText,
File DownloadData.js
has 302 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { Component, Fragment } from "react";
import { connect } from "react-redux";
import { cloneDeep } from "lodash";
import {
IconButton,
File Print.js
has 270 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { Component, Fragment } from "react";
import { connect } from "react-redux";
import {
IconButton,
Tooltip,
Function saveRowEdited
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const saveRowEdited = (state, payload) => {
const row = payload;
delete row.idOfColumnErr;
delete row.hasBeenEdited;
const { data, rowsEdited, keyColumn, pagination, actions } = state;
Function render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { canSelect, column, isScrolling } = this.props;
const { checked } = this.state;
return (
Function revertAllRowsToEdited
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const revertAllRowsToEdited = state => {
const { newRows, data, keyColumn, pagination, rowsDeleted, actions } = state;
const newRowsId = newRows.map(r => r[keyColumn]);
const { rows } = data;
Function setValue
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
export const setValue = ({
date,
value,
dateFormat,
rowId,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function CreateInput
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
const CreateInput = ({
cellVal,
valueVerification,
rowId,
columnId,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"