Showing 3,723 of 12,672 total issues
File form.js
has 1213 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { createSelector } from 'reselect';
import { Link } from 'react-router';
import fullSchema1990e from 'vets-json-schema/dist/22-1990E-schema.json';
File helpers.js
has 1184 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { merge } from 'lodash';
import PropTypes from 'prop-types';
import get from 'platform/utilities/data/get';
import omit from 'platform/utilities/data/omit';
Function getStatusContents
has 602 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getStatusContents(appeal, name = {}) {
const { status, aoj, programArea } = appeal.attributes;
const appealType = appeal.type;
const statusType = status.type || status;
const details = status.details || {};
File CalculateYourBenefitsForm.jsx
has 1145 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import PropTypes from 'prop-types';
import React, { useState } from 'react';
import _ from 'lodash';
import classNames from 'classnames';
File moment-tz.js
has 1126 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* istanbul ignore file */
//! moment-timezone.js
//! version : 0.5.25
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
Function getStatusContents
has 571 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getStatusContents(appeal, name = {}) {
const { status, aoj, programArea } = appeal.attributes;
const appealType = appeal.type;
const statusType = status.type || status;
const details = status.details || {};
Function renderAdditionalInfo
has 568 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const renderAdditionalInfo = (diaryCode, dateOfLetter, benefitType) => {
const endDate = (date, days) =>
moment(date, 'MM-DD-YYYY')
.add(days, 'days')
.format('MMMM Do, YYYY,');
File calculator.js
has 1093 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { isEmpty } from 'lodash';
import { createSelector } from 'reselect';
import {
formatCurrency,
isCountryUSA,
File covidResearchUISchema.js
has 1090 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import _ from 'lodash';
import fullNameUI from 'platform/forms/definitions/fullName';
import { validateBooleanGroup } from 'platform/forms-system/src/js/validation';
Function FileField
has 549 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FileField = props => {
const {
enableShortWorkflow,
errorSchema,
formContext,
Function Prescriptions
has 543 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Prescriptions = () => {
const { search } = useLocation();
const history = useHistory();
const dispatch = useDispatch();
const paginatedPrescriptionsList = useSelector(
File moment-tz.js
has 1071 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* istanbul ignore file */
//! moment-timezone.js
//! version : 0.5.25
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
Function FileField
has 536 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FileField = props => {
const {
enableShortWorkflow,
errorSchema,
formContext,
Function FileField
has 533 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FileField = props => {
const {
enableShortWorkflow,
errorSchema,
formContext,
Function content
has 530 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const content = () => {
return (
<>
<div className="main-content">
<section className="vads-u-margin-bottom--3 small-screen:vads-u-margin-bottom--4">
Function FacilitiesMap
has 529 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FacilitiesMap = props => {
const [map, setMap] = useState(null);
const searchResultTitleRef = useRef(null);
const [isMobile, setIsMobile] = useState(window.innerWidth <= 481);
const [isSearching, setIsSearching] = useState(false);
File helpers.js
has 1044 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import merge from 'lodash/merge';
import { format, isValid, parseISO } from 'date-fns';
import environment from '@department-of-veterans-affairs/platform-utilities/environment';
import { apiRequest } from '@department-of-veterans-affairs/platform-utilities/api';
File Modals.jsx
has 1024 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { connect } from 'react-redux';
import recordEvent from 'platform/monitoring/record-event';
import { VaModal } from '@department-of-veterans-affairs/component-library/dist/react-bindings';
import * as actions from '../actions';
Function FileField
has 490 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FileField = props => {
const {
errorSchema,
formContext,
formData = [],
Function getDebtDetailsCardContent
has 488 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getDebtDetailsCardContent = (debt, dateOfLetter, amountDue) => {
const endDateText = endDate(dateOfLetter, debt.diaryCode);
switch (debt.diaryCode) {
case '71':