Showing 3,724 of 12,675 total issues
Function getUiSchema
has 109 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,
File index.jsx
has 348 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect } from 'react';
import { connect, useDispatch, useSelector } from 'react-redux';
import { useHistory } from 'react-router-dom';
import SchemaForm from '@department-of-veterans-affairs/platform-forms-system/SchemaForm';
import { usePrevious } from '@department-of-veterans-affairs/platform-utilities/exports';
Function render
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { submission, data } = form;
const submitDate = new Date(submission?.timestamp);
Function TopicSelectPage
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TopicSelectPage = props => {
const {
onChange,
loggedIn,
goBack,
Function render
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { submission, data } = this.props.form;
const { isLoggedIn, fullName } = this.props;
const { response } = submission;
const name = isLoggedIn ? fullName : data.veteranInformation.fullName;
Function CancelPageLayoutRequest
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function CancelPageLayoutRequest() {
const { id } = useParams();
const {
bookingNotes,
email,
Function render
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { onCheckboxChange, onReactStateChange, onSubmitHandler } = this;
const { showMobileForm } = this.props;
const {
city,
Function makeSchemas
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function makeSchemas(prefix) {
const properties = makeFormProperties(prefix);
const schema = {
type: 'object',
properties: {
File form.js
has 346 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { VA_FORM_IDS } from 'platform/forms/constants';
import preSubmitInfo from 'platform/forms/preSubmitInfo';
import FormFooter from 'platform/forms/components/FormFooter';
import { externalServices as services } from 'platform/monitoring/DowntimeNotification';
File selectors.js
has 346 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { selectVAPResidentialAddress } from 'platform/user/selectors';
import {
getTimezoneByFacilityId,
getTimezoneDescByFacilityId,
Function render
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { loadedStatus, formConfig } = this.props;
let content;
const appType = formConfig?.customText?.appType || APP_TYPE_DEFAULT;
const continueAppButtonText =
File benefits.js
has 345 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const categories = {
EDUCATION: 'Education',
EMPLOYMENT: 'Careers & Employment',
MORE_SUPPORT: 'More Support',
HEALTHCARE: 'Healthcare',
Function render
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="schemaform-intro">
<FormTitle title="GI Bill® School Feedback Tool" />
<p>
Function InsuranceSummary
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InsuranceSummary = props => {
const {
data,
goBack,
goForward,
Function IntroductionPage
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IntroductionPage = props => {
useEffect(() => {
focusElement('h1');
scrollToTop();
}, []);
Function InsuranceSummary
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InsuranceSummary = props => {
const {
data,
goBack,
goForward,
Function UpcomingAppointmentsList
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UpcomingAppointmentsList = props => {
const { router, app, upcomingAppointments } = props;
const { jumpToPage, getCurrentPageFromRouter } = useFormRouting(router);
const { t } = useTranslation();
const page = getCurrentPageFromRouter();
File ConfirmationPage.jsx
has 345 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
import { connect, useSelector } from 'react-redux';
import { ConfirmationPageView } from '../../shared/components/ConfirmationPageView';
Function ProgressNoteDetails
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ProgressNoteDetails = props => {
const { record, runningUnitTest } = props;
const user = useSelector(state => state.user.profile);
const allowTxtDownloads = useSelector(
state =>
Function content
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const content = () => {
if (labAndTestDetails) {
return (
<>
<PrintHeader />