Showing 3,724 of 12,675 total issues
File ToeApp.jsx
has 288 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import { isArray } from 'lodash';
import PropTypes from 'prop-types';
import { VaBreadcrumbs } from '@department-of-veterans-affairs/web-components/react-bindings';
File pdfAddress.js
has 288 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// pdf-address.js
// customized version of src/platform/forms/definitions/address.js,
// with support added for PDF-specific maxLengths [street, street2, & city].
import { createSelector } from 'reselect';
import {
File form.js
has 287 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 getHelp from '../../shared/components/GetFormHelp';
import manifest from '../manifest.json';
File householdIncomeChapter.js
has 287 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
benefits,
additionalIncomeValues,
spouseBenefits,
spouseBenefitRecords,
Function render
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { route } = this.props;
const { formConfig, pageList } = route;
return (
Function expandAllEnrollments
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const expandAllEnrollments = () => {
/*
make sure the begin date and end date are in the same month,
if not then expand the enrollment period for each month
between the begin and end dates of the enrollment
Function DeactivatedMHVIds
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DeactivatedMHVIds = () => {
const content = {
heading: 'Your My HealtheVet account is inactive',
alertText: (
<div>
Function DependencyVerificationModal
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DependencyVerificationModal = props => {
const nodeToWatch = document.getElementsByTagName('body')[0];
const [otherModal, setOtherModal] = useState(null);
const openModal = () => {
Function Wrapper
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Wrapper = props => {
const {
children,
pageTitle,
titleOverride,
Function Appeals
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Appeals = () => {
useEffect(() => {
recordEvent({
event: 'howToWizard-alert-displayed',
'reason-for-alert':
Function inquiriesGridView
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const inquiriesGridView = category => {
const filteredInquiries = filterAndSortInquiries(category);
const indexOfLastItem = currentPage * itemsPerPage;
const indexOfFirstItem = indexOfLastItem - itemsPerPage;
const currentInquiries = filteredInquiries.slice(
Function FacilityList
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FacilityList = props => {
const { facilities, onChange, query, value, error } = props;
const reviewMode = props?.formContext?.reviewMode || false;
const submitted = props?.formContext?.submitted || false;
Function renderLocationInputField
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderLocationInputField = () => {
return (
<div>
<div id="location-input-field">
<label
Function transformFormToCCRequest
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function transformFormToCCRequest(state) {
const data = getFormData(state);
const provider = data.communityCareProvider;
let preferredProviders = [];
Function render
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const crumbs = [
{
href: `../status`,
label: 'Status details',
Function renderCalendar
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderCalendar = () => {
if (!displayedInputs.calendar) return null;
const dependentDropdowns = (
<div>
Function LabsAndTests
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LabsAndTests = () => {
const dispatch = useDispatch();
const updatedRecordList = useSelector(
state => state.mr.labsAndTests.updatedList,
);
Function buildVAPrescriptionTXT
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const buildVAPrescriptionTXT = prescription => {
const refillHistory = [...(prescription?.rxRfRecords || [])];
const originalFill = createOriginalFillRecord(prescription);
refillHistory.push(originalFill);
File VAPServiceProfileField.jsx
has 286 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 { focusElement } from 'platform/utilities/ui';
File supportingDocuments.js
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { titleUI } from 'platform/forms-system/src/js/web-component-patterns';
import { useFeatureToggle } from 'platform/utilities/feature-toggles';
export const childAttendsCollege = child => child.attendingCollege;