Showing 4,231 of 14,884 total issues
Function getCards
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getCards = () => {
const combinedEnrollmentsObj = combineEnrollmentsWithStartMonth(
enrollmentPeriods,
);
const combinedEnrollmentsValues = Object.values(
Function combineEnrollmentsWithStartMonth
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const combineEnrollmentsWithStartMonth = enrollmentPeriods => {
const isArray = Array.isArray(enrollmentPeriods);
const trackDate = [];
const combineMonths = {};
Function genSearchAreaFromCenter
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const genSearchAreaFromCenter = query => {
const { lat, lng, currentBounds } = query;
return dispatch => {
const types = MAPBOX_QUERY_TYPES;
mbxClient
Function appointments
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const appointments = avs => {
if (avs.appointments?.length > 0) {
const scheduledAppointments = getAppointmentContent(
APPOINTMENT_TYPES.SCHEDULED,
avs.appointments,
Function createFutureEvents
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createFutureEvents = () => {
// Types: upcoming, next-month, next-week
return [
// upcoming
createEvent(
Function SearchResults
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SearchResults = () => {
const {
awaitingResults,
searchResults,
searchFolder,
Function ReferralTaskCardWithReferral
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ReferralTaskCardWithReferral() {
const { search } = useLocation();
const params = new URLSearchParams(search);
const id = params.get('id');
Function NextSteps
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function NextSteps() {
return (
<div className="next-steps-container vads-u-margin-bottom--4">
<h3 className="vads-u-margin-top--0 vads-u-margin-bottom--3">
Next steps
Function typeOfInstitution
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const typeOfInstitution = () => {
const title = 'Filter your results';
return (
<>
<hr />
Function doSearch
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const doSearch = event => {
if (event) {
event?.preventDefault();
if (
validateSearchTermSubmit(
Function renderEnrolled
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderEnrolled = () => {
const {
enrolled: shouldRenderEnrolled,
enrolledOld: shouldRenderEnrolledOld,
} = displayedInputs;
Function deletePhoneNumberSuccess
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const deletePhoneNumberSuccess = () => {
return [
rest.delete(`${prefix}/v0/profile/telephones`, (req, res, ctx) => {
return res(
ctx.json({
Function content
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const content = () => {
if (imageList.length && imagesPerPage && studyId) {
return (
<>
<div className="vads-u-padding--0 vads-u-border-top--1px vads-u-border-color--gray-lighter vads-l-grid-container vads-l-row vads-u-margin-bottom--2">
Function getEnrollmentData
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getEnrollmentData(apiVersion) {
return dispatch =>
apiRequest(
'/post911_gi_bill_status',
apiVersion,
Function deriveNavItemsLookup
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const deriveNavItemsLookup = options => {
// Derive the properties from options.
const rootPath = get(options, 'rootPath');
const depth = get(options, 'depth', 0);
const items = get(options, 'items', []);
Function initMHVTermsMocks
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initMHVTermsMocks(token, termsName = 'mhvac', bypass = true) {
mock(token, {
path: `/v0/terms_and_conditions/${termsName}/versions/latest`,
verb: 'get',
value: {
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div>
<div className="footer-inner">
<DesktopLinks
Function ClientError
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ClientError(props) {
const { buttonText, formConfig, onBack, onSubmit, testId } = props;
const scrollToError = () => {
scrollTo('errorScrollElement', getScrollOptions());
};
Function PreviousNames
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function PreviousNames(props) {
const { values, setFieldValue } = useFormikContext();
useEffect(
() => {
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { submission, formId, data } = form;
const submitDate = new Date(submission?.timestamp);