Showing 4,231 of 14,884 total issues
Function addressDescription
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addressDescription = () => {
return (
<>
{loading ? (
<va-loading-indicator
Function PersonalInformationPage
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PersonalInformationPage = props => {
const { location, route, router } = props;
const { pathname } = location;
const { pageList } = route;
const { data: formData } = useSelector(state => state.form);
Function VerifyServiceAlert
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VerifyServiceAlert = () => {
const signinServiceLabel = SERVICE_PROVIDERS[signInService]?.label;
const headline = serviceDescription
? `${headingPrefix} to ${serviceDescription}`
: headingPrefix;
Function BannerContainer
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const BannerContainer = () => {
const {
TOGGLE_NAMES,
useToggleValue,
useToggleLoadingValue,
Function render
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
appId,
authenticatedWithSSOe,
children,
Function buildOperatingStatusProps
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const buildOperatingStatusProps = attrs => {
const { opStatus, opStatusExtra } = attrs;
let statusLabel;
let statusType;
Function TravelAddress
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TravelAddress = props => {
const { router } = props;
const { t } = useTranslation();
const { updateError } = useUpdateError();
const selectVeteranAddress = useMemo(makeSelectVeteranAddress, []);
Function TravelClaimSuccessAlert
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TravelClaimSuccessAlert = () => {
const selectForm = useMemo(makeSelectForm, []);
const { data } = useSelector(selectForm);
const { appointmentToFile } = data;
const { t } = useTranslation();
Function ConfirmationPage
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ConfirmationPage = props => {
const form = useSelector(state => state.form || {});
const { submission } = form;
const submitDate = submission.timestamp;
const confirmationNumber = submission.response?.confirmationNumber;
Function fetchMapBoxGeocoding
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchMapBoxGeocoding = async (query, client = null) => {
if (!query) {
return {
type: 'SEARCH_FAILED',
errorMessage: content['error--facility-search-cancelled'],
Function getHealthFacilityTitle
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getHealthFacilityTitle = data => {
const {
YOUR_VA_HEALTH_FACILITY,
VETERAN_VA_HEALTH_FACILITY,
FAMILY_MEMBER_VA_HEALTH_FACILITY,
Function HouseholdExpensesInputList
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const HouseholdExpensesInputList = props => {
const { submitted } = props.formContext;
const { errorSchema } = props;
const errorList = errorSchema?.expenseRecords?.__errors;
Function updateCCProviderSortMethod
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function updateCCProviderSortMethod(sortMethod, selectedFacility = {}) {
return async (dispatch, getState) => {
let location = null;
const { currentLocation } = getNewAppointment(getState());
const action = {
Function getPageContent
has 41 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 createReferral
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createReferral = (
startDate,
uuid,
providerId = '111',
expirationDate,
Function Alerts
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Alerts = () => {
const isAccountStatusApiEnabled = useSelector(apiAccountStatusEnabled);
const userVerified = useSelector(isLOA3);
const vaPatient = useSelector(isVAPatient);
const userRegistered = userVerified && vaPatient;
Function NotInDEERSAlert
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NotInDEERSAlert = () => {
return (
<>
<va-alert
status="warning"
Function AccountSecurityLoa1CredAlert
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const AccountSecurityLoa1CredAlert = () => {
const { label } = useSignInServiceProvider();
return (
<>
Function prescriptions
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function prescriptions(state = initialState, action) {
switch (action.type) {
case 'LOADING_ACTIVE':
return set('active.loading', true, state);
Function convertAppointment
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const convertAppointment = appt => {
if (!appt) return null;
const now = new Date();
const { attributes } = appt;