Showing 4,177 of 14,709 total issues
Function generateDemographicsContent
has 409 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const generateDemographicsContent = record => {
const results = {
results: {
sectionSeparators: false,
items: [
Function AppointmentDetails
has 407 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AppointmentDetails = props => {
const { router } = props;
const { t } = useTranslation();
const dispatch = useDispatch();
const {
Function SearchPage
has 405 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SearchPage = props => {
const searchResultTitleRef = useRef(null);
const previousLocationInputString = useRef(
props.currentQuery.locationInputString,
);
File FilterBeforeResults.jsx
has 829 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable no-unused-vars */
import React, { useState, useEffect } from 'react';
import { useHistory } from 'react-router-dom';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
File Prescriptions.jsx
has 826 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, {
useCallback,
useEffect,
useMemo,
useRef,
Function ArrayBuilderSummaryPage
has 395 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ArrayBuilderSummaryPage(arrayBuilderOptions) {
const {
arrayPath,
getFirstItemPagePath,
getText,
File index.unit.spec.js
has 822 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { Route } from 'react-router-dom';
import { expect } from 'chai';
import sinon from 'sinon';
import moment from 'moment';
File index.js
has 821 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* istanbul ignore file */
/* eslint-disable camelcase */
const delay = require('mocker-api/lib/delay');
const moment = require('moment');
// var
File reducer.js
has 818 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable sonarjs/max-switch-cases */
import { getDefaultFormState } from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';
import set from 'platform/utilities/data/set';
import unset from 'platform/utilities/data/unset';
File index.unit.spec.js
has 806 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable @department-of-veterans-affairs/axe-check-required */
import { expect } from 'chai';
import sinon from 'sinon';
import {
mockFetch,
File patient.js
has 801 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const patient = {
id: 11383893,
oplock: 1,
invalidationReferenceId: '202206169-9203',
lastFacilitiesUpdateDateTime: 1731681057000,
Function DownloadFileType
has 379 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DownloadFileType = props => {
const { runningUnitTest = false } = props;
const history = useHistory();
const [fileType, setFileType] = useState('');
File msw-mocks.js
has 782 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { rest } from 'msw';
import mockDisabilityCompensation from '@@profile/mocks/endpoints/disability-compensations';
import environment from '~/platform/utilities/environment';
import mockDD4CNPSuccess from './tests/fixtures/dd4cnp/dd4cnp-is-set-up.json';
Function RadiologyDetails
has 366 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RadiologyDetails = props => {
const { record, fullState, runningUnitTest } = props;
const phase0p5Flag = useSelector(
state => state.featureToggles.mhv_integration_medical_records_to_phase_1,
);
File helpers.js
has 771 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import moment from 'moment';
import { DATE_TIMESTAMP, formFields } from './constants';
import { getSchemaCountryCode } from './utils/form-submit-transform';
File benefits.js
has 768 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const categories = {
BURIALS: 'Burials and memorials',
EDUCATION: 'Education',
EMPLOYMENT: 'Careers and Employment',
MORE_SUPPORT: 'More Support',
File VideoLayoutVA.unit.spec.js
has 763 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { expect } from 'chai';
import {
createTestStore,
renderWithStoreAndRouter,
Function AttachmentsList
has 357 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AttachmentsList = props => {
const {
attachments,
compose,
draftSequence,
Function PrescriptionDetails
has 357 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PrescriptionDetails = () => {
const prescription = useSelector(
state => state.rx.prescriptions?.prescriptionDetails,
);
const prescriptionsApiError = useSelector(
File LandingPage.jsx
has 760 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useMemo, useRef } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { Link } from 'react-router-dom';
import { focusElement } from '@department-of-veterans-affairs/platform-utilities/ui';
import {