Showing 4,177 of 14,709 total issues
Consider simplifying this complex logical expression. Open
Open
if (element) {
const rect = element.getBoundingClientRect();
// Check if the element is out of the viewport
const inViewport =
Consider simplifying this complex logical expression. Open
Open
if (selectIsCommunityCare(appointment)) {
// NOTE: appointment.communityCareProvider is populated for booked CC only
const { providerName, name } = appointment.communityCareProvider || {
providerName: null,
name: null,
Consider simplifying this complex logical expression. Open
Open
if (typeOfCareId) {
const siteIds = selectSystemIds(initialState);
const cernerSiteIds = selectRegisteredCernerFacilityIds(initialState);
let typeOfCareFacilities = getTypeOfCareFacilities(initialState);
let siteId = null;
Consider simplifying this complex logical expression. Open
Open
if (
(isInPersonVAAppointment(appointment) && !isPendingAppointment) ||
isCOVIDVaccine ||
isCompAndPenAppointment ||
isClinicVideoAppointment(appointment) ||
Consider simplifying this complex logical expression. Open
Open
} else if (claimAvailable(claim)) {
breadcrumbs = [
{
href: '../status',
label: generateClaimTitle(claim, 'breadcrumb', currentTab),
Consider simplifying this complex logical expression. Open
Open
if (
modifiedData.application.applicant &&
modifiedData.application.applicant['view:applicantInfo'] &&
modifiedData.application.applicant['view:applicantInfo']
.mailingAddress &&
Consider simplifying this complex logical expression. Open
Open
if (response.error || response.errors) {
const errorStatus =
response.errors?.[0]?.status || response?.status || '';
const errorCodeOrMessage =
response.errors?.[0]?.code || response?.error || 'unknown-error';
Consider simplifying this complex logical expression. Open
Open
if (
(route.requiresLOA3 && !this.props.isLOA3) ||
(route.requiresMVI && !this.props.isInMVI) ||
(route.requiresLOA3 && this.props.isBlocked)
) {
Consider simplifying this complex logical expression. Open
Open
if (
(togglesLoaded && !prevProps.togglesLoaded && shouldFetchDirectDeposit) ||
(togglesLoaded &&
shouldFetchDirectDeposit &&
!prevProps.shouldFetchDirectDeposit)
Consider simplifying this complex logical expression. Open
Open
if (isRefillable) {
return (
<div className="rx-fill-refill-button" data-testid="fill-refill">
{success && (
<va-alert status="success" setFocus aria-live="polite" uswds>
Consider simplifying this complex logical expression. Open
Open
} else if (
((prescriptionsFullList?.length &&
pdfTxtGenerateStatus.format !== PRINT_FORMAT.PRINT) ||
(paginatedPrescriptionsList?.length &&
pdfTxtGenerateStatus.format === PRINT_FORMAT.PRINT)) &&
Function setSaveFormStatus
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
saveType,
status,
lastSavedDate = null,
expirationDate = null,
inProgressFormId = null,
Function validateNameSymbols
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function validateNameSymbols(errors, value, uiSchema, schema, messages) {
Function validateRoutingNumber
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
errors,
routingNumber,
formData,
schema,
errorMessages,
Function apiRequest
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
resource,
optionalSettings,
success,
error,
env = environment,
Function addressUiSchema
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
path = 'address',
checkBoxTitle = 'I live on a United States military base outside of the U.S.',
uiRequiredCallback = () => false,
newSchemaKeys = {},
onlyAllowUSAddresses = false,
Function validateCurrentOrPastMemorableDate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
errors,
dateString,
formData,
schema,
errorMessages = {},
Function showReviewField
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
propName,
schema,
uiSchema,
formData,
formContext,
Function validateDateRangeAllowSameMonth
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
errors,
dateRange,
formData,
schema,
errorMessages,
Function validateBooleanGroup
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
errors,
userGroup,
form,
schema,
errorMessages = {},