Showing 12,759 of 12,759 total issues
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 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 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 updateMemDb
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateMemDb = (req, res) => {
const key = `${req.method} ${req.url}`;
const body = req.body || {};
if (key === 'PUT /v0/profile/telephones') {
Function createSaveInProgressUpdate
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createSaveInProgressUpdate = req => {
const now = new Date().toISOString();
const formId = req.params.id;
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 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 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 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 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 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 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 paths
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const paths = () => {
return [
{
path: Paths.INBOX,
label: 'Inbox',
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 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);