Showing 3,724 of 12,675 total issues
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(
Function SearchQueryReducer
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const SearchQueryReducer = (state = INITIAL_STATE, action) => {
switch (action.type) {
case SEARCH_STARTED:
return {
...state,
Function WarningHeadline
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WarningHeadline = () => {
const { statusCode } = useSelector(selectEnrollmentStatus);
// Declare enrollment status content dictionary
const contentDictionary = [
Function submit
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const submit = form => {
const currentAddress = form.data['view:currentAddress'];
const itemQuantities = form.data?.order?.length;
const { order, permanentAddress, temporaryAddress, vetEmail } = form.data;
const useVeteranAddress = currentAddress === 'permanentAddress';
Function TypeOfVisitPage
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function TypeOfVisitPage() {
const pageTitle = useSelector(state => getPageTitle(state, pageKey));
const { schema, data, pageChangeInProgress } = useSelector(
state => getFormPageInfo(state, pageKey),
Function claimsV2Reducer
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function claimsV2Reducer(state = initialState, action) {
switch (action.type) {
case FETCH_CLAIMS_PENDING:
return set('claimsLoading', true, state);
case FETCH_CLAIMS_SUCCESS:
Function content
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const content = () => {
if (activeAlert && activeAlert.type === ALERT_TYPE_ERROR) {
return (
<>
<h1 className="vads-u-margin-bottom--0p5">Vaccine:</h1>
Function CareSummariesAndNotesListItem
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CareSummariesAndNotesListItem = props => {
const { record } = props;
const isDischargeSummary = record.type === loincCodes.DISCHARGE_SUMMARY;
const admDate = dischargeSummarySortFields.ADMISSION_DATE;
Function items
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.map((entry, i) => {
const { shape, color, backImprint, frontImprint } = entry;
const index = refillHistory.length - i - 1;
const phone =
entry.cmopDivisionPhone || entry.dialCmopDivisionPhone;
File ResponseInboxPage.jsx
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
VaAlert,
VaButton,
VaFileInputMultiple,
VaIcon,
File SearchControls.jsx
has 277 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {
VaModal,
File SettingsPage.jsx
has 277 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState } 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';
File DownloadRecordsPage.jsx
has 277 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useCallback, useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { focusElement } from '@department-of-veterans-affairs/platform-utilities/ui';
import { formatDateLong } from '@department-of-veterans-affairs/platform-utilities/exports';
import PropTypes from 'prop-types';
Function render
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { formConfig, buttonOnly, devOnly } = this.props;
const devOnlyForceShowFormControls =
environment.isLocalhost() &&
!window.Cypress &&
Function ITFBanner
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ITFBanner = props => {
const [messageDismissed, setMessageDismissed] = useState(false);
const [reviewInitialFocus, setReviewInitialFocus] = useState(false);
const goHome = () => {
Function ITFBanner
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ITFBanner = props => {
const [messageDismissed, setMessageDismissed] = useState(false);
const [reviewInitialFocus, setReviewInitialFocus] = useState(false);
const goHome = () => {
Function createDirectDepositPage
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function createDirectDepositPage() {
const bankAccountProperties = {
type: 'object',
properties: {
accountType: {
Function createMockAddressValidationSuccessResponse
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createMockAddressValidationSuccessResponse = _data => {
return {
data: {
messages: [
{
Function CommunityCareProviderSelectionPage
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function CommunityCareProviderSelectionPage() {
const pageTitle = useSelector(state => getPageTitle(state, pageKey));
const dispatch = useDispatch();
const { data, pageChangeInProgress, schema } = useSelector(
Function useUnavailableItems
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useUnavailableItems = () => {
const { groups, items, channels } = getEntities(communicationPreferences);
const excludedGroupIds = [
// Always exclude QUICK_SUBMIT and GENERAL