Showing 12,841 of 12,841 total issues
Function fetchDebtLetters
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchDebtLetters = async (dispatch, debtLettersActive) => {
dispatch(fetchDebtsInitiated());
try {
const options = {
method: 'GET',
Function genSearchAreaFromCenter
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const genSearchAreaFromCenter = query => {
const { lat, lng, currentMapBoundsDistance, currentBounds } = query;
return dispatch => {
if (currentMapBoundsDistance > 500) {
dispatch({ type: GEOCODE_FAILED });
Function OperationStatus
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function OperationStatus(props) {
const { operatingStatus, website, facilityType } = props;
const visitText = useMemo(
() => {
if (facilityType === FacilityType.VA_CEMETERY) {
Function IntroductionPage
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const IntroductionPage = props => {
useEffect(() => {
focusElement('h1');
scrollTo('topContentElement');
});
Function renderMedicalRecordInfo
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderMedicalRecordInfo = formValues => {
if (['1', '2', '4'].indexOf(formValues['4_reason']) > -1) {
let requestQuestion;
if (parseInt(formValues['2_dischargeYear'], 10) >= 1992) {
requestQuestion = (
Function render
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { submission, data } = this.props.form;
const { response } = submission;
const name = data.applicantFullName;
Function transform
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function transform(formConfig, form) {
// Copy over sponsor data if the claimant is the veteran.
const populateSponsorData = application =>
isVeteran({ application })
? merge({}, application, {
Function onForwardButtonClick
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
() => {
if (!enrollmentVerification) {
return;
}
Function getInitialFormValues
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getInitialFormValues = options => {
const { fieldName, data, modalData } = options;
if (fieldName === FIELD_NAMES.EMAIL) {
return data ? { ...data } : { emailAddress: '' };
Function SearchResultReducer
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const SearchResultReducer = (state = INITIAL_STATE, action) => {
switch (action.type) {
case FETCH_REPRESENTATIVES:
case SEARCH_COMPLETE:
return {
Function NotFound
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NotFound = () => {
const content = {
heading: 'We couldn’t verify your identity',
alertText: (
<div>
Function _override
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_override: (error, fullError) => {
const errorMapping = {
questions: {
chapterKey: 'bankruptcyAttestationChapter',
pageKey: 'bankruptcyHistory',
Function fsrApi
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const fsrApi = (state = initialState, action) => {
switch (action.type) {
case FSR_API_ERROR:
return {
...state,
Function CategoryInput
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CategoryInput = props => {
const {
categories,
category,
categoryError,
Function saveDraftHandler
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async (type, e) => {
// Prevents 'auto' from running if isModalVisible is open
if (type === 'auto' && isModalVisible) {
return;
}
Function requestProvidersList
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function requestProvidersList(address) {
return async (dispatch, getState) => {
try {
const featureFacilitiesServiceV2 = selectFeatureFacilitiesServiceV2(
getState(),
Function updateFacilitySortMethod
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function updateFacilitySortMethod(sortMethod, uiSchema) {
return async (dispatch, getState) => {
let location = null;
const facilities = getTypeOfCareFacilities(getState());
const cernerSiteIds = selectRegisteredCernerFacilityIds(getState());
Function VideoInstructions
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function VideoInstructions() {
return (
<va-additional-info
trigger="How to setup your device"
disableBorder="true"
Function render
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { claim, loading } = this.props;
let content;
if (loading) {
content = (
Function App
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function App() {
const isLoading = useSelector(state => state?.user?.profile?.loading);
const isLoggedIn = useSelector(state => state?.user.login.currentlyLoggedIn);
const pageContent = isLoggedIn ? (
<AuthenticatedPageContent />