Showing 4,231 of 14,884 total issues
Function addAccordionClickHandler
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addAccordionClickHandler = () => {
Array.from(
document.querySelectorAll('.usa-accordion, .usa-accordion-bordered'),
).forEach(element => {
const parents = getAccordionParents(element);
Function addressValidationSuccess
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addressValidationSuccess() {
return asyncReturn(
{
addresses: [
{
Function render
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const dataType = this.props.schema.type;
if (dataType !== 'array') {
throw new Error(`Data Type ${dataType} not supported.`);
}
File PreviousEnrollmentVerifications.jsx
has 280 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useState, useCallback, useEffect } from 'react';
import PropTypes from 'prop-types';
import { VaPagination } from '@department-of-veterans-affairs/component-library/dist/react-bindings';
import { focusElement } from '@department-of-veterans-affairs/platform-utilities/ui';
import { useSelector } from 'react-redux';
Function renderProcessColumn
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderProcessColumn = (
processName,
displayName,
startConfig,
stopPort,
Function MultipleIds
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MultipleIds = () => {
const content = {
heading: 'It looks like you have more than one My HealtheVet account',
alertText: (
<div>
Function useSendPreCheckInData
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useSendPreCheckInData = () => {
const selectForm = useMemo(makeSelectForm, []);
const { data } = useSelector(selectForm);
const [isLoading, setIsLoading] = useState(true);
const {
Function render
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { route } = this.props;
const { formConfig, pageList } = route;
return (
Function content
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const content = () => {
const folderCount = folders?.length;
if (folders === undefined) {
return (
<va-loading-indicator
File index.unit.spec.js
has 280 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { expect } from 'chai';
import { waitFor } from '@testing-library/dom';
import { cleanup } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
Function ChooseDateAndTime
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ChooseDateAndTime = props => {
const { currentReferral } = props;
const dispatch = useDispatch();
const location = useLocation();
Function aboutTheSchoolOptions
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function aboutTheSchoolOptions(
excludeCautionFlags,
accredited,
studentVeteran,
yellowRibbonScholarship,
File labsAndTests.js
has 280 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export const generateLabsIntro = record => {
return {
title: `Lab and test results: ${record.name}`,
subject: 'VA Medical Record',
preface:
Function RxBreadcrumbs
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RxBreadcrumbs = () => {
const location = useLocation();
const prescription = useSelector(
state => state.rx.prescriptions?.prescriptionDetails,
);
Function buildVAPrescriptionTXT
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const buildVAPrescriptionTXT = prescription => {
const refillHistory = [...(prescription?.rxRfRecords || [])];
const originalFill = createOriginalFillRecord(prescription);
refillHistory.push(originalFill);
Function render
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
analyticsSectionName,
fieldName,
isEditing,
Function Balances
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Balances = () => {
// get balances from redux
const { debtLetters, mcp } = useSelector(
({ combinedPortal }) => combinedPortal,
);
Function createAdditionalConsiderations
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function createAdditionalConsiderations(submissionForm) {
if (submissionForm?.mebExclusionPeriodEnabled) {
const exclusionPeriods = submissionForm.exclusionPeriods || [];
const mapping = {
academyRotcScholarship: {
Function navigateForward
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const navigateForward = (
SHORT_NAME,
formResponses,
router,
editMode,
Function IntroductionPage
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IntroductionPage = props => {
const { route } = props;
const { formConfig, pageList } = route;
useEffect(