Showing 12,759 of 12,759 total issues
Function selectApptDetailAriaText
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function selectApptDetailAriaText(appointment, isRequest = false) {
const appointmentDate = selectStartDate(appointment);
const isCanceled = selectIsCanceled(appointment);
const isCommunityCare = selectIsCommunityCare(appointment);
const isPhone = selectIsPhone(appointment);
Function selectModalityText
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function selectModalityText(appointment, isPendingAppointment = false) {
const isCommunityCare = selectIsCommunityCare(appointment);
const isInPerson = selectIsInPerson(appointment);
const isPhone = selectIsPhone(appointment);
const isVideoAtlas = selectIsAtlasVideo(appointment);
Function checkFormValidity
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const checkFormValidity = () => {
const today = new Date();
// TODO: add validation for ALL blank fields
let formInvalid;
if (dateRange === 'custom') {
Function PrintBtn
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PrintBtn = props => {
const printButtonRef = useRef(null);
const { activeFolder } = props;
const handleConfirmPrint = () => {
Function TypeOfCareAlert
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function TypeOfCareAlert() {
const headline = 'Is the type of care you need not listed here?';
return (
<PostFormFieldContent>
<InfoAlert
Function next
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async next(state, dispatch) {
if (isCovidVaccine(state)) {
recordEvent({
event: `${GA_PREFIX}-schedule-covid19-button-clicked`,
});
Function getAppealsV2
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getAppealsV2() {
return dispatch => {
dispatch({ type: FETCH_APPEALS_PENDING });
return apiRequest('/appeals')
.then(appeals => dispatch(fetchAppealsSuccess(appeals)))
Function getClaims
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getClaims = () => {
return dispatch => {
const startTimeMillis = Date.now();
dispatch({ type: FETCH_CLAIMS_PENDING });
Function updateAddress
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateAddress = (state = initialState, action) => {
switch (action.type) {
case UPDATE_ADDRESS:
return {
...state,
Function addressDescription
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addressDescription = () => {
return (
<>
<div className="vads-u-margin-bottom--1">
{(error || validationError) && (
Function errorAddressAlert
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const errorAddressAlert = deliveryPointValidation => {
if (deliveryPointValidation === BAD_UNIT_NUMBER) {
return (
<Alert
status="warning"
Function MailOrFaxFilesContent
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MailOrFaxFilesContent = () => {
return (
<>
<p>
We can process your request more quickly if you upload your files here.
Function compareAddressObjects
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function compareAddressObjects(obj1, obj2) {
const { hasOwnProperty } = Object.prototype;
const keys1 = Object.keys(obj1);
const keys2 = Object.keys(obj2);
Function render
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="vads-l-grid-container vads-u-padding--2">
<DowntimeNotification
appTitle="view dependents tool"
Function getAllPayments
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getAllPayments = () => async dispatch => {
dispatch({ type: PAYMENTS_RECEIVED_STARTED });
const response = await retrievePayments();
if (response.errors) {
const error = response.errors[0];
Function componentDidUpdate
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentDidUpdate(prevProps) {
const {
fetchDirectDeposit,
fetchFullName,
fetchMilitaryInformation,
Function ViewRepresentativeBody
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ViewRepresentativeBody = props => {
const { loading, representative, error } = props.representative;
let content;
if (loading) {
content = <va-loading-indicator message="Loading your representative" />;
Function rebuildGuess
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function rebuildGuess() {
// use Intl API when available and returning valid time zone
try {
var intlName = Intl.DateTimeFormat().resolvedOptions().timeZone;
if (intlName && intlName.length > 3) {
Function AccessTroubleAlertBox
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AccessTroubleAlertBox = props => {
const { className, alertType } = props;
const phase0p5Flag = useSelector(
state => state.featureToggles.mhv_integration_medical_records_to_phase_1,
);
Function subNameContent
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const subNameContent = () => {
if (isOrg) {
return (
<p>
You can work with any accredited VSO representative at this