Showing 3,731 of 12,808 total issues
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 LandingPage
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LandingPage = () => {
const profile = useSelector(selectUserProfile);
const isLoading = useSelector(selectUserIsLoading);
if (isLoading) {
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 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 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 LandingPageAuth
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LandingPageAuth = () => {
const dispatch = useDispatch();
const fullState = useSelector(state => state);
const inbox = useSelector(state => state.sm.folders?.folder);
const [prefLink, setPrefLink] = useState('');
Function sendReply
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
) => async dispatch => {
try {
await createReplyToMessage(replyToId, message, attachments);
dispatch(
addAlert(
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 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 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({
Function onAllComplete
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onAllComplete: () => {
const now = new Date(Date.now());
const uploadDate = buildDateFormatter()(now.toISOString());
if (!hasError) {
recordEvent({
Function getRecentlyClosedClaims
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getRecentlyClosedClaims = claims => {
return claims
.filter(isBenefitsClaimOrAppeal)
.filter(claim => {
// Check if this is an appeal, if so we want to filter it out
Function getCalculatedBenefits
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(inputs, constants, institution) => {
const avgDodBah = constants ? constants.AVGDODBAH : 0;
const tfCap = constants ? constants.TFCAP : 0;
const { vetTecTuitionFees, vetTecScholarships } = inputs;
Function renderBuyUp
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderBuyUp = () => {
if (!displayedInputs.buyUp) return null;
const buyUpAmountId = 'buyUpAmount';
const buyUpFieldId = `${buyUpAmountId}-field`;
Function mapper
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mapper: institution => {
const hasFlags = institution.cautionFlags.length > 0;
return (
<div className="vads-u-display--flex">
<div className="caution-flag-icon vads-u-flex--1">
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 parseCareSummariesAndNotes
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const parseCareSummariesAndNotes = records => {
return `
${txtLine}
2) Care summaries and notes