Showing 3,724 of 12,672 total issues
Function applicantInsuranceTypeSchema
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function applicantInsuranceTypeSchema(isPrimary) {
const keyname = isPrimary
? 'applicantPrimaryInsuranceType'
: 'applicantSecondaryInsuranceType';
return {
Function IntroductionPage
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IntroductionPage = props => {
const { route } = props;
const { formConfig, pageList } = route;
useEffect(
File ChangeOfAddressForm.jsx
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import ADDRESS_DATA from 'platform/forms/address/data';
import { validateAsciiCharacters } from 'platform/user/profile/vap-svc/util';
import SchemaForm from '@department-of-veterans-affairs/platform-forms-system/SchemaForm';
Function IdentityVerificationAlert
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const IdentityVerificationAlert = () => {
const onVerifyEvent = recordEvent({ event: AUTH_EVENTS.VERIFY });
return (
<div className="vads-u-margin-top--6 vads-u-margin-bottom--8 vads-l-grid-container large-screen:vads-u-padding-x--0">
<va-alert
Function WarningExplanation
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WarningExplanation = () => {
const { statusCode } = useSelector(selectEnrollmentStatus);
// Declare content blocks for use
const {
Function CantFindYourTeam
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CantFindYourTeam = () => {
const ssoe = useSelector(isAuthenticatedWithSSOe);
const mhvSecureMessagingEditContactList = useSelector(
state =>
Function getListOfThreads
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
) => async (dispatch, getState) => {
if (!update) {
dispatch({ type: Actions.Thread.IS_LOADING, payload: true });
}
try {
Function RemoveAttachmentModal
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RemoveAttachmentModal = props => {
return (
<VaModal
id={`remove-attachment-modal${
props.draftSequence ? `-${props.draftSequence}` : ''
File CautionaryInformation.jsx
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import PropTypes from 'prop-types';
import React from 'react';
import CautionFlagDetails from './CautionFlagDetails';
import SchoolClosingDetails from './SchoolClosingDetails';
import LearnMoreLabel from '../LearnMoreLabel';
Function fetchConfirmedFutureAppointments
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchConfirmedFutureAppointments() {
return async dispatch => {
dispatch({
type: FETCH_CONFIRMED_FUTURE_APPOINTMENTS,
});
Function vitalReducer
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const vitalReducer = (state = initialState, action) => {
switch (action.type) {
case Actions.Vitals.GET: {
return {
...state,
Function render
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { enrollmentData } = this.props;
let introText;
let printButton;
if (enrollmentData.veteranIsEligible) {
File EnhancedSpouseEmploymentRecord.jsx
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useState } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { setData } from 'platform/forms-system/src/js/actions';
import {
Function initUserMock
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initUserMock(token, level) {
mock(token, {
path: '/v0/user',
verb: 'get',
value: {
Function ReviewFieldTemplate
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ReviewFieldTemplate(props) {
const { children, uiSchema, schema, formContext } = props;
const label = uiSchema['ui:title'] || props.label;
const description = uiSchema['ui:description'];
const textDescription = typeof description === 'string' ? description : null;
Function checkValidSchema
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function checkValidSchema(schema, errors = [], path = ['root']) {
if (typeof schema.type !== 'string') {
errors.push(`Missing type in ${path.join('.')} schema.`);
}
Function fetchPersonalInformation
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchPersonalInformation(
forceCacheClear = false,
recordAnalyticsEvent = recordEvent,
) {
return async dispatch => {
Function fetchLocations
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchLocations = async (
address = null,
bounds,
locationType,
serviceType,
Function BenefitRelinquishmentDate
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const BenefitRelinquishmentDate = props => {
const { formData, setFormData } = props;
const aYearAgo = moment(new Date()).subtract(1, 'y');
const populateDate = () => {
Function createAdditionalConsiderations
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function createAdditionalConsiderations(submissionForm) {
if (submissionForm?.mebExclusionPeriodEnabled) {
const exclusionPeriods = submissionForm.exclusionPeriods || [];
const mapping = {
academyRotcScholarship: {