Showing 13,268 of 13,268 total issues
Function ITFBanner
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ITFBanner = props => {
const [messageDismissed, setMessageDismissed] = useState(false);
const [reviewInitialFocus, setReviewInitialFocus] = useState(false);
const goHome = () => {
Function createDirectDepositPage
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function createDirectDepositPage() {
const bankAccountProperties = {
type: 'object',
properties: {
accountType: {
Function render
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { formConfig, buttonOnly, devOnly } = this.props;
const devOnlyForceShowFormControls =
environment.isLocalhost() &&
!window.Cypress &&
Function render
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { formConfig, buttonOnly, devOnly } = this.props;
const devOnlyForceShowFormControls =
environment.isLocalhost() &&
!window.Cypress &&
Function render
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { formConfig, buttonOnly, devOnly } = this.props;
const devOnlyForceShowFormControls =
environment.isLocalhost() &&
!window.Cypress &&
Function createMockAddressValidationSuccessResponse
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createMockAddressValidationSuccessResponse = _data => {
return {
data: {
messages: [
{
Function askVA
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
askVA: (state = initialState, action) => {
switch (action.type) {
case SET_CATEGORY_ID:
return {
...state,
Function CommunityCareProviderSelectionPage
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function CommunityCareProviderSelectionPage() {
const pageTitle = useSelector(state => getPageTitle(state, pageKey));
const dispatch = useDispatch();
const { data, pageChangeInProgress, schema } = useSelector(
Function useUnavailableItems
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useUnavailableItems = () => {
const { groups, items, channels } = getEntities(communicationPreferences);
const excludedGroupIds = [
// Always exclude QUICK_SUBMIT and GENERAL
Function directDeposit
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function directDeposit(state = initialState, action) {
switch (action.type) {
case DIRECT_DEPOSIT_FETCH_SUCCEEDED:
case DIRECT_DEPOSIT_SAVE_SUCCEEDED: {
return {
Function mapStateToProps
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mapStateToProps = state => {
const { isReady: hasLoadedScheduledDowntime } = state.scheduledDowntime;
const isLOA3 = isLOA3Selector(state);
const isLOA1 = isLOA1Selector(state);
const isVAPatient = isVAPatientSelector(state);
Function content
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const content = () => {
if (accessAlert) {
return (
<AccessTroubleAlertBox
alertType={accessAlertTypes.VITALS}
Function render
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const contentClasses = classNames(
'form-expanding-group-open',
'wizard-content',
{
Function render
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { enrollment, id } = this.props;
const amendments = enrollment.amendments || [];
const yellowRibbonStatus = enrollment.yellowRibbonAmount > 0 && (
<div className="yellow-ribbon-school">
File SearchMenu.jsx
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { toggleValues } from 'platform/site-wide/feature-toggles/selectors';
import FEATURE_FLAG_NAMES from 'platform/utilities/feature-toggles/featureFlagNames';
File transform.js
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import * as Sentry from '@sentry/browser';
import { formatDateShort } from 'platform/utilities/date';
import { isValid } from 'date-fns';
import {
isStreamlinedShortForm,
Function FormSaveErrorMessage
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FormSaveErrorMessage(props) {
const { route, formConfig, user, form, location, showLoginModal } = props;
const savedStatus = form?.savedStatus;
const appType = formConfig?.customText?.appType || APP_TYPE_DEFAULT;
Function SubmitButtons
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function SubmitButtons(props) {
const { onBack, onSubmit, submission, formConfig, formErrors = {} } = props;
const appType = formConfig?.customText?.appType || APP_TYPE_DEFAULT;
const buttonText =
File index.js
has 275 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { apiRequest } from 'platform/utilities/api';
import environment from 'platform/utilities/environment';
import { toSnakeCase } from '../helpers';
Function createContactInformationPage
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function createContactInformationPage(
schema,
addressField = 'veteranAddress',
) {
const { homePhone, mobilePhone } = schema.properties;