Showing 4,177 of 14,709 total issues
Function createSchoolSelectionPage
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function createSchoolSelectionPage(schema, options) {
const { fields, required, title } = options;
const possibleUISchemaFields = {
educationProgram: educationProgram.uiSchema,
Function filterEvents
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const filterEvents = (
events,
filterBy,
options = {},
now = moment(),
Function GettingStartedWithVetTec
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const GettingStartedWithVetTec = () => {
return (
<div className="vads-u-padding-top--1 vads-u-padding-bottom--3 small-screen-font">
<div className="vads-u-padding-bottom--1px">
<h3 className="small-screen-font">
File appointments.js
has 306 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const appointments = {
data: [
{
id: 'a1fab2235680b2b7432af8d6c45ffea112168c76a35668be72f595d7b89aa950',
type: 'appointments',
File address.js
has 306 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import get from 'platform/utilities/data/get';
import set from 'platform/utilities/data/set';
import unset from 'platform/utilities/data/unset';
import { createSelector } from 'reselect';
File SettingsPage.jsx
has 306 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState, useRef } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { focusElement } from '@department-of-veterans-affairs/platform-utilities/ui';
import { updatePageTitle } from '@department-of-veterans-affairs/mhv/exports';
import { mhvUrl } from '~/platform/site-wide/mhv/utilities';
Consider simplifying this complex logical expression. Open
Open
if (isReviewMode ? isEditing : isLast || isEditing) {
return (
<CardOrDiv
key={index}
id={`${this.props.idSchema.$id}_${index}`}
Function generateContentsSection
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generateContentsSection = (doc, parent, data) => {
const infoSection = doc.struct('Sect', {
title: 'Information',
});
const missingRecordSets = Object.values(selfEnteredTypes).filter(
File ApplicantRelationshipPage.jsx
has 305 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useState, useEffect } from 'react';
import {
VaButton,
VaRadio,
VaTextInput,
Function MobileOfficialGovtWebsite
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const MobileOfficialGovtWebsite = () => {
const [expanded, setExpanded] = useState(false);
const onToggle = () => {
if (expanded) {
Function MobileOfficialGovtWebsite
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const MobileOfficialGovtWebsite = () => {
const [expanded, setExpanded] = useState(false);
const onToggle = () => {
if (expanded) {
Function SpouseEmploymentQuestion
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SpouseEmploymentQuestion = props => {
const {
data,
goBack,
goToPath,
Function ComposeFormActionButtons
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ComposeFormActionButtons = props => {
const {
onSend,
onSaveDraft,
formPopulated,
File index.direct.unit.spec.js
has 305 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import moment from 'moment';
import { expect } from 'chai';
import userEvent from '@testing-library/user-event';
import { waitFor, within } from '@testing-library/dom';
Function hcaEnrollmentStatus
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function hcaEnrollmentStatus(state = initialState, action) {
const { data = {}, response = {}, type } = action;
const {
FETCH_ENROLLMENT_STATUS_STARTED,
FETCH_ENROLLMENT_STATUS_SUCCEEDED,
Function NotificationChannel
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NotificationChannel = props => {
const {
apiStatus,
channelId,
channelType,
Function AllergiesPrintOnly
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AllergiesPrintOnly = props => {
const { allergies } = props;
const content = () => {
return (
Function data
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: (state = initialState, action) => {
switch (action.type) {
case FETCH_POST_911_GI_BILL_ELIGIBILITY_SUCCESS:
return {
...state,
Function ReviewPage
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ReviewPage = props => {
const { location } = props;
const [privacyCheckbox, setPrivacyCheckbox] = useState(false);
const [submitted, setSubmitted] = useState(false);
Function ApplicationSelector
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ApplicationSelector = () => {
const [searchTerm, setSearchTerm] = useState('');
// a stand-in for the actual process config for now
const processConfig = {