Showing 4,231 of 14,884 total issues
Function getDynamicContent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getDynamicContent = formResponses => {
// Final content to show on the results page
const dynamicContentMatchingAnswer = [];
// Get array of short names with responses in the store minus SERVICE_PERIOD and any question ending in '_A'
Function useGetSearchResults
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function useGetSearchResults(articles, query, page) {
const [results, setResults] = useState([]);
// Refresh the results list when the query is submitted or the page is changed.
useEffect(
Function applyFocus
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const applyFocus = (parentId, headerHasFocused, setHeaderHasFocused) => {
if (!headerHasFocused) {
setTimeout(() => {
const header = document
.getElementById(parentId)
Function renderAlert
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderAlert = (alertType, statements) => {
const alertInfo = alertMessage(alertType, APP_TYPES.DEBT);
const showOther = statements > 0;
const showVAReturnLink = !showOther && alertType !== ALERT_TYPES.ALL_ERROR;
Function renderAlert
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderAlert = (alertType, debts) => {
const alertInfo = alertMessage(alertType, APP_TYPES.COPAY);
const showOther = debts > 0;
const showVAReturnLink = !showOther && alertType !== ALERT_TYPES.ALL_ERROR;
Function SearchResultReducer
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const SearchResultReducer = (state = INITIAL_STATE, action) => {
switch (action.type) {
case FETCH_LOCATIONS:
return {
...state,
Function addOrUpdateIssue
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addOrUpdateIssue = () => {
setSubmitted(true);
if (!showIssueNameError && !invalidDate) {
const selectedCount =
getSelected(data).length + (currentData[SELECTED] ? 0 : 1);
Function WiderThanMobileLogoRow
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WiderThanMobileLogoRow = () => {
return (
<div className="row va-flex usa-grid usa-grid-full va-header-logo-menu">
<div className="va-header-logo-wrapper">
<a
Function onContinueClick
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onContinueClick = () => {
if (!formValue) {
setFormError(true);
applyErrorFocus('duw-dropdown');
} else {
Function DirectDepositDescription
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DirectDepositDescription = () => {
const displayBankInfo = useCheckPath();
return (
<div className="vads-u-margin-top--2 vads-u-margin-bottom--2">
Function applyFocus
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const applyFocus = (parentId, headerHasFocused, setHeaderHasFocused) => {
if (!headerHasFocused) {
setTimeout(() => {
const header = document
.getElementById(parentId)
Function mapStateToProps
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mapStateToProps = state => {
const { MEBClaimStatus, TOEClaimStatus } = state?.data;
let latestClaim;
if (
Function onContinueClick
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onContinueClick = () => {
if (!formValue) {
setFormError(true);
applyErrorFocus('duw-radio');
} else {
Function DirectDepositDescription
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DirectDepositDescription = () => {
const displayBankInfo = useCheckPath();
return (
<div className="vads-u-margin-top--2 vads-u-margin-bottom--2">
Function transformForSubmit
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function transformForSubmit(formConfig, form) {
const transformedData = JSON.parse(
formsSystemTransformForSubmit(formConfig, form),
);
Function DirectDepositDescription
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DirectDepositDescription = () => {
const displayBankInfo = useCheckPath();
return (
<div className="vads-u-margin-top--2 vads-u-margin-bottom--2">
Function PreferredFacilityAlert
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PreferredFacilityAlert = () => {
// use logging to track the volume of users who receive this alert
useEffect(() => {
return () => {
recordEvent({
Function verifyEnrollment
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const verifyEnrollment = (state = initialState, action) => {
switch (action.type) {
case VERIFY_ENROLLMENT:
return {
...state,
Function libraryCount
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function libraryCount() {
if (document.getElementById('no-results')) {
document.getElementById('no-results').style.display = 'none';
document.getElementById('va-pager-div').style.display = 'flex';
document.getElementById('total-pages-div').style.display = 'flex';
Function clinicsVisited
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const clinicsVisited = avs => {
const shortTimezone = getShortTimezone(avs);
const clinics = avs.clinicsVisited.map((clinic, idx) => {
return (
<div key={clinic.clinicIen}>