Showing 3,724 of 12,675 total issues
Function NextStepsPage
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function NextStepsPage() {
const { data: formData } = useSelector(state => state.form);
const repType =
formData['view:selectedRepresentative'].attributes?.individualType;
const address = {
Function sharingCardContent
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const sharingCardContent = () => {
if (statusError) {
if (['optin', 'optout'].includes(statusError.type)) {
const optInError = statusError.type === 'optin';
return (
Function buildPrescriptionsPDFList
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const buildPrescriptionsPDFList = prescriptions => {
return prescriptions?.map(rx => {
if (rx?.prescriptionSource === 'NV') {
return {
...buildNonVAPrescriptionPDFList(rx)[0],
Consider simplifying this complex logical expression. Open
Open
if (prescription) {
const dispStatus = prescription.dispStatus?.toString();
return (
<>
<div className="medication-details-div vads-u-border-top--1px vads-u-border-color--gray-lighter vads-u-margin-top--3 medium-screen:vads-u-margin-top--4 vads-u-margin-bottom--3">
File labels.jsx
has 319 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { states } from 'platform/forms/address';
import { createUSAStateLabels } from 'platform/forms-system/src/js/helpers';
File claimInformation.js
has 319 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import {
titleUI,
titleSchema,
radioUI,
File index.js
has 319 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
import manifest from '../manifest.json';
import Alert from '../components/Alert';
File event-generator.js
has 319 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import moment from 'moment-timezone';
import { fleshOutRecurringEvents, removeDuplicateEvents } from '.';
moment.tz.setDefault('America/New_York');
const now = moment().clone();
File index.js
has 319 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Node modules.
import React from 'react';
import PropTypes from 'prop-types';
// Relative imports.
import { getCernerURL } from 'platform/utilities/cerner';
Function OverviewPage
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const OverviewPage = () => {
const { debtLetters, mcp } = useSelector(
({ combinedPortal }) => combinedPortal,
);
const {
Function genBBoxFromAddress
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const genBBoxFromAddress = (query, expandedRadius = false) => {
// Prevent empty search request to Mapbox, which would result in error, and
// clear results list to respond with message of no facilities found.
if (!query.searchString) {
return {
Function createLocationEvents
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createLocationEvents = () => {
const facilityEventData = {
fieldEventCost: 'Free',
fieldFacilityLocation: {
entity: {
Function editEmailAddressSuccess
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const editEmailAddressSuccess = () => {
// store the email address that's passed in via the POST or PUT call so we can
// return it with the GET user/ response
let newEmailAddress;
return [
Function MrBreadcrumbs
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MrBreadcrumbs = () => {
const dispatch = useDispatch();
const location = useLocation();
const history = useHistory();
const crumbsList = useSelector(state => state.mr.breadcrumbs.crumbsList);
Function RecordList
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RecordList = props => {
const { records, type, perPage = 10, hidePagination } = props;
const totalEntries = records?.length;
const history = useHistory();
File actions.js
has 318 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import * as Sentry from '@sentry/browser';
import moment from 'moment';
import recordEvent from 'platform/monitoring/record-event';
import localStorage from 'platform/utilities/storage/localStorage';
import { displayFileSize } from 'platform/utilities/ui/index';
File BenefitsForm.jsx
has 318 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import EbenefitsLink from 'platform/site-wide/ebenefits/containers/EbenefitsLink';
import {
ariaLabels,
File personalInformationHelper.js
has 317 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import VaTextInputField from 'platform/forms-system/src/js/web-component-fields/VaTextInputField';
import {
dateOfBirthSchema,
dateOfBirthUI,
selectSchema,
Function SubTask
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const SubTask = props => {
const { pages = [], formData, setFormData, router } = props;
const [currentPage, setCurrentPage] = useState(pages[0] || {});
const [subTaskData, setSubTaskData] = useState(getStoredSubTask());
const [hasError, setHasError] = useState(false);
Function getProfileInfoFieldAttributes
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getProfileInfoFieldAttributes = fieldName => {
let apiRoute;
let convertCleanDataToPayload;
let title;
let uiSchema;