Showing 4,231 of 14,884 total issues
Function generateHealthInsuranceContent
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const generateHealthInsuranceContent = record => {
return {
title: record.healthInsuranceCompany,
details: [
{
Function processUl
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const processUl = ul => {
const nestedUls = ul.querySelectorAll('ul');
// This section is to address nested <ul> tags
nestedUls.forEach(nestedUl => {
Function render
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { enrollmentData } = this.props;
let introText;
let printButton;
if (enrollmentData.veteranIsEligible) {
File index.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { stateList } from './stateList';
const APP_NAMES = Object.freeze({
CHECK_IN: 'dayOf',
PRE_CHECK_IN: 'preCheckIn',
File contactInformation.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
// import _ from 'platform/utilities/data';
import merge from 'lodash/merge';
import omit from 'platform/utilities/data/omit';
import fullSchema from 'vets-json-schema/dist/21-526EZ-ALLCLAIMS-schema.json';
File index.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const maximalSetOfPreferences = {
data: {
id: '',
type: 'hashes',
attributes: {
File search.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import camelCaseKeysRecursive from 'camelcase-keys-recursive';
import {
SEARCH_STARTED,
SEARCH_FAILED,
File index.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const createDebtsSuccess = () => {
return {
hasDependentDebts: false,
debts: [
{
File PreSubmitSection.jsx
has 255 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// libs
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
File config.js
has 255 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import environment from 'platform/utilities/environment';
import compact from 'lodash/compact';
import {
LocationType,
FacilityType,
Function submitTransformer
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function submitTransformer(formConfig, form) {
const { data: formData, loadedData } = form;
const expandedPages = expandArrayPages(
createFormPageList(formConfig),
formData,
Function updateSchema
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSchema: (formData, addressSchema, addressUiSchema, index, path) => {
let currentSchema = addressSchema;
const modifiedData = { ...formData };
Function submitTransformer
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function submitTransformer(formConfig, form) {
const { data: formData, loadedData } = form;
const expandedPages = expandArrayPages(
createFormPageList(formConfig),
formData,
Function IdentityVerificationAlert
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IdentityVerificationAlert = () => {
const onVerify = () => recordEvent({ event: AUTH_EVENTS.VERIFY });
return (
<va-alert status="continue" data-testid="hca-identity-alert" uswds>
<h2 slot="headline">
Function data
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: (state = initialState, action) => {
switch (action.type) {
case FETCH_PERSONAL_INFORMATION:
return {
...state,
Function itemsList
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
items.map((item, index) => {
const itemIsSelected = !!get(
selectedPropName || this.defaultSelectedPropName,
item,
);
Function getPtsdClassification
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getPtsdClassification = (formData, formType) => {
const isCombat = _.get(
'view:selectablePtsdTypes.view:combatPtsdType',
formData,
false,
Function DashboardUnreadMessages
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DashboardUnreadMessages = props => {
const { inbox } = props;
const { noAssociations, allTriageGroupsBlocked } = useSelector(
state => state.sm.recipients,
Function retrieveMessageThread
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const retrieveMessageThread = messageId => async (
dispatch,
getState,
) => {
const isPilot = getIsPilotFromState(getState);
File AddToCalendar.unit.spec.js
has 255 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { render } from '@testing-library/react';
import MockDate from 'mockdate';