Showing 4,231 of 14,884 total issues
Function render
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { user, form, formConfig, route } = this.props;
const finishAppLaterMessage =
formConfig?.customText?.finishAppLaterMessage ||
FINISH_APP_LATER_DEFAULT_MESSAGE;
Function schema
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const schema = optionalFields => {
const s = {
type: 'object',
properties: {
bankAccount: {
Function determineResultsPage
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const determineResultsPage = (formResponses, router) => {
const responseToServicePeriod = getServicePeriodResponse(formResponses);
const { RESULTS_4 } = SHORT_NAME_MAP;
const resultsPages = DISPLAY_CONDITIONS?.RESULTS;
Function createExternalApplicationUrl
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const createExternalApplicationUrl = () => {
const { application, to } = getQueryParams();
if (!application) {
return null;
}
Function transform
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function transform(formConfig, form) {
// https://dev-developer.va.gov/explore/appeals/docs/decision_reviews?version=current
const mainTransform = formData => {
const { informalConferenceChoice } = formData;
// v2 value may still be in the save-in-progress form data (informalConference)
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 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 isOutsideListLoopReturn
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const isOutsideListLoopReturn = (
chapter,
outerField,
uiTitle,
formChapter,
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 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 fetchRepresentatives
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchRepresentatives = async (
address,
lat,
long,
name,
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 AuthContext
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AuthContext = () => {
const {
useToggleValue,
useToggleLoadingValue,
TOGGLE_NAMES,
Function TravelPayOMB
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TravelPayOMB = () => {
return (
<va-omb-info
exp-date={EXP_DATE}
omb-number={OMB_NUMBER}
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 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 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 LandingPage
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LandingPage = () => {
const profile = useSelector(selectUserProfile);
const isLoading = useSelector(selectIsUserLoading);
if (isLoading) {