Showing 3,724 of 12,675 total issues
Function getDerivedAttributes
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getDerivedAttributes(constant, eligibility, institution) {
const your = eligibility;
const its = institution;
const chapter = Number(your.giBillChapter);
let monthlyRate;
Function mockPrescription
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mockPrescription(n = 0, attrs = {}) {
// Generate some refillable, some not
const isRefillable = n % 3 === 0;
const refillRemaining = isRefillable ? Math.ceil(Math.log(n + 1)) : 0;
const {
File index.jsx
has 314 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
export const AssetInformationAlert = () => (
<va-additional-info trigger="How we define assets">
File SchoolLocations.jsx
has 314 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState } from 'react';
import { BrowserRouter as Router, Link } from 'react-router-dom';
import recordEvent from 'platform/monitoring/record-event';
import { waitForRenderThenFocus } from 'platform/utilities/ui';
import { getCalculatedBenefits } from '../../selectors/calculator';
Function render
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
onSubmit,
props: {
analyticsSectionName,
Function getUiSchema
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getUiSchema = () => {
return {
'view:livesOnMilitaryBase': {
'ui:title': 'I live on a United States military base outside of the U.S.',
'ui:webComponentField': VaCheckboxField,
Function IntroductionPage
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IntroductionPage = props => {
const { ombInfo, route } = props;
const { formConfig, pageList } = route;
useEffect(() => {
Function render
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
onSubmit,
props: {
analyticsSectionName,
Function render
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
vaFileNumber: { hasVaFileNumber, isLoading },
user,
} = this.props;
Function Disagree
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Disagree = () => {
useEffect(() => {
recordEvent({
event: 'howToWizard-alert-displayed',
'reason-for-alert':
Function ConfirmationPage
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ConfirmationPage() {
const { data, slot, facilityDetails, submitStatus } = useSelector(
selectConfirmationPage,
shallowEqual,
);
File stateList.js
has 313 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const stateList = [
{
key: 'AL',
label: 'Alabama',
value: 'AL',
File AddFilesForm.jsx
has 313 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import PropTypes from 'prop-types';
import React from 'react';
import Scroll from 'react-scroll';
import {
File form.js
has 312 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import environment from '@department-of-veterans-affairs/platform-utilities/environment';
import { cloneDeep } from 'lodash';
import { externalServices } from 'platform/monitoring/DowntimeNotification';
import {
Function mockPrescription
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mockPrescription(n = 0, attrs = {}) {
// Generate some refillable, some not
const isRefillable = n % 3 === 0;
const refillRemaining = isRefillable ? Math.ceil(Math.log(n + 1)) : 0;
const {
Function CustomPage
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CustomPage(props) {
const searchParams = getArrayUrlSearchParams();
const isEdit = !!searchParams.get('edit');
const isAdd = !!searchParams.get('add');
Function DynamicRadioWidget
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function DynamicRadioWidget(props) {
const { onChange } = props;
let locationsList = null;
let upperContent = null;
const [locations, setLocations] = useState([]);
Function Index
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Index = props => {
const { router } = props;
const { t } = useTranslation();
const { jumpToPage } = useFormRouting(router);
Function CreateFolderModal
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CreateFolderModal = props => {
const {
isCreateNewModalVisible,
setIsCreateNewModalVisible,
onConfirm,
Function AppealsV2StatusPage
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function AppealsV2StatusPage() {
const [appeal, fullName] = useOutletContext();
const {
events,
alerts,