Showing 12,811 of 12,811 total issues
Function ViewDependentsHeader
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ViewDependentsHeader(props) {
const { updateDiariesStatus } = props;
let alertProps;
// handle status from api
switch (updateDiariesStatus) {
Function PersonalInformation
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PersonalInformation = () => {
const location = useLocation();
const hasUnsavedEdits = useSelector(
state => state.vapService.hasUnsavedEdits,
File ApplicationStatus.jsx
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
import { fromUnixTime, isBefore } from 'date-fns';
import { format } from 'date-fns-tz';
import { connect } from 'react-redux';
File ResultsList.jsx
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useRef, useState } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { toggleValues } from 'platform/site-wide/feature-toggles/selectors';
File schemas.js
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { createSelector } from 'reselect';
import { merge, omit } from 'lodash';
import fullSchema from 'vets-json-schema/dist/21-526EZ-ALLCLAIMS-schema.json';
import _ from 'platform/utilities/data';
File form.js
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
CategoryEducation,
CHAPTER_1,
CHAPTER_2,
CHAPTER_3,
File validations.js
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import _ from 'platform/utilities/data';
import { isValidPhone, isValidEmail } from 'platform/forms/validations';
import {
MILITARY_CITY_CODES,
MILITARY_STATE_CODES,
Function getFormDOM
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getFormDOM(form) {
const formDOM = form?.container || findDOMNode(form);
if (!formDOM) {
throw new Error(
Function render
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { defaultSelectedItem } = this.state;
const { showError, currentQuery, handleServiceTypeChange } = this.props;
return (
<Downshift
Function priorServiceStatement
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const priorServiceStatement = formValues => {
switch (formValues['12_priorService']) {
case '1':
return (
<AlertMessage
Consider simplifying this complex logical expression. Open
Open
if (isDomesticAddress) {
address = {
country: 'United States',
street:
address1 &&
Function HomepageSearch
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const HomepageSearch = () => {
const [userInput, setUserInput] = useState('');
const [latestSuggestions, setLatestSuggestions] = useState([]);
// fetch Typeahead suggestions from API
Function render
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (
// Prevent RUM from running on local/CI environments.
environment.BASE_URL.indexOf('localhost') < 0 &&
// Prevent re-initializing the SDK.
Function render
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const rowId = `disability-row-${this.props.indx + 1}`;
const containerClasses = classNames(
'vads-u-padding-x--4 vads-u-margin-y--1',
this.props.disability.errorMessage
Function formConfig
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const formConfig = (pathname = null) => {
const { title, subTitle, formNumber } = getFormContent(pathname);
return {
rootUrl: manifest.rootUrl,
Function getEditView
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getEditView = () => {
const { SchemaField } = registry.fields;
const newUISchema = omit(
['ui:field', 'ui:title', 'ui:description'],
uiSchema,
Function TrashButton
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TrashButton = props => {
const { activeFolder, messageId, threadId, visible } = props;
const dispatch = useDispatch();
const history = useHistory();
const [isDeleteVisible, setIsDeleteVisible] = useState(false);
Function initialSchema
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialSchema() {
let newSchema = initialSchema;
let filteredClinics = clinics;
Consider simplifying this complex logical expression. Open
Open
if (isEditing) {
return (
<div
key={index}
id={`${this.props.idSchema.$id}_${index}`}
Function VitalListItem
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VitalListItem = props => {
const { record } = props;
const displayName = vitalTypeDisplayNames[record.type];
const updatedRecordType = useMemo(