Showing 4,231 of 14,884 total issues
Function generate
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generate = async data => {
validate(data);
const doc = createAccessibleDoc(data, config);
await registerVaGovFonts(doc);
Function generateInfoForUnavailableRecords
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generateInfoForUnavailableRecords = (infoSection, doc, data) => {
doc.moveDown();
infoSection.add(
createHeading(doc, 'H2', config, 'Records not in this report', {
Function vaTextInputFieldMapping
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function vaTextInputFieldMapping(props) {
const {
description,
textDescription,
DescriptionField,
Function refreshTransaction
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function refreshTransaction(
transaction,
analyticsSectionName,
_route = null,
) {
Function renderServiceTypeDropdown
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderServiceTypeDropdown = () => {
const { facilityType, serviceType, serviceTypeChanged } = currentQuery;
const disabled = ![
LocationType.HEALTH,
LocationType.URGENT_CARE,
Function ConfirmationPage
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ConfirmationPage = () => {
resetStoredSubTask();
return (
<Toggler toggleName={Toggler.TOGGLE_NAMES.hlrConfirmationUpdate}>
Function listItems
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const listItems = providers.map((item, index) => {
const { insuranceName, insurancePolicyHolderName } = item;
const srLabel = getInsuranceSrLabel(item);
const modalDescription = replaceStrValues(
content['insurance-modal-remove-description'],
Function listItems
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const listItems = providers.map((item, index) => {
const { insuranceName, insurancePolicyHolderName } = item;
const srLabel = getInsuranceSrLabel(item);
const modalDescription = replaceStrValues(
content['insurance-modal-remove-description'],
Function personalInfo
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const personalInfo = (state = initialState, action) => {
switch (action.type) {
case FETCH_PERSONAL_INFO:
return {
...state,
Function OMBInfo
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const OMBInfo = () => {
const expDate = '07/31/2027';
const ombNum = '2900-0091';
const resBurden = '35';
return (
Function HouseholdFinancialOnboarding
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const HouseholdFinancialOnboarding = props => {
const {
goBack,
goForward,
contentBeforeButtons,
Function NextOfKin
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NextOfKin = props => {
const { router } = props;
const { t } = useTranslation();
const selectVeteranData = useMemo(makeSelectVeteranData, []);
Function useSendDemographicsFlags
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useSendDemographicsFlags = () => {
const selectApp = useMemo(makeSelectApp, []);
const { app } = useSelector(selectApp);
const [isLoading, setIsLoading] = useState(false);
const [isComplete, setIsComplete] = useState(false);
Function _override
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_override: error => {
if (typeof error === 'string') {
if (error?.endsWith('startDate') || error?.endsWith('endDate')) {
const errorParts = error.split('.');
if (error.startsWith('toxicExposure.gulfWar1990Details')) {
Function updateFormData
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateFormData = e => {
e.preventDefault();
const errorList = selectedDeductions
.filter(
Function updateFormData
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateFormData = e => {
e.preventDefault();
const errorList = selectedDeductions
.filter(
Function MessageThread
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MessageThread = props => {
const { messageHistory, isDraftThread } = props;
const accordionRef = useRef();
const [expanded, setExpanded] = useState('');
Function AppointmentListSection
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AppointmentListSection() {
useManualScrollRestoration();
const featureBreadcrumbUrlUpdate = useSelector(state =>
selectFeatureBreadcrumbUrlUpdate(state),
Function updateDropdowns
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const updateDropdowns = (
category = 'all',
location = 'all',
multiples = [],
) => {
Function generateMilitaryHistoryContent
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const generateMilitaryHistoryContent = record => {
return {
title: record.eventTitle,
details: [
{