department-of-veterans-affairs/vets-website

View on GitHub

Showing 4,231 of 14,884 total issues

Function updateValidationKeyAndSave has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

) => async dispatch => {
  dispatch({
    type: ADDRESS_VALIDATION_UPDATE,
    fieldName,
  });
Severity: Minor
Found in src/platform/user/profile/vap-svc/actions/transactions.js - About 1 hr to fix

    Function Zero has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    ComboAlert.Zero = () => {
      return (
        <va-alert
          class="row vads-u-margin-bottom--5"
          status="info"

      Function convertNextValueToCleanData has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const convertNextValueToCleanData = value => {
        const {
          id,
          addressLine1,
          addressLine2,

        Function phoneUISchema has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function phoneUISchema(category) {
          return {
            'ui:options': {
              hideLabelText: true,
              showFieldLabel: false,
        Severity: Minor
        Found in src/applications/fry-dea/schema.js - About 1 hr to fix

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

          export const IntroductionPage = props => {
            useEffect(() => {
              focusElement('h1');
              scrollTo('topContentElement');
            });
          Severity: Minor
          Found in src/applications/appeals/996/containers/IntroductionPage.jsx - About 1 hr to fix

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

              render() {
                const { facility, currentQuery, showHoursSpecialInstructions } = this.props;
            
                if (!facility) {
                  return null;
            Severity: Minor
            Found in src/applications/facility-locator/containers/FacilityDetail.jsx - About 1 hr to fix

              Function getContestableIssues has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              export const getContestableIssues = props => {
                const benefitType = props?.benefitType || DEFAULT_BENEFIT_TYPE;
                return dispatch => {
                  dispatch({ type: FETCH_CONTESTABLE_ISSUES_INIT });
              
              
              Severity: Minor
              Found in src/applications/appeals/testing/sc/actions/index.js - About 1 hr to fix

                Function getContestableIssues has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                export const getContestableIssues = props => {
                  const benefitType = props?.benefitType || DEFAULT_BENEFIT_TYPE;
                  return dispatch => {
                    dispatch({ type: FETCH_CONTESTABLE_ISSUES_INIT });
                
                
                Severity: Minor
                Found in src/applications/appeals/testing/hlr/actions/index.js - About 1 hr to fix

                  Function hasDuplicateLocation has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    !!list.find(location => {
                      const {
                        locationAndName,
                        evidenceDates,
                        treatmentDate,
                  Severity: Minor
                  Found in src/applications/appeals/995/utils/submit.js - About 1 hr to fix

                    Function transform has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export function transform(formConfig, form) {
                      // https://dev-developer.va.gov/explore/appeals/docs/decision_reviews?version=current
                      const mainTransform = formData => {
                        const informalConference = formData.informalConference !== 'no';
                        const attributes = {
                    Severity: Minor
                    Found in src/applications/appeals/testing/hlr/config/submit-transformer.js - About 1 hr to fix

                      Function renderReviewAnswers has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        const renderReviewAnswers = () => {
                          return Object.keys(SHORT_NAME_MAP).map(shortName => {
                            if (formResponses[shortName] === null) {
                              return null;
                            }
                      Severity: Minor
                      Found in src/applications/discharge-wizard/components/v2/ReviewPage.jsx - About 1 hr to fix

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

                          render() {
                            const form = this.props.form;
                            const { submission, formId } = form;
                            const { benefit } = form.data;
                        
                        
                        Severity: Minor
                        Found in src/applications/edu-benefits/1995/containers/ConfirmationPage.jsx - About 1 hr to fix

                          Function PreSubmitNotice has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          const PreSubmitNotice = props => {
                            const { onSectionComplete, preSubmitInfo, showError, submission } = props;
                            const { field, required } = preSubmitInfo;
                          
                            const [accepted, setAccepted] = useState(false);
                          Severity: Minor
                          Found in src/applications/ezr/components/PreSubmitNotice/index.jsx - About 1 hr to fix

                            Function applicantInformationField has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            export const applicantInformationField = (automatedTest = false) => {
                              if (isProductionOfTestProdEnv(automatedTest)) {
                                return {
                                  ...createApplicantInformationPage(fullSchema1995, {
                                    isVeteran: true,
                            Severity: Minor
                            Found in src/applications/edu-benefits/1995/config/chapters.js - About 1 hr to fix

                              Function applicantInsuranceCommentsSchema has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              export function applicantInsuranceCommentsSchema(isPrimary) {
                                const keyname = isPrimary
                                  ? 'primaryAdditionalComments'
                                  : 'secondaryAdditionalComments';
                                return {

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

                                  render() {
                                    const { form } = this.props;
                                    const { submission, formId } = form;
                                    const benefits = form.data['view:selectedBenefits'];
                                
                                
                                Severity: Minor
                                Found in src/applications/edu-benefits/1990/containers/ConfirmationPage.jsx - About 1 hr to fix

                                  Function applicantServicePage has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  export default function applicantServicePage(currentSchema) {
                                    return {
                                      title: 'Applicant service',
                                      path: 'applicant/service',
                                      initialData: {},
                                  Severity: Minor
                                  Found in src/applications/edu-benefits/pages/applicantService.js - About 1 hr to fix

                                    Function getPeriodsToVerify has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    export const getPeriodsToVerify = pendingEnrollments => {
                                      return pendingEnrollments
                                        .map(enrollmentToBeVerified => {
                                          const {
                                            actBegin,
                                    Severity: Minor
                                    Found in src/applications/verify-your-enrollment/helpers.jsx - About 1 hr to fix

                                      Function addressLabel has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      export const addressLabel = address => {
                                        // Destructure address object for easier access
                                        const {
                                          addressLine1,
                                          addressLine2,
                                      Severity: Minor
                                      Found in src/applications/verify-your-enrollment/helpers.jsx - About 1 hr to fix

                                        Function openShareLink has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        export default function openShareLink() {
                                          const shareLinks = Array.from(document.querySelectorAll('.va-js-share-link'));
                                        
                                          if (shareLinks.length > 0) {
                                            const hasNavigatorShare = navigator.share !== undefined;
                                        Severity: Minor
                                        Found in src/applications/static-pages/widget-creators/social-share-links.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language