Showing 4,177 of 14,709 total issues
Function render
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { showWizard } = this.props;
if (showWizard === undefined) return null;
Function getSignlePreviousEnrollments
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getSignlePreviousEnrollments = awards => {
const myUUID = uuidv4();
return (
<div className="vye-top-border" key={myUUID}>
{awards?.transactDate &&
Function DependentInformation
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DependentInformation = props => {
const { data, goToPath, setFormData } = props;
const { dependents = [] } = data;
const search = new URLSearchParams(window.location.search);
Function SearchControls
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SearchControls = props => {
const {
onSubmit,
locateUser,
geolocationInProgress,
File AddressValidationView.jsx
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { VaAlert } from '@department-of-veterans-affairs/component-library/dist/react-bindings';
import {
File ReviewCollapsibleChapter.jsx
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import get from '@department-of-veterans-affairs/platform-forms-system/get';
import set from '@department-of-veterans-affairs/platform-forms-system/set';
import { getScrollOptions } from '@department-of-veterans-affairs/platform-utilities/ui';
import classNames from 'classnames';
import uniqueId from 'lodash/uniqueId';
File utilities.js
has 377 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import appendQuery from 'append-query';
import * as Sentry from '@sentry/browser';
import 'url-search-params-polyfill';
import environment from 'platform/utilities/environment';
import { createOAuthRequest } from 'platform/utilities/oauth/utilities';
File form.js
has 377 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import environment from '@department-of-veterans-affairs/platform-utilities/environment';
import footerContent from '~/platform/forms/components/FormFooter';
import manifest from '../manifest.json';
import transform from './submit-transformer';
import getHelp from '../../shared/components/GetFormHelp';
Function prefillTransformerV4
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function prefillTransformerV4(pages, formData, metadata, state) {
const bankInformation = state.data?.bankInformation || {};
const claimant = state.data?.formData?.data?.attributes?.claimant || {};
const serviceData = state.data?.formData?.data?.attributes?.serviceData || [];
const contactInfo = claimant?.contactInfo || {};
Function AppointmentMessage
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AppointmentMessage = props => {
const { appointment, page } = props;
const { t } = useTranslation();
const defaultMessage = t(
Function createFormConfig781a
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function createFormConfig781a(iterations) {
let configObj = {};
const formType = '781a';
for (let index = 0; index < iterations; index++) {
configObj = {
Function renderExtensionBeneficiaryZIP
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderExtensionBeneficiaryZIP = () => {
if (!displayedInputs.beneficiaryLocationQuestion) {
return null;
}
const extensions = getExtensions();
File ConfirmationPage.jsx
has 376 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import scrollToTop from '@department-of-veterans-affairs/platform-utilities/scrollToTop';
import { ConfirmationView } from 'platform/forms-system/src/js/components/ConfirmationView';
Function addressUISchema
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const addressUISchema = (
addressPath,
title,
reviewCard,
fieldsAreRequired = true,
Function VitalListItem
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VitalListItem = props => {
const { record, options = {} } = props;
const { isAccelerating } = options;
const displayName = vitalTypeDisplayNames[record.type];
File MOCK_VA_APPOINTMENTS.js
has 374 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const fns = require('date-fns');
const MOCK_VA_APPOINTMENTS = {
data: [
{
Function uploadFile
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function uploadFile(
file,
uiOptions,
onProgress,
onChange,
Function render
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { item, scopes } = this.props;
const { setShow } = this;
const { learnIcon, show } = this.state;
Function generateData
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generateData = (type, formData) => {
switch (type) {
case 'claimant-information':
return {
'Claimant’s first name': formData?.claimantFullName?.first
Function Confirmation
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Confirmation = props => {
const dispatch = useDispatch();
const refreshAppointments = useCallback(
() => {
dispatch(triggerRefresh());