Showing 12,811 of 12,811 total issues
Function FirstFAQSection
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const FirstFAQSection = () => {
return (
<>
<h3 className="dhp-faq-section-header">DHP Fitbit Pilot</h3>
<va-accordion
File address.js
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { createSelector } from 'reselect';
import set from '../../utilities/data/set';
import get from '../../utilities/data/get';
import unset from '../../utilities/data/unset';
import { validateWhiteSpace } from '../validations';
File ContestableIssuesWidget.jsx
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { VaModal } from '@department-of-veterans-affairs/component-library/dist/react-bindings';
File FacilitySearch.jsx
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useMemo, useState } from 'react';
import PropTypes from 'prop-types';
import { useDispatch } from 'react-redux';
import { VaSearchInput } from '@department-of-veterans-affairs/component-library/dist/react-bindings';
import { setData } from 'platform/forms-system/src/js/actions';
File EditContactList.jsx
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { getVamcSystemNameFromVhaId } from 'platform/site-wide/drupal-static-data/source-files/vamc-ehr/utils';
import { selectEhrDataByVhaId } from 'platform/site-wide/drupal-static-data/source-files/vamc-ehr/selectors';
import { focusElement } from '@department-of-veterans-affairs/platform-utilities/ui';
File ChangeOfAddressForm.jsx
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import ADDRESS_DATA from 'platform/forms/address/data';
import { validateAsciiCharacters } from 'platform/user/profile/vap-svc/util';
import SchemaForm from '@department-of-veterans-affairs/platform-forms-system/SchemaForm';
Function onAddFile
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onAddFile = async (event, index = null, password) => {
if (event.target?.files?.length) {
const currentFile = event.target.files[0];
const allFiles = props.formData || [];
const addUiOptions = props.uiSchema['ui:options'];
Function render
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { id, disabled, options = {} } = this.props;
const { month, day, year } = this.state.value;
let daysForSelectedMonth;
Function render
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="schemaform-intro">
<FormTitle title="Mock SIP Form" />
<p>Equal to VA Form XX-123 (Mock SIP Form).</p>
Function PlotAllowance
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function PlotAllowance(props) {
const formikContext = useFormikContext();
return (
<div className="vads-u-margin-x--1p5">
Function sponsorInfo
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function sponsorInfo(schema) {
const { fields, required } = {
...defaults(),
};
const possibleProperties = {
Function UpgradeFailed
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UpgradeFailed = () => {
const content = {
heading: 'We couldn’t upgrade your My HealtheVet account',
alertText: (
<>
Function ConfirmationPage
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ConfirmationPage = () => {
const { submission, data } = useSelector(state => state.form);
const { response, timestamp } = submission;
const name = data.veteranFullName;
Function YourVAHealthFacilityPage
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const YourVAHealthFacilityPage = props => {
const { data, setFormData, goBack, goForward } = props;
const [apiData, setApiData] = useState(facilities);
const [isSearching, setIsSearching] = useState(false);
const [pageURL, setPageURL] = useState('');
Function Footer
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Footer = () => {
return (
<footer data-testid="arp-footer" className="footer arp-footer">
<div className="footer-inner">
<div className="usa-grid usa-grid-full footer-banner vads-u-padding-top--2">
Function renderWhyMightIHaveThisDebt
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const renderWhyMightIHaveThisDebt = deductionCode => {
switch (deductionCode) {
case '30':
return (
<section>
Function getLetterPdf
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getLetterPdf(letterType, letterName, letterOptions, LH_MIGRATION__options) {
let settings;
if (letterType === LETTER_TYPES.benefitSummary) {
settings = {
// eslint-disable-next-line -- LH_MIGRATION
Function saveDraftHandler
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async (type, e) => {
const {
messageValid,
signatureValid,
checkboxValid,
Function getAppointmentSlots
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getAppointmentSlots(startDate, endDate, initialFetch = false) {
return async (dispatch, getState) => {
const state = getState();
const siteId = getSiteIdFromFacilityId(
selectCovid19VaccineFormData(state).vaFacility,
Function getAddressUISchema
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getAddressUISchema(label = '') {
const fieldOrder = ['street', 'street2', 'city', 'state', 'postalCode'];
const addressChangeSelector = createSelector(
({ formData, path }) => get(path.concat('city'), formData),