Showing 4,231 of 14,884 total issues
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);
const { fullName } = data;
Function redirectIfNecessary
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const redirectIfNecessary = currentWindow => {
// Check if the route matches an absolute cross-domain redirect.
const absoluteCrossDomainRedirects = crossDomainRedirects?.filter(
redirect => !redirect?.catchAll && !redirect?.isToSubdomain,
);
Function periodsToVerify
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
enrollmentToBeVerified => {
const {
verificationBeginDate,
verificationEndDate,
// lastDepositAmount,
Function buildLevelOneLinks
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const buildLevelOneLinks = (sectionData, index) => {
const isDropdown = sectionData?.menuSections;
const sectionOpen = levelOneIndexOpen === index;
if (isDropdown) {
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const fields = [
{
label: 'Subject',
value: 'subject',
Function facilityListProps
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
() => {
const caregiverSupport = async facility => {
const offersCaregiverSupport = facility.services?.health?.some(
service => service.serviceId === 'caregiverSupport',
);
Function setupPages
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const setupPages = formConfig => {
const chapterKeys = Object.keys(formConfig?.chapters || {});
const chapterTitles = Object.values(formConfig?.chapters || {}).map(
value => value.title,
);
Function PageFieldSummary
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PageFieldSummary = props => {
const { renderedProperties, defaultEditButton, updatedPage } = props;
const { allPages } = setupPages(formConfig);
const currentPage = allPages.filter(page => page.key === updatedPage);
const alertPage = allPages.filter(page => page.title === 'Your question');
Function getBenefitOptionText
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getBenefitOptionText(
option,
value,
isVeteran,
awardEffectiveDate,
Function optionsValues
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
() => {
if (!optGroupEnabled) {
return sortRecipients(recipientsList)?.map(item => (
<option key={item.id} value={item.id}>
{item.name}
Function formatDescription
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function formatDescription(description, location = '') {
if (!description || !description.text) {
return 'DESCRIPTION:';
}
Function renderKicker
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderKicker = () => {
if (!displayedInputs.kicker) return null;
const radioButtonsLabelText = 'Eligible for kicker bonus?';
const kickerAmountId = 'kickerAmount';
const kickerFieldId = `${kickerAmountId}-field`;
Function default
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function(state = INITIAL_STATE, action) {
switch (action.type) {
case FILTERS_CHANGED:
return {
...state,
Function notificationsReducer
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const notificationsReducer = (state = initialState, action) => {
switch (action.type) {
case NOTIFICATIONS_RECEIVED_STARTED:
return {
...state,
Function recordData
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
() => {
if (isDataFetched) {
return {
labsAndTests:
labsAndTests && recordFilter?.includes('labTests')
Function renderResults
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderResults = () => {
return (
<div>
<ResultsCounter
currentPage={currentPage}
Function PmcModalContent
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function PmcModalContent() {
return (
<>
<p>
<strong>Respondent Burden:</strong> Public reporting burden for this
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let beforeText = '';
if (this.props.beforeText && this.props.beforeText === '«') {
beforeText = (
Function handleSubmit
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSubmit = e => {
e.preventDefault();
const {
facilityType,
Function ConfirmationPage
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ConfirmationPage = () => {
resetStoredSubTask();
return (
<ConfirmationDecisionReviews