Showing 3,724 of 12,675 total issues
Function submitTransformer
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const submitTransformer = (formConfig, form) => {
const { data: formData } = form;
const primaryKey = formData['view:hasPrimaryCaregiver'] ? 'primary' : null;
const SecondaryOneKey = formData['view:hasSecondaryCaregiverOne']
? 'secondaryOne'
Function CareSummariesAndNotes
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CareSummariesAndNotes = () => {
const dispatch = useDispatch();
const updatedRecordList = useSelector(
state => state.mr.careSummariesAndNotes.updatedList,
);
Function FillRefillButton
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FillRefillButton = rx => {
const dispatch = useDispatch();
const { dispensedDate, error, prescriptionId, success, isRefillable } = rx;
File AutosuggestField.jsx
has 294 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
import Downshift from 'downshift';
import classNames from 'classnames';
import set from '../../../../utilities/data/set';
Function updateSchemaFromUiSchema
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function updateSchemaFromUiSchema(
schema,
uiSchema,
formData,
index = null,
Function render
has 76 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 reasonStatement
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const reasonStatement = formValues => {
const reason = formValues['4_reason'];
const dischargeType = formValues['5_dischargeType'];
switch (reason) {
Function reasonStatement
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const reasonStatement = () => {
const reason = formResponses[SHORT_NAME_MAP.REASON];
const dischargeType = formResponses[SHORT_NAME_MAP.DISCHARGE_TYPE];
switch (reason) {
Function render
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { route } = this.props;
const { formConfig, pageList } = route;
return (
Function render
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { route } = this.props;
const { formConfig, pageList } = route;
return (
Function render
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { route } = this.props;
const { formConfig, pageList } = route;
return (
Function render
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { route } = this.props;
const { formConfig, pageList } = route;
return (
Function buildLevelOneLinks
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const buildLevelOneLinks = (sectionData, index) => {
if (sectionData.menuSections) {
return (
<Fragment key={index}>
<li className="vads-u-background-color--primary-dark vads-u-margin--0 vads-u-margin-bottom--0p5 vads-u-width--full vads-u-font-weight--bold">
Function ValidateVeteran
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ValidateVeteran = props => {
const { router } = props;
const { t } = useTranslation();
const dispatch = useDispatch();
const { setPermissions } = useStorage(APP_NAMES.CHECK_IN);
Function SignatureCheckbox
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SignatureCheckbox = props => {
const {
children,
fullName,
isRequired,
Function content
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const content = () => {
if (!isLoaded) {
return (
<va-loading-indicator
message="Loading your secure message..."
Function render
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let content;
if (this.props.loading) {
content = (
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,
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) {
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';