Showing 4,231 of 14,884 total issues
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 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 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 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 render
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const contentClasses = classNames(
'form-expanding-group-open',
'wizard-content',
{
File helpers.js
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import appendQuery from 'append-query';
import * as Sentry from '@sentry/browser';
import React from 'react';
import fullSchema from 'vets-json-schema/dist/FEEDBACK-TOOL-schema.json';
import { transformForSubmit } from 'platform/forms-system/src/js/helpers';
File form.js
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { VA_FORM_IDS } from 'platform/forms/constants';
import {
yesNoSchema,
yesNoUI,
} from 'platform/forms-system/src/js/web-component-patterns';
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;
File seiTreatmentFacilities.js
has 275 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const treatmentFacilities = [
{
userProfileId: 15176497,
treatmentFacilityId: 17698697,
addressCity: null,
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 =
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;
Function IntroductionPage
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IntroductionPage = props => {
const dispatch = useDispatch();
const { hasVaFileNumber, isLoading } = useSelector(
state => state?.vaFileNumber,
);
Function render
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.props.loading || !Object.keys(this.props.facility).length) {
return (
<va-loading-indicator
message={`Loading facility's ${
Function Dependents
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Dependents = () => {
useEffect(() => {
recordEvent({
event: 'howToWizard-alert-displayed',
'reason-for-alert': 'request help with debt for spouses or dependents',