Showing 12,848 of 12,848 total issues
Function updateData
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function updateData(oldForm, newForm) {
const updatedForm = newForm;
checkBoxElements.forEach(elementName => {
// For each checkBoxGroup in the form, get the number of selected elements before and after the current event
Function recurseField
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const recurseField = (key, field, rank = 0) => {
if (
field.value === '' ||
field.value === 0 ||
field.value === null ||
Function InitialConfirmEligibilityView
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function InitialConfirmEligibilityView(props) {
if (props.onReviewPage) {
return null;
}
captureEvents.ineligibilityAlert(props);
Function transform
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function transform(formConfig, form) {
const benefitsTransform = formData => {
const clonedData = _.cloneDeep(formData);
const benefits = clonedData['view:benefit'];
Function buildSubmitEventData
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const buildSubmitEventData = formData => {
const yesNoOrUndefined = value => {
if (value === undefined) {
return undefined;
}
Function schema
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function schema(currentSchema, topicProperty = 'topic') {
const topicSchema = currentSchema.properties[topicProperty];
return {
type: 'object',
required: ['levelOne', 'levelTwo'],
Function addFocusBehaviorToCrisisLineModal
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const addFocusBehaviorToCrisisLineModal = () => {
const overlay = document?.getElementById('ts-modal-crisisline');
const modal = document?.querySelector('.vcl-crisis-panel.va-modal-inner');
if (modal) {
Function addressReducer
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addressReducer(state = initialState, action) {
switch (action.type) {
case ADDRESS_VALIDATION_START:
return {
...state,
Function fetchRepresentatives
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchRepresentatives = async (
address,
lat,
long,
name,
Function AppointmentResources
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AppointmentResources = props => {
const { router } = props;
const { goBack } = router;
const { t } = useTranslation();
Function TravelAddress
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TravelAddress = props => {
const { router } = props;
const { t } = useTranslation();
const selectVeteranData = useMemo(makeSelectVeteranData, []);
const { demographics } = useSelector(selectVeteranData);
Function fetchFormStatus
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchFormStatus = () => async dispatch => {
dispatch(initiateApiCall());
const sessionExpiration = localStorage.getItem('sessionExpiration');
const remainingSessionTime = moment(sessionExpiration).diff(moment());
if (!remainingSessionTime) {
Function isOutsideListLoopReturn
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const isOutsideListLoopReturn = (
chapter,
outerField,
uiTitle,
formChapter,
Function isOutsideListLoopReturn
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const isOutsideListLoopReturn = (
chapter,
outerField,
uiTitle,
formChapter,
Function fetchDebts
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchDebts = async dispatch => {
const getDebts = () => {
const options = {
method: 'GET',
credentials: 'include',
Function YesDisabilityRating
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const YesDisabilityRating = props => {
const { setWizardStatus } = props;
useEffect(
() => {
setWizardStatus(WIZARD_STATUS_COMPLETE);
Function StaticInformationReviewField
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const StaticInformationReviewField = props => {
const [isLoggedIn, setIsLoggedIn] = useState();
useEffect(
() => {
setIsLoggedIn(props.isLoggedIn);
Function YesVaMemorandum
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const YesVaMemorandum = props => {
const { setWizardStatus } = props;
useEffect(
() => {
setWizardStatus(WIZARD_STATUS_COMPLETE);
Function YesIDES
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const YesIDES = props => {
const { setWizardStatus } = props;
useEffect(
() => {
setWizardStatus(WIZARD_STATUS_COMPLETE);
Function routeToPageInFlow
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function routeToPageInFlow(history, current, action, data) {
return async (dispatch, getState) => {
const pageFlow = getPageFlow(getState());
dispatch({