Showing 4,231 of 14,884 total issues
Function enterData
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function enterData(field) {
switch (field.type) {
// Select fields register as having type 'select-one'.
case 'select-one':
cy.wrap(field.element)
Function eobUploadSchema
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const eobUploadSchema = isPrimary => {
const keyName = isPrimary ? 'primaryEob' : 'secondaryEob';
return {
CustomPage: FileFieldWrapped,
CustomPageReview: null,
Function BuildPage
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const BuildPage = props => {
const { title, field, id, goToPath, subTitle } = props;
const headerRef = useRef(null);
File index.js
has 290 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
individualsInvolved,
individualsInvolvedFollowUp,
incidentSupport,
incidentDate,
Function FacilityList
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FacilityList = props => {
const { facilities, onChange, query, value, error } = props;
const reviewMode = props?.formContext?.reviewMode || false;
const submitted = props?.formContext?.submitted || false;
Function getPageFlow
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function getPageFlow(state) {
const featureBreadcrumbUrlUpdate = selectFeatureBreadcrumbUrlUpdate(state);
return {
clinicChoice: {
Function BehalfOfSomeoneElseContent
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const BehalfOfSomeoneElseContent = () => {
return (
<>
<p>
You can upload a copy of their sponsor’s DD214 or other separation
Function pdfData
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(rxList, allergiesList) => {
return {
subject: 'Full Medications List',
headerBanner: [
{
Function content
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const content = () => {
return (
<>
{allergies?.length > 0 ? (
<>
File form.js
has 289 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
CategoryEducation,
CHAPTER_1,
CHAPTER_2,
CHAPTER_3,
File FolderThreadListView.jsx
has 289 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useCallback, useEffect, useMemo } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { useLocation, useParams } from 'react-router-dom';
import PropTypes from 'prop-types';
import {
File CCRequestLayout.unit.spec.js
has 289 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { expect } from 'chai';
import {
createTestStore,
renderWithStoreAndRouter,
File VAFacilityPageV2.jsx
has 289 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect } from 'react';
import { shallowEqual, useDispatch, useSelector } from 'react-redux';
import { useHistory } from 'react-router-dom';
import SchemaForm from 'platform/forms-system/src/js/components/SchemaForm';
import { usePrevious } from 'platform/utilities/react-hooks';
File SettingsPage.jsx
has 289 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState, useRef } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { focusElement } from '@department-of-veterans-affairs/platform-utilities/ui';
import { updatePageTitle } from '@department-of-veterans-affairs/mhv/exports';
import { mhvUrl } from '~/platform/site-wide/mhv/utilities';
Function makeMockApiRouter
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeMockApiRouter(opts) {
// mockResponses[token][verb][response]
const mockResponses = {};
const router = express.Router(); // eslint-disable-line new-cap
Function createRichTextDetailItem
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createRichTextDetailItem = async (doc, config, x, item) => {
let titleText = item.title ?? '';
const content = [];
if (titleText) {
Function generateTitleSection
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generateTitleSection = (doc, parent, data) => {
const subTitleOptions = { lineGap: 6 };
const titleSection = doc.struct('Sect', {
title: 'Title',
Function testForm
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const testForm = testConfig => {
const {
appName,
arrayPages = [],
dataPrefix,
Function ConfirmationView
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ConfirmationView = props => {
const { formConfig, devOnly, children } = props;
const { form } = useSelector(state => state);
const [pdfUrl, setPdfUrl] = useState(props.pdfUrl);
const [confirmationNumber, setConfirmationNumber] = useState(
Function render
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
addressFromUser,
addressValidationError,
confirmedSuggestions,