Showing 4,177 of 14,709 total issues
File CompareDrawer.jsx
has 315 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState, useRef } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { useHistory } from 'react-router-dom';
import classNames from 'classnames';
Function getDerivedAttributes
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getDerivedAttributes(constant, eligibility, institution) {
const your = eligibility;
const its = institution;
const chapter = Number(your.giBillChapter);
let monthlyRate;
Function content
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const content = () => {
if (accessAlert) {
return (
<AccessTroubleAlertBox
alertType={accessAlertTypes.VITALS}
Function mockPrescription
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mockPrescription(n = 0, attrs = {}) {
// Generate some refillable, some not
const isRefillable = n % 3 === 0;
const refillRemaining = isRefillable ? Math.ceil(Math.log(n + 1)) : 0;
const {
Function content
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const content = () => {
if (prescription || prescriptionsApiError) {
return (
<>
<div className="no-print">
File index.js
has 314 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Node modules.
import React from 'react';
import PropTypes from 'prop-types';
// Relative imports.
import { getCernerURL } from 'platform/utilities/cerner';
File index.jsx
has 314 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
export const AssetInformationAlert = () => (
<va-additional-info trigger="How we define assets">
File personalInformationHelper.js
has 314 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import VaTextInputField from 'platform/forms-system/src/js/web-component-fields/VaTextInputField';
import {
dateOfBirthSchema,
dateOfBirthUI,
selectSchema,
File ComparePage.jsx
has 314 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, {
useEffect,
useRef,
useState,
useCallback,
Function uiSchemaValidate
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function uiSchemaValidate(
errors,
uiSchema,
schema,
formData,
Function mapRawUserDataToState
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function mapRawUserDataToState(json) {
const {
data: {
attributes: {
account: { accountUuid } = {},
Function IntroductionPage
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IntroductionPage = props => {
const { route } = props;
const { formConfig, pageList } = route;
useEffect(
Function render
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { name } = form.data.application.claimant;
const submittedAt = moment(form.submission.submittedAt);
Function getUiSchema
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getUiSchema = () => {
return {
'view:livesOnMilitaryBase': {
'ui:title': 'I live on a United States military base outside of the U.S.',
'ui:webComponentField': VaCheckboxField,
Function render
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
onSubmit,
props: {
analyticsSectionName,
Function render
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
onSubmit,
props: {
analyticsSectionName,
Function render
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
onSubmit,
props: {
analyticsSectionName,
Function render
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
vaFileNumber: { hasVaFileNumber, isLoading },
user,
} = this.props;
Function Disagree
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Disagree = () => {
useEffect(() => {
recordEvent({
event: 'howToWizard-alert-displayed',
'reason-for-alert':
Function ConfirmationPage
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ConfirmationPage() {
const { data, slot, facilityDetails, submitStatus } = useSelector(
selectConfirmationPage,
shallowEqual,
);