department-of-veterans-affairs/vets-website

View on GitHub

Showing 3,724 of 12,675 total issues

Function getUiSchema has 109 lines of code (exceeds 25 allowed). Consider refactoring.
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

    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

        render() {
          const { form } = this.props;
          const { submission, data } = form;
          const submitDate = new Date(submission?.timestamp);
      
      
      Severity: Major
      Found in src/applications/ivc-champva/10-7959a/containers/ConfirmationPage.jsx - About 4 hrs to fix

        Function TopicSelectPage has 108 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const TopicSelectPage = props => {
          const {
            onChange,
            loggedIn,
            goBack,
        Severity: Major
        Found in src/applications/ask-va/containers/TopicSelectPage.jsx - About 4 hrs to fix

          Function render has 108 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            render() {
              const { submission, data } = this.props.form;
              const { isLoggedIn, fullName } = this.props;
              const { response } = submission;
              const name = isLoggedIn ? fullName : data.veteranInformation.fullName;
          Severity: Major
          Found in src/applications/vre/28-1900/containers/ConfirmationPage.jsx - About 4 hrs to fix

            Function CancelPageLayoutRequest has 108 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export default function CancelPageLayoutRequest() {
              const { id } = useParams();
              const {
                bookingNotes,
                email,

              Function render has 108 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                render() {
                  const { onCheckboxChange, onReactStateChange, onSubmitHandler } = this;
                  const { showMobileForm } = this.props;
                  const {
                    city,
              Severity: Major
              Found in src/applications/yellow-ribbon/containers/SearchForm/index.jsx - About 4 hrs to fix

                Function makeSchemas has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                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

                  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';
                  Severity: Minor
                  Found in src/applications/appeals/testing/sc/config/form.js - About 4 hrs to fix

                    File selectors.js has 346 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    import { selectVAPResidentialAddress } from 'platform/user/selectors';
                    
                    import {
                      getTimezoneByFacilityId,
                      getTimezoneDescByFacilityId,
                    Severity: Minor
                    Found in src/applications/vaos/new-appointment/redux/selectors.js - About 4 hrs to fix

                      Function render has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        render() {
                          const { loadedStatus, formConfig } = this.props;
                          let content;
                          const appType = formConfig?.customText?.appType || APP_TYPE_DEFAULT;
                          const continueAppButtonText =
                      Severity: Major
                      Found in src/platform/forms/save-in-progress/SaveInProgressErrorPage.jsx - About 4 hrs to fix

                        File benefits.js has 345 lines of code (exceeds 250 allowed). Consider refactoring.
                        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

                            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

                            const InsuranceSummary = props => {
                              const {
                                data,
                                goBack,
                                goForward,
                            Severity: Major
                            Found in src/applications/ezr/components/FormPages/InsuranceSummary.jsx - About 4 hrs to fix

                              Function IntroductionPage has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              const IntroductionPage = props => {
                                useEffect(() => {
                                  focusElement('h1');
                                  scrollToTop();
                                }, []);

                                Function InsuranceSummary has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                const InsuranceSummary = props => {
                                  const {
                                    data,
                                    goBack,
                                    goForward,

                                  Function UpcomingAppointmentsList has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  const UpcomingAppointmentsList = props => {
                                    const { router, app, upcomingAppointments } = props;
                                    const { jumpToPage, getCurrentPageFromRouter } = useFormRouting(router);
                                    const { t } = useTranslation();
                                    const page = getCurrentPageFromRouter();
                                  Severity: Major
                                  Found in src/applications/check-in/components/UpcomingAppointmentsList.jsx - About 4 hrs to fix

                                    File ConfirmationPage.jsx has 345 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    import React from 'react';
                                    import PropTypes from 'prop-types';
                                    import { connect, useSelector } from 'react-redux';
                                    
                                    import { ConfirmationPageView } from '../../shared/components/ConfirmationPageView';
                                    Severity: Minor
                                    Found in src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx - About 4 hrs to fix

                                      Function ProgressNoteDetails has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                                      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

                                          const content = () => {
                                            if (labAndTestDetails) {
                                              return (
                                                <>
                                                  <PrintHeader />
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language