Showing 3,732 of 12,811 total issues
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { formId, data } = form;
const { fullName } = data;
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 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 MessageThread
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MessageThread = props => {
const { messageHistory, isDraftThread } = props;
const accordionRef = useRef();
return (
Function retrieveMessageThread
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const retrieveMessageThread = messageId => async (
dispatch,
getState,
) => {
const isPilot = getIsPilotFromState(getState);
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 POST /vaos/v2/appointments
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
'POST /vaos/v2/appointments': (req, res) => {
const {
practitioners = [{ identifier: [{ system: null, value: null }] }],
} = req.body;
const selectedClinic = clinicsV2.data.filter(
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 renderViewButtons
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderViewButtons = () => {
if (totalRowCount > DEFAULT_ROWS_VIEWABLE) {
if (viewableRowCount !== totalRowCount) {
const remainingRowCount = totalRowCount - viewableRowCount;
const showNextCount =
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 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 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 UploadDescription
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const UploadDescription = () => {
const types = SUPPORTED_UPLOAD_TYPES.map(text => text.toUpperCase());
const list = readableList(types, 'or');
return (
<div className="vads-u-margin-top--2">
Function ConfirmationPage
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ConfirmationPage = () => {
resetStoredSubTask();
return (
<ConfirmationDecisionReviews
Function UploadDescription
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const UploadDescription = () => {
const types = SUPPORTED_UPLOAD_TYPES.map(text => text.toUpperCase());
const list = readableList(types, 'or');
return (
<div className="vads-u-margin-top--2">
Function handleSubmit
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSubmit = e => {
e.preventDefault();
const {
facilityType,
Function setupPages
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const setupPages = () => {
const chapterKeys = Object.keys(formConfig?.chapters || {});
const chapterTitles = Object.values(formConfig?.chapters || {}).map(
value => value.title,
);
Function thirdPartyAppsReducer
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const thirdPartyAppsReducer = (state = initialState, action) => {
switch (action.type) {
case FETCH_RESULTS: {
return {
...state,