Showing 3,736 of 12,815 total issues
Function IntroductionPage
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IntroductionPage = props => {
const { route } = props;
const { isUserLOA1, isUserLOA3 } = useSelector(selectAuthStatus);
const { formConfig, pageList } = route;
Function MissingEDIPI
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MissingEDIPI = () => {
recordEvent({
event: 'visible-alert-box',
'alert-box-type': 'error',
'alert-box-heading': 'We need more information for your application',
Function updateAddress
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateAddress = (state = initialState, action) => {
switch (action.type) {
case UPDATE_ADDRESS:
return {
...state,
Function DefaultAlert
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DefaultAlert = () => {
return (
<div data-testid="mhv-unverified-alert">
<CustomAlert
headline={headline}
Function handleTouClick
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleTouClick = async type => {
const cernerType = type === 'accept' ? 'accept_and_provision' : type;
try {
setIsDisabled(true);
Function withForm
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const withForm = (Component, options = {}) => {
const WrappedComponent = props => {
const { appName } = options;
const { router } = props;
const selectForm = useMemo(makeSelectForm, []);
Function organizeAppointmentsByYearMonthDay
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function organizeAppointmentsByYearMonthDay(appointments) {
const organizedData = [];
// First sort the appointments by start time then organize them by yearmonth and day
const sortedAppointments = sortAppointmentsByStartTime(appointments);
Function onChange
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onChange = event => {
const pageState = event.target.value || '';
saveDischargeDate();
const date = isDateComplete(pageState) ? getDate(pageState) : null;
const nextPage =
Function transformForSubmit
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function transformForSubmit(formConfig, form) {
let transformedData = JSON.parse(sharedTransformForSubmit(formConfig, form));
const witnessRelationshipToClaimantAnswers =
transformedData?.witnessRelationshipToClaimant;
Function App
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const App = props => {
const {
children,
formData,
setFormData,
Function profileReducer
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function profileReducer(state = getNullProfileState(), action) {
switch (action.type) {
case FETCH_USER:
return {
...state,
Function DependentAgesReview
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DependentAgesReview = () => {
const hasDependents = useSelector(
state => state.form.data.questions?.hasDependents,
);
const dependents = useSelector(
Function updateFormData
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateFormData = () => {
if (!isValidCurrency(cash)) {
return setError(ERR_MSG);
}
Function onSubmit
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onSubmit = event => {
event.preventDefault();
const hasEmptyInput = stateDependents.some(
dependent => dependent.dependentAge === '',
Function handleChange
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleChange = async event => {
const file = event?.detail?.files[0];
const extraData = {};
const checks = { checkTypeAndExtensionMatches, checkIsEncryptedPdf };
Function retrieveFolder
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const retrieveFolder = folderId => async (dispatch, getState) => {
const isPilot = getIsPilotFromState(getState);
await getFolder({ folderId, isPilot })
.then(response => {
if (response.data) {
Function paths
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const paths = () => {
return [
{
path: Paths.INBOX,
label: 'Inbox',
Function selectApptDetailAriaText
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function selectApptDetailAriaText(appointment, isRequest = false) {
const appointmentDate = selectStartDate(appointment);
const isCanceled = selectIsCanceled(appointment);
const isCommunityCare = selectIsCommunityCare(appointment);
const isPhone = selectIsPhone(appointment);
Function selectModalityText
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function selectModalityText(appointment, isPendingAppointment = false) {
const isCommunityCare = selectIsCommunityCare(appointment);
const isInPerson = selectIsInPerson(appointment);
const isPhone = selectIsPhone(appointment);
const isVideoAtlas = selectIsAtlasVideo(appointment);
Function openContactFacilitiesPage
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function openContactFacilitiesPage() {
return async (dispatch, getState) => {
try {
const initialState = getState();
const newBooking = selectCovid19VaccineNewBooking(initialState);