Showing 3,732 of 12,811 total issues
Function OtherExpensesInputList
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const OtherExpensesInputList = props => {
const { errorSchema, formContext } = props;
const errorList = errorSchema?.otherExpenses?.__errors;
const { submitted } = formContext;
Function fetchFormStatus
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchFormStatus = () => async dispatch => {
dispatch({
type: FSR_API_CALL_INITIATED,
});
const sessionExpiration = localStorage.getItem('sessionExpiration');
Function letterItems
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const letterItems = (this.props.letters || []).map((letter, index) => {
let content;
let letterTitle;
let helpText;
if (letter.letterType === LETTER_TYPES.benefitSummary) {
Function runAdvancedSearch
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
) => async (dispatch, getState) => {
dispatch({ type: Actions.Search.START });
const isPilot = getIsPilotFromState(getState);
try {
const response = await searchFolderAdvanced(
Function searchReducer
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const searchReducer = (state = initialState, action) => {
switch (action.type) {
case Actions.Search.RUN_ADVANCED:
return {
...state,
Function getPageContent
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getPageContent() {
const { claim } = this.props;
// Return null if the claim/ claim.attributes dont exist
if (!claimAvailable(claim)) {
Function ConfirmationPage
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ConfirmationPage() {
const dispatch = useDispatch();
const {
data,
facilityDetails,
Function GET /vaos/v2/eligibility
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
'GET /vaos/v2/eligibility': (req, res) => {
const isDirect = req.query.type === 'direct';
const ineligibilityReasons = [];
if (
Function schoolAttributes
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const schoolAttributes = () => {
const options = [
{
name: 'excludeCautionFlags',
checked: excludeCautionFlags,
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { programs } = this.props;
if (programs && programs.length) {
return (
Function resultCards
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(institution, index) => {
const { distance, name } = institution;
const miles = Number.parseFloat(distance).toFixed(2);
const { currentPage } = pagination;
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (!this.props.isVisible) return null;
const alertClass = classNames(
'usa-alert',
Function noResultsFound
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const noResultsFound = cnt => {
const noResultsNoFilters = cnt === 0 && !usedFilters;
const noResultsWithFilters = cnt === 0 && usedFilters;
return (
Function CalcBeneficiaryLocationQuestionModalContent
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function CalcBeneficiaryLocationQuestionModalContent() {
return (
<div>
<p>
VA pays monthly housing allowance (MHA) based on the campus location
Function submitFormData
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function submitFormData(stateKey, payload) {
return async dispatch => {
dispatch({
type: FORM_DATA_SUBMIT_START,
status: LOADING_STATUS.pending,
Function getAppointmentTimezone
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getAppointmentTimezone(appointment) {
if (appointment?.location) {
return {
identifier: appointment.location.attributes.timezone.timeZoneId,
abbreviation: getTimezoneAbbrByFacilityId(
Function generatePdf
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async () => {
setDownloadStarted(true);
setDownloadType('pdf');
setBlueButtonRequested(true);
dispatch(clearAlerts());
Function AllergiesErrorModal
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AllergiesErrorModal = props => {
const {
onCloseButtonClick,
onDownloadButtonClick,
onCancelButtonClick,
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form, formConfig, formContext, pageList, path, user } = this.props;
const { CustomReviewTopContent, hideReviewChapters } = formConfig;
const downtimeDependencies = get('downtime.dependencies', formConfig) || [];
Function saveForm
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function saveForm(saveType, formId, formData, version, returnUrl, submission) {
const savedAt = Date.now();
return (dispatch, getState) => {
const { trackingPrefix } = getState().form;