Showing 4,231 of 14,884 total issues
Function render
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { submission, formId, data } = form;
const submitDate = submission ? submission.timestamp : null;
const { fullName } = data;
Function generateMedicalCentersSchemas
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const generateMedicalCentersSchemas = (
medicalCentersKey = 'medicalCenters',
medicalCentersTitle = 'Default Medical Centers Title',
medicalCenterMessage = 'Default Message',
medicalCenterFieldLabel = 'Default Field Label',
Function WizardContainer
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WizardContainer = props => {
const { setWizardStatus } = props;
useEffect(() => {
focusElement('.va-nav-breadcrumbs-list');
}, []);
Function VeteranInformationViewComponent
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VeteranInformationViewComponent = props => {
const { profile } = props;
const {
gender,
dob,
Function MonetaryInputList
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MonetaryInputList = props => {
const { errorSchema, formContext } = props;
const errorList = errorSchema?.monetaryAssets?.__errors;
const { submitted } = formContext;
Function FormApp
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FormApp(props) {
const {
children,
hasSavedForm,
isLoading,
Function BackendAppointmentServiceAlert
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function BackendAppointmentServiceAlert() {
const {
backendServiceFailures,
futureStatus,
pastStatus,
Function threadsReducer
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const threadsReducer = (state = initialState, action) => {
switch (action.type) {
case Actions.Thread.GET_LIST:
return {
...state,
Function getGridData
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getGridData(appointment) {
const { isCommunityCare, isVideo } = appointment?.vaos || {};
const isPhone = isVAPhoneAppointment(appointment);
const { serviceType } = appointment?.vaos.apiData || {};
Function getBreadcrumbList
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getBreadcrumbList = () => {
const isPast = location.pathname.includes('/past');
const isPending = location.pathname.includes('/pending');
const BREADCRUMB_BASE = [
Function getICSTokens
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getICSTokens(buffer) {
const map = new Map();
let tokens = buffer.split('\r\n');
// Split tokens into key/value pairs using lookbehind since it is possible
Function generateTrackedItems
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generateTrackedItems = () => {
const { trackedItems } = claim.attributes;
const items = [];
const addItems = (date, description, item) => {
items.push({
Function verifyDependents
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function verifyDependents(state = initialState, action) {
switch (action.type) {
case DEPENDENCY_VERIFICATION_CALL_SUCCESS:
return {
...state,
Function ConfirmationPage
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ConfirmationPage = () => {
// Set focus
useEffect(() => {
// Wait a moment before setting focus to avoid an issue where focus would otherwise reset to the body element
setTimeout(() => {
Function fetchSearchResults
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchSearchResults(query, page, options, clearGAData) {
return dispatch => {
dispatch({ type: FETCH_SEARCH_RESULTS, query });
let queryString = `/search?query=${encodeURIComponent(query)}`;
Function buildMedicationInformationPDF
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const buildMedicationInformationPDF = list => {
const listOfHeaders = ['h2', 'h3'];
const sections = [
...list
.filter(listItem => listOfHeaders.includes(listItem.type))
Function sortFunc
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const sortFunc = (a, b) => {
if (sortField === 'SENT_DATE') {
if (sortOrder === 'DESC') {
return compareDesc(
new Date(a.attributes.sentDate),
Function ValidationError
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ValidationError(props) {
const { appType, buttonText, formConfig, onBack, onSubmit, testId } = props;
let ariaDescribedBy = null;
// If no ariaDescribedBy is passed down from form.js,
// a null value will properly not render the aria label.
Function getButton
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getButton(form) {
let url = '';
switch (form) {
case '0994':
url = `/education/about-gi-bill-benefits/how-to-use-benefits/vettec-high-tech-program/apply-for-vettec-form-22-0994`;
Function benefitsEligibilityUpdate
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const benefitsEligibilityUpdate = benefitsEligibilityBox => {
const uiSchema = {
'ui:description': benefitsEligibilityBox,
'view:selectedBenefits': {
'ui:title': 'Select the benefit that is the best match for you.',