Showing 3,724 of 12,675 total issues
Function transformFormToVAOSCCRequest
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function transformFormToVAOSCCRequest(state) {
const data = getFormData(state);
const provider = data.communityCareProvider;
const residentialAddress = selectVAPResidentialAddress(state);
const parentFacility = getChosenCCSystemById(state);
Function PreferredProviderSection
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function PreferredProviderSection(props) {
const history = useHistory();
const pageFlow = useSelector(getNewAppointmentFlow);
return (
Function ReviewApproved
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ReviewApproved() {
const history = useHistory();
const dispatch = useDispatch();
const storedFilterProvider = useSelector(selectProvider);
const storedSortProviderBy = useSelector(selectProviderSortBy);
Function parseLabsAndTests
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const parseLabsAndTests = records => {
return `
${txtLine}
1) Lab and test results
File address.js
has 308 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import get from 'platform/utilities/data/get';
import set from 'platform/utilities/data/set';
import unset from 'platform/utilities/data/unset';
import { createSelector } from 'reselect';
File form.js
has 308 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { VA_FORM_IDS } from 'platform/forms/constants';
import environment from 'platform/utilities/environment';
import FormFooter from 'platform/forms/components/FormFooter';
import { externalServices } from 'platform/monitoring/DowntimeNotification';
import {
File ChangeOfAddressWrapper.jsx
has 308 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useState, useEffect, useCallback } from 'react';
import PropTypes from 'prop-types';
import { useDispatch, useSelector } from 'react-redux';
import { useLocation } from 'react-router-dom';
import LoadingButton from '~/platform/site-wide/loading-button/LoadingButton';
File AutosugggestField.jsx
has 308 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
import Downshift from 'downshift';
import classNames from 'classnames';
Function createSchoolSelectionPage
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function createSchoolSelectionPage(schema, options) {
const { fields, required, title } = options;
const possibleUISchemaFields = {
educationProgram: educationProgram.uiSchema,
Function filterEvents
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const filterEvents = (
events,
filterBy,
options = {},
now = moment(),
Function GettingStartedWithVetTec
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const GettingStartedWithVetTec = () => {
return (
<div className="vads-u-padding-top--1 vads-u-padding-bottom--3 small-screen-font">
<div className="vads-u-padding-bottom--1px">
<h3 className="small-screen-font">
File address.js
has 306 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import get from 'platform/utilities/data/get';
import set from 'platform/utilities/data/set';
import unset from 'platform/utilities/data/unset';
import { createSelector } from 'reselect';
Consider simplifying this complex logical expression. Open
Open
if (isReviewMode ? isEditing : isLast || isEditing) {
return (
<CardOrDiv
key={index}
id={`${this.props.idSchema.$id}_${index}`}
File SearchMenu.jsx
has 305 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { toggleValues } from 'platform/site-wide/feature-toggles/selectors';
import FEATURE_FLAG_NAMES from 'platform/utilities/feature-toggles/featureFlagNames';
Function uiSchemaValidate
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function uiSchemaValidate(
errors,
uiSchema,
schema,
formData,
File ApplicantRelationshipPage.jsx
has 305 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useState, useEffect } from 'react';
import {
VaButton,
VaRadio,
VaTextInput,
File ConfirmationPage.jsx
has 305 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect } from 'react';
import { connect } from 'react-redux';
import scrollToTop from '@department-of-veterans-affairs/platform-utilities/scrollToTop';
import { focusElement } from '@department-of-veterans-affairs/platform-utilities/ui';
import { benefitsLabels } from '../utils/labels';
Function MobileOfficialGovtWebsite
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const MobileOfficialGovtWebsite = () => {
const [expanded, setExpanded] = useState(false);
const onToggle = () => {
if (expanded) {
Function SpouseEmploymentQuestion
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SpouseEmploymentQuestion = props => {
const {
data,
goBack,
goToPath,
Function ThreadListSort
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ThreadListSort = props => {
const { sortOrder, sortCallback } = props;
const location = useLocation();
const [sortOrderValue, setSortOrderValue] = useState(sortOrder);