Showing 3,724 of 12,672 total issues
Function IntroductionPage
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IntroductionPage = props => {
const { route } = props;
const { formConfig, pageList } = route;
return (
Function render
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.state.loading) {
return <va-loading-indicator message="Loading facilities..." />;
}
Function TravelEligibilityAddtionalInfo
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TravelEligibilityAddtionalInfo = () => {
const boldComponent = [
<span key="bold" className="vads-u-font-weight--bold" />,
];
return (
Function Waivers
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Waivers = () => {
useEffect(() => {
recordEvent({
event: 'howToWizard-alert-displayed',
'reason-for-alert':
Function getPastAppointmentDateRangeOptions
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getPastAppointmentDateRangeOptions(today = moment()) {
const startOfToday = today.clone().startOf('day');
// Past 3 months
const options = [
Function AccountUpdateView
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const AccountUpdateView = props => {
// all props used come from the result of the useDirectDeposit hook
const {
formData,
formSubmit,
Function SearchReducer
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SearchReducer(state = initialState, action) {
switch (action.type) {
case FETCH_SEARCH_RESULTS: {
return {
...state,
File form.js
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import environment from '@department-of-veterans-affairs/platform-utilities/environment';
import { externalServices } from 'platform/monitoring/DowntimeNotification';
import get from '@department-of-veterans-affairs/platform-forms-system/get';
import GetFormHelp from '../../shared/components/GetFormHelp';
import manifest from '../manifest.json';
File EnhancedEmploymentRecord.jsx
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useState } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { setData } from 'platform/forms-system/src/js/actions';
import {
File AdditionalInstructions.jsx
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
import { board } from '../../helpers';
const AdditionalInstructions = ({ formValues }) => {
SearchDropdownComponent
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SearchDropdownComponent extends React.Component {
static propTypes = {
/**
* A boolean value for whether the submit button should be rendered or not.
* */
Function createRichTextDetailItem
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createRichTextDetailItem = async (doc, config, x, item) => {
let titleText = item.title ?? '';
const content = [];
if (titleText) {
Function vaTextInputFieldMapping
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function vaTextInputFieldMapping(props) {
const {
description,
textDescription,
DescriptionField,
Function refreshTransaction
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function refreshTransaction(
transaction,
analyticsSectionName,
_route = null,
) {
Function renderServiceTypeDropdown
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderServiceTypeDropdown = () => {
const { facilityType, serviceType, serviceTypeChanged } = currentQuery;
const disabled = ![
LocationType.HEALTH,
LocationType.URGENT_CARE,
Function transform
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function transform(formConfig, form) {
const newSchoolTransform = formData => {
let clonedData = _.cloneDeep(formData);
delete clonedData.newSchoolName;
Function listItems
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const listItems = providers.map((item, index) => {
const { insuranceName, insurancePolicyHolderName } = item;
const srLabel = getInsuranceSrLabel(item);
const modalDescription = replaceStrValues(
content['insurance-modal-remove-description'],
Function render
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
route,
params,
form,
Function personalInfo
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const personalInfo = (state = initialState, action) => {
switch (action.type) {
case FETCH_PERSONAL_INFO:
return {
...state,
Function listItems
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const listItems = providers.map((item, index) => {
const { insuranceName, insurancePolicyHolderName } = item;
const srLabel = getInsuranceSrLabel(item);
const modalDescription = replaceStrValues(
content['insurance-modal-remove-description'],