Showing 3,724 of 12,675 total issues
Function SupportingFilesOrAffidavitInfo
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SupportingFilesOrAffidavitInfo = () => {
return (
<>
<p>
You can also upload supporting files or an affidavit (a written
Function fleshOutRecurringEvents
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fleshOutRecurringEvents = events => {
if (!events) {
return [];
}
Function VeteranInformation
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VeteranInformation = props => {
const {
data,
goBack,
goForward,
Function AuthRegistrationOnlyPage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AuthRegistrationOnlyPage = props => {
const { location, route, router } = props;
const { data: formData } = useSelector(state => state.form);
const goBack = () => {
const { pathname } = location;
Function DemographicViewField
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DemographicViewField = props => {
const { formContext, uiSchema, schema, formData, registry } = props;
const { ObjectField } = registry.fields;
if (formContext.reviewMode) {
Function renderOldLandingContent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderOldLandingContent = () => {
return (
<>
<p>
You can find an accredited attorney, claims agent, or VSO in 1 of these
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.props.loading) {
return <va-loading-indicator message="Loading facility..." />;
}
Function handleChange
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleChange(event) {
if (props?.toeDupContactInfoCall) {
if (props.email !== event) {
props.setFormData({
...props?.formData,
Function IdentityNotVerified
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IdentityNotVerified = () => {
const content = (
<>
<p className="vads-u-font-size--base">
We need to make sure you’re you — and not someone pretending to be you —
Function ui:validations
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(errors, city, formData, _schema, _uiSchema, _index) => {
// This variable represents whether a veteran checked the "I live on a military base outside of the U.S." checkbox on the page
// running this validation. This is stored within `formData` as `view:livesOnMilitaryBase` (`MILITARY_BASE_PATH`), but the path
// thereto differs depending on the page running the validation.
let livesOnMilitaryBase =
Function postTravelOnlyClaim
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
postTravelOnlyClaim: async (startTime, uuid, timeToComplete) => {
const url = '/check_in/v0/travel_claims/';
const headers = { 'Content-Type': 'application/json' };
const travelClaimData = {
travelClaims: {
Function isBDD
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const isBDD = formData => {
const isBddDataFlag = Boolean(formData?.['view:isBddData']);
const servicePeriods = formData?.serviceInformation?.servicePeriods || [];
// separation date entered in the wizard
Function FinancialHardshipViewField
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FinancialHardshipViewField = props => {
const { defaultEditButton, formData } = props;
const { financialHardshipDocuments } = formData;
return (
Function TerminalIllnessViewField
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TerminalIllnessViewField = props => {
const { defaultEditButton, formData } = props;
const { terminalIllnessDocuments } = formData;
return (
Function submitErrorContent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const submitErrorContent = props => {
const submissionIdContent = props.submissionId
? ` and provide this reference number ${props.submissionId}`
: '';
Function prefillContactInformation
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const prefillContactInformation = data => {
const newData = _.omit(['veteran'], data);
const { veteran } = data;
if (veteran) {
Function makePages
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function makePages() {
const pagesList = Object.keys(ADDITIONAL_EXPOSURES)
.filter(itemId => itemId !== 'none' && itemId !== 'notsure')
.map(itemId => {
const pageName = `additional-exposure-${itemId}`;
Function ui:validations
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(errors, city, formData, _schema, _uiSchema, _index) => {
// This variable represents whether a veteran checked the "I live on a military base outside of the U.S." checkbox on the page
// running this validation. This is stored within `formData` as `view:livesOnMilitaryBase` (`MILITARY_BASE_PATH`), but the path
// thereto differs depending on the page running the validation.
let livesOnMilitaryBase =
Function chapters
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.map(chapterName => {
const pages = pagesByChapter[chapterName];
const expandedPages = getActiveExpandedPages(pages, formData);
const chapterFormConfig = getChapterFormConfigAskVa(
modifiedFormConfig,
Function fetchUser
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchUser() {
return async dispatch => {
dispatch({
type: FETCH_USER,
});