Showing 4,231 of 14,884 total issues
Function onSubmitHandler
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onSubmitHandler = event => {
event.preventDefault();
let filterList;
Function VetCenterInfoSection
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function VetCenterInfoSection(props) {
const attrs = {
opStatus: props.vetCenter.fieldOperatingStatusFacility,
opStatusExtra: props.vetCenter.fieldOperatingStatusMoreInfo,
};
Function HouseholdFinancialOnboarding
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const HouseholdFinancialOnboarding = props => {
const {
goBack,
goForward,
contentBeforeButtons,
Function render
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { itf, title } = this.props;
if (this.shouldBlockITF(this.props.location.pathname)) {
return this.props.children;
Function WizardContainer
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WizardContainer = () => {
useEffect(() => {
focusElement('va-breadcrumbs');
scrollToTop();
});
Function LessThanFive
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LessThanFive = () => {
useEffect(() => {
recordEvent({
event: 'howToWizard-alert-displayed',
'reason-for-alert':
Function renderLetterHistory
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const renderLetterHistory = diaryCode => {
switch (diaryCode) {
case '100':
case '101':
case '102':
Function handleFiles
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleFiles = event => {
const currentTotalSize = attachments.reduce((currentSize, item) => {
return currentSize + item.size;
}, 0);
const selectedFile = event.target.files[0];
Function fetchPendingAppointments
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchPendingAppointments() {
return async (dispatch, getState) => {
try {
dispatch({
type: FETCH_PENDING_APPOINTMENTS,
Function SchoolAndEmployers
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SchoolAndEmployers = () => {
const [currentTab, setCurrentTab] = useState(0);
const tabPanelClassList =
'vads-u-border-bottom--1px vads-u-border-left--1px vads-u-border-right--1px vads-u-border-color--primary medium-screen:vads-u-padding--4 mobile:vads-u-padding--2';
const baseTabClassList =
Function convertHtmlForDownload
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const convertHtmlForDownload = (html, option) => {
const $ = cheerio.load(html);
const contentElements = [
'address',
'blockquote',
File BlockedTriageGroupAlert.jsx
has 263 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { useSelector } from 'react-redux';
import { getVamcSystemNameFromVhaId } from 'platform/site-wide/drupal-static-data/source-files/vamc-ehr/utils';
import { datadogRum } from '@datadog/browser-rum';
File DocumentRequestPage.jsx
has 263 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { merge } from 'lodash';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Toggler } from '~/platform/utilities/feature-toggles';
File careSummariesAndNotes.js
has 263 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { formatDateLong } from '@department-of-veterans-affairs/platform-utilities/exports';
import { Actions } from '../util/actionTypes';
import {
EMPTY_FIELD,
loincCodes,
File veteran_status.js
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Proof of Veteran Status PDF template.
*
* NB: The order in which items are added to the document is important,
* and thus PDFKit requires performing operations synchronously.
File index.js
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Node modules.
import React from 'react';
import PropTypes from 'prop-types';
import { CONTACTS } from '@department-of-veterans-affairs/component-library/contacts';
// Relative imports.
File Batteries.jsx
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import classnames from 'classnames';
Function generateResultsContent
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const generateResultsContent = async (doc, parent, data) => {
const results = doc.struct('Sect', {
title: 'Results',
});
parent.add(results);
Function UNSAFE_componentWillReceiveProps
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
UNSAFE_componentWillReceiveProps(newProps) {
// When a user is logged in, the profile finishes loading after the component
// has mounted, so we check here.
// If we're done loading the profile, check to see if we should load or redirect
if (
Function createInitialState
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function createInitialState(formConfig) {
let initialState = {
submission: {
status: false,
errorMessage: false,