department-of-veterans-affairs/vets-website

View on GitHub

Showing 4,231 of 14,884 total issues

Function addressDescription has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const addressDescription = () => {
    return (
      <>
        {loading ? (
          <va-loading-indicator

    Function PersonalInformationPage has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const PersonalInformationPage = props => {
      const { location, route, router } = props;
      const { pathname } = location;
      const { pageList } = route;
      const { data: formData } = useSelector(state => state.form);
    Severity: Minor
    Found in src/applications/hca/containers/PersonalInformationPage.jsx - About 1 hr to fix

      Function VerifyServiceAlert has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        const VerifyServiceAlert = () => {
          const signinServiceLabel = SERVICE_PROVIDERS[signInService]?.label;
          const headline = serviceDescription
            ? `${headingPrefix} to ${serviceDescription}`
            : headingPrefix;

        Function BannerContainer has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export const BannerContainer = () => {
          const {
            TOGGLE_NAMES,
            useToggleValue,
            useToggleLoadingValue,

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

            render() {
              const {
                appId,
                authenticatedWithSSOe,
                children,
          Severity: Minor
          Found in src/applications/static-pages/cta-widget/index.js - About 1 hr to fix

            Function buildOperatingStatusProps has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export const buildOperatingStatusProps = attrs => {
              const { opStatus, opStatusExtra } = attrs;
              let statusLabel;
              let statusType;
            
            

              Function TravelAddress has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              const TravelAddress = props => {
                const { router } = props;
                const { t } = useTranslation();
                const { updateError } = useUpdateError();
                const selectVeteranAddress = useMemo(makeSelectVeteranAddress, []);

                Function TravelClaimSuccessAlert has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                const TravelClaimSuccessAlert = () => {
                  const selectForm = useMemo(makeSelectForm, []);
                  const { data } = useSelector(selectForm);
                  const { appointmentToFile } = data;
                  const { t } = useTranslation();

                  Function ConfirmationPage has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  export const ConfirmationPage = props => {
                    const form = useSelector(state => state.form || {});
                    const { submission } = form;
                    const submitDate = submission.timestamp;
                    const confirmationNumber = submission.response?.confirmationNumber;

                    Function fetchMapBoxGeocoding has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export const fetchMapBoxGeocoding = async (query, client = null) => {
                      if (!query) {
                        return {
                          type: 'SEARCH_FAILED',
                          errorMessage: content['error--facility-search-cancelled'],
                    Severity: Minor
                    Found in src/applications/caregivers/actions/fetchMapBoxGeocoding.js - About 1 hr to fix

                      Function getHealthFacilityTitle has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      export const getHealthFacilityTitle = data => {
                        const {
                          YOUR_VA_HEALTH_FACILITY,
                          VETERAN_VA_HEALTH_FACILITY,
                          FAMILY_MEMBER_VA_HEALTH_FACILITY,
                      Severity: Minor
                      Found in src/applications/ask-va/config/helpers.jsx - About 1 hr to fix

                        Function HouseholdExpensesInputList has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        const HouseholdExpensesInputList = props => {
                          const { submitted } = props.formContext;
                          const { errorSchema } = props;
                        
                          const errorList = errorSchema?.expenseRecords?.__errors;

                          Function updateCCProviderSortMethod has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          export function updateCCProviderSortMethod(sortMethod, selectedFacility = {}) {
                            return async (dispatch, getState) => {
                              let location = null;
                              const { currentLocation } = getNewAppointment(getState());
                              const action = {
                          Severity: Minor
                          Found in src/applications/vaos/new-appointment/redux/actions.js - About 1 hr to fix

                            Function getPageContent has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              getPageContent() {
                                const { claim } = this.props;
                            
                                // Return null if the claim/ claim.attributes dont exist
                                if (!claimAvailable(claim)) {
                            Severity: Minor
                            Found in src/applications/claims-status/containers/ClaimStatusPage.jsx - About 1 hr to fix

                              Function createReferral has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              const createReferral = (
                                startDate,
                                uuid,
                                providerId = '111',
                                expirationDate,
                              Severity: Minor
                              Found in src/applications/vaos/referral-appointments/utils/referrals.js - About 1 hr to fix

                                Function Alerts has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                const Alerts = () => {
                                  const isAccountStatusApiEnabled = useSelector(apiAccountStatusEnabled);
                                  const userVerified = useSelector(isLOA3);
                                  const vaPatient = useSelector(isVAPatient);
                                  const userRegistered = userVerified && vaPatient;
                                Severity: Minor
                                Found in src/applications/mhv-landing-page/containers/Alerts.jsx - About 1 hr to fix

                                  Function NotInDEERSAlert has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  const NotInDEERSAlert = () => {
                                    return (
                                      <>
                                        <va-alert
                                          status="warning"

                                    Function AccountSecurityLoa1CredAlert has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    export const AccountSecurityLoa1CredAlert = () => {
                                      const { label } = useSignInServiceProvider();
                                    
                                      return (
                                        <>

                                      Function prescriptions has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      export default function prescriptions(state = initialState, action) {
                                        switch (action.type) {
                                          case 'LOADING_ACTIVE':
                                            return set('active.loading', true, state);
                                      
                                      

                                        Function convertAppointment has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        export const convertAppointment = appt => {
                                          if (!appt) return null;
                                        
                                          const now = new Date();
                                          const { attributes } = appt;
                                        Severity: Minor
                                        Found in src/applications/mhv-medical-records/reducers/blueButton.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language