Showing 3,724 of 12,675 total issues
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 onContinueClick
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onContinueClick = () => {
if (!formValue) {
setFormError(true);
applyErrorFocus('duw-radio');
} else {
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 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 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 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 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 FollowUs
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FollowUs = () => {
return (
<section>
<h4>Follow us</h4>
<ul className="va-nav-linkslist-list social">
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 App
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const App = () => {
return (
<div>
<div className="row">
<VaBreadcrumbs
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}>
Function ListBlock
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ListBlock = props => {
const {
heading,
headingLevel = 3,
items,
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 WrappedComponent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WrappedComponent = props => {
const { appName } = options;
const { router } = props;
const selectCurrentContext = useMemo(makeSelectCurrentContext, []);
const { token, permissions } = useSelector(selectCurrentContext);
Function sendPreCheckInData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function sendPreCheckInData() {
// Set pre-checkin complete and send demographics flags.
const preCheckInData = { uuid: token };
if (demographicsUpToDate) {
Function fetchRepStatus
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const fetchRepStatus = async () => {
setIsLoading(true);
setError(null);
try {
Function updateSchema
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSchema: (formData, schema, uiSchema, index) => {
let militaryBasePath = livesOnMilitaryBasePath;
let countryPath = path;
if (typeof index === 'number') {
militaryBasePath = insertArrayIndex(
Function FormFooter
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function FormFooter() {
return (
<>
<div className="row">
<div className="usa-width-two-thirds medium-8 columns">