Showing 3,732 of 12,811 total issues
Function fetchTotalDisabilityRating
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchTotalDisabilityRating(recordAnalyticsEvent = recordEvent) {
return async dispatch => {
dispatch({
type: FETCH_TOTAL_RATING_STARTED,
});
Function createRoutesWithStore
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createRoutesWithStore = () => {
return (
<Switch>
{routes.map((route, i) => {
const options = { appName: APP_NAMES.CHECK_IN };
Function PreCheckinConfirmation
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PreCheckinConfirmation = props => {
const { appointments, isLoading, router } = props;
const selectForm = useMemo(makeSelectForm, []);
const currentForm = useSelector(selectForm);
const { t } = useTranslation();
Function ActionItemDisplay
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ActionItemDisplay = props => {
const { router } = props;
const dispatch = useDispatch();
const selectApp = useMemo(makeSelectApp, []);
const { app } = useSelector(selectApp);
Function render
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { calculatedRating } = this.props;
const placeholder = '--';
return (
Function UpcomingAppointmentsListItemAction
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UpcomingAppointmentsListItemAction = props => {
const { appointment, router } = props;
const { t } = useTranslation();
const dispatch = useDispatch();
const { goToNextPage, jumpToPage, getNextPageFromRouter } = useFormRouting(
Function flowPages
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const flowPages = (obj, list, path) => {
const pages = _.cloneDeep(obj);
const flowGroup = {};
const flowGroupName = path
.split('-')
Function recipientsReducer
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const recipientsReducer = (state = initialState, action) => {
switch (action.type) {
case Actions.AllRecipients.GET_LIST: {
const {
associatedTriageGroups,
Function checkCommunityCareEligibility
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function checkCommunityCareEligibility() {
return async (dispatch, getState) => {
const state = getState();
const communityCareEnabled = selectFeatureCommunityCare(state);
Function NeedHelp
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function NeedHelp() {
return (
<div className="vads-u-margin-top--9 vads-u-margin-bottom--3">
<h2 className="vads-u-font-size--h3 vads-u-margin-bottom--0">
Need help?
Function renderFacilityTable
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderFacilityTable = mainMap => {
const data = Array.of(createMainRow(mainMap.institution)).concat(
createBranchesAndExtensionsRows(mainMap, viewableRowCount),
);
Function sections
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const sections = Object.keys(perTerm).map(section => {
const {
visible,
title,
learnMoreAriaLabel,
Function fetchSearchByLocationCoords
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchSearchByLocationCoords(
location,
coordinates,
distance,
filters,
Function calculateTuition
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function calculateTuition(constant, eligibility, institution, derived) {
if (derived.oldGiBill) {
return { qualifier: 'per year', value: 0, ratedQualifier: '/ year' };
}
if (institution.type === 'ojt') {
Function renderAddressOption
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderAddressOption(address, id = 'userEntered') {
if (address !== undefined) {
const { street, cityStateZip, country } =
id !== 'userEntered'
? formatAddress(address)
Function updateSchema
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSchema: (formData, addressSchema, addressUiSchema, index, path) => {
let currentSchema = addressSchema;
const modifiedData = { ...formData };
Function fetchTotalDisabilityRating
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchTotalDisabilityRating(recordAnalyticsEvent = recordEvent) {
return async dispatch => {
dispatch({
type: FETCH_TOTAL_RATING_STARTED,
});
Function renderWebResult
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderWebResult(result, snippetKey = 'snippet', isBestBet = false, index) {
const strippedTitle = removeDoubleBars(
formatResponseString(result.title, true),
);
return (
Function searchResults
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const searchResults = () => {
if (loading) {
return <va-loading-indicator message="Loading..." set-focus />;
}
if (representatives?.length) {
Function downloadPdf
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const downloadPdf = async () => {
const formattedText = convertHtmlForDownload(
htmlContent,
DOWNLOAD_FORMAT.PDF,
);