Showing 3,945 of 13,747 total issues
Function render
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
activeEditView,
fieldName,
isEmpty,
Function render
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
activeEditView,
fieldName,
isEmpty,
Function VaMedicalCenter
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VaMedicalCenter = props => {
const {
errorSchema,
formContext,
formData,
Function render
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { supplies, order, eligibility } = this.props;
const currentDate = moment();
const batterySupplies = supplies.filter(
batterySupply => batterySupply.productGroup === BATTERY,
Function Navigation
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Navigation = () => {
const [isMobile, setIsMobile] = useState(true);
const [isNavigationOpen, setIsNavigationOpen] = useState(false);
const location = useLocation();
const activeFolder = useSelector(folder);
Function submitFiles
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function submitFiles(claimId, trackedItem, files) {
let filesComplete = 0;
let bytesComplete = 0;
let hasError = false;
const totalSize = files.reduce((sum, file) => sum + file.file.size, 0);
File Dashboard.jsx
has 451 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { connect, useDispatch, useSelector } from 'react-redux';
import isEmpty from 'lodash/isEmpty';
Function uiSchema
has 170 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function uiSchema(
label = 'Address',
useStreet3 = false,
isRequired = null,
ignoreRequired = false,
File pdfConfigs.js
has 450 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
createNoDescriptionText,
createOriginalFillRecord,
dateFormat,
processList,
File YourHealthInformation.jsx
has 449 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
import { useSelector } from 'react-redux';
import { parse } from 'date-fns';
File constants.js
has 447 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/** time to wait (in ms) after the user stops typing before initiating draft auto-save */
export const draftAutoSaveTimeout = 10000;
export const Paths = {
MYHEALTH: '/my-health',
Function useStorage
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useStorage = (app, local = false) => {
const STORAGE_KEYS = useMemo(
() => {
return createStorageKeys({ app });
},
Function ReplyForm
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ReplyForm = props => {
const {
cannotReply,
drafts,
replyMessage,
Function transformVAOSAppointment
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function transformVAOSAppointment(appt) {
const appointmentType = getAppointmentType(appt);
const isCC = appt.kind === 'cc';
const isVideo = appt.kind === 'telehealth';
const isAtlas = !!appt.telehealth?.atlas;
Function ConditionDetails
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ConditionDetails = props => {
const { runningUnitTest } = props;
const record = useSelector(state => state.mr.conditions.conditionDetails);
const conditionList = useSelector(
state => state.mr.conditions.conditionsList,
File ReviewPage.jsx
has 446 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useLayoutEffect } from 'react';
import { useFormikContext } from 'formik';
import { Link, useLocation } from 'react-router-dom';
import { VaOnThisPage } from '@department-of-veterans-affairs/component-library/dist/react-bindings';
import {
responses
has 48 functions (exceeds 20 allowed). Consider refactoring. Open
Open
const responses = {
'GET /vaos/v0/appointments': (req, res) => {
if (req.query.type === 'cc') {
return res.json(confirmedCC);
}
File form.js
has 444 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import merge from 'lodash/merge';
import get from 'platform/utilities/data/get';
import unset from 'platform/utilities/data/unset';
import fullSchema1990 from 'vets-json-schema/dist/22-1990-schema.json';
Function uiSchema
has 166 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function uiSchema(
label = 'Address',
useStreet3 = false,
isRequired = null,
ignoreRequired = false,
File get.js
has 443 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* istanbul ignore file */
const dateFns = require('date-fns');
const { utcToZonedTime, zonedTimeToUtc, format } = require('date-fns-tz');
const {
singleAppointment,