Showing 3,731 of 12,808 total issues
Function render
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
data,
schema,
uiSchema,
Function ThrottledError
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ThrottledError(props) {
const { buttonText, when, 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 updateItemsSchema
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function updateItemsSchema(schema, fieldData = null) {
if (schema.type === 'array') {
let newSchema = schema;
// This happens the first time this function is called when
Function VeteranInfoBox
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VeteranInfoBox = props => {
const {
first,
middle,
last,
Function veteranList
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const veteranList = veterans?.map((veteran, index) => {
return (
<li
key={`veteran-${index}`}
className="fry-dea-form-featured-content vads-u-margin-top--2"
Function renderHealthServices
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderHealthServices() {
const {
facility: {
attributes: { services },
},
Function renderInbox
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderInbox = () => {
if (
MEBClaimStatusFetchInProgress ||
TOEClaimStatusFetchInProgress ||
!isLoggedIn.current
Function loginPrompt
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loginPrompt() {
if (this.props.isLoggedIn) {
if (this.moreThanSixMonths(this.props?.remainingEntitlement)) {
return (
<div
Function applicantInsuranceEobSchema
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function applicantInsuranceEobSchema(isPrimary) {
const keyname = isPrimary ? 'applicantPrimaryEob' : 'applicantSecondaryEob';
const provider = isPrimary
? 'applicantPrimaryProvider'
: 'applicantSecondaryProvider';
Function containerForLinks
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const containerForLinks = (title, linkGroups) => {
const isActiveMenu = activeMenu === title;
return (
<div
Function GroupCheckboxWidget
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const GroupCheckboxWidget = props => {
const { value, options, formContext, onChange } = props;
const { onReviewPage, reviewMode } = formContext || {};
const { labels } = options;
Function deriveEventLocations
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const deriveEventLocations = event => {
const locations = [];
if (!event) {
return locations;
Function App
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const App = props => {
const { featureFlagsLoading, user } = props;
const { ratedDisabilities } = props.ratedDisabilities;
return (
Function PrepareContent
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PrepareContent = props => {
const { smallHeading, router, appointmentCount } = props;
const { jumpToPage } = useFormRouting(router);
const { t } = useTranslation();
const selectFeatureToggles = useMemo(makeSelectFeatureToggles, []);
Function formatContactInfo
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function formatContactInfo(poaAttributes) {
const {
addressLine1,
addressLine2,
addressLine3,
Function addForm0781
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const addForm0781 = formData => {
const clonedData = _.cloneDeep(formData);
const incidentKeys = getFlatIncidentKeys();
const incidents = incidentKeys
.filter(incidentKey => clonedData[incidentKey])
Function VeteranInfoBox
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VeteranInfoBox = props => {
const {
first,
middle,
last,
Function transformMarriage
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function transformMarriage(marriage) {
const transformedMarriage = { ...marriage };
if (
transformedMarriage['view:pastMarriage'] &&
transformedMarriage['view:pastMarriage'].reasonForSeparation
Function GroupCheckboxWidget
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const GroupCheckboxWidget = props => {
const { value, options, formContext, onChange } = props;
const { onReviewPage, reviewMode } = formContext || {};
const { labels } = options;
Function SubmissionErrorAlert
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SubmissionErrorAlert = () => {
useEffect(() => {
focusElement('.caregiver-error-message');
}, []);