Showing 3,736 of 12,815 total issues
Function transform
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function transform(formConfig, form) {
const newSchoolTransform = formData => {
let clonedData = _.cloneDeep(formData);
delete clonedData.newSchoolName;
Function listItems
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const listItems = providers.map((item, index) => {
const { insuranceName, insurancePolicyHolderName } = item;
const srLabel = getInsuranceSrLabel(item);
const modalDescription = replaceStrValues(
content['insurance-modal-remove-description'],
Function UploadFileToVa
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UploadFileToVa = () => {
return (
<div>
<MainContentSubDiv id="upload-files-to-va" header="Upload files to VA">
<LiSpanAndVaLinkAndPTag
Function personalInfo
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const personalInfo = (state = initialState, action) => {
switch (action.type) {
case FETCH_PERSONAL_INFO:
return {
...state,
Function HouseholdFinancialOnboarding
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const HouseholdFinancialOnboarding = props => {
const {
goBack,
goForward,
contentBeforeButtons,
Function OMBInfo
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const OMBInfo = () => {
const expDate = '07/31/2027';
const ombNum = '2900-0091';
const resBurden = '35';
return (
Function useSendDemographicsFlags
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useSendDemographicsFlags = () => {
const selectApp = useMemo(makeSelectApp, []);
const { app } = useSelector(selectApp);
const [isLoading, setIsLoading] = useState(false);
const [isComplete, setIsComplete] = useState(false);
Function NextOfKin
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NextOfKin = props => {
const { router } = props;
const { t } = useTranslation();
const selectVeteranData = useMemo(makeSelectVeteranData, []);
Function updateFormData
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateFormData = e => {
e.preventDefault();
const errorList = selectedDeductions
.filter(
Function updateFormData
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateFormData = e => {
e.preventDefault();
const errorList = selectedDeductions
.filter(
Function processUl
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const processUl = ul => {
const nestedUls = ul.querySelectorAll('ul');
// This section is to address nested <ul> tags
nestedUls.forEach(nestedUl => {
File index.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { stateList } from './stateList';
const APP_NAMES = Object.freeze({
CHECK_IN: 'dayOf',
PRE_CHECK_IN: 'preCheckIn',
File contactInformation.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
// import _ from 'platform/utilities/data';
import merge from 'lodash/merge';
import omit from 'platform/utilities/data/omit';
import fullSchema from 'vets-json-schema/dist/21-526EZ-ALLCLAIMS-schema.json';
File index.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const maximalSetOfPreferences = {
data: {
id: '',
type: 'hashes',
attributes: {
File search.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import camelCaseKeysRecursive from 'camelcase-keys-recursive';
import {
SEARCH_STARTED,
SEARCH_FAILED,
File index.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const createDebtsSuccess = () => {
return {
hasDependentDebts: false,
debts: [
{
File config.js
has 255 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import environment from 'platform/utilities/environment';
import compact from 'lodash/compact';
import {
LocationType,
FacilityType,
Function submitTransformer
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function submitTransformer(formConfig, form) {
const { data: formData, loadedData } = form;
const expandedPages = expandArrayPages(
createFormPageList(formConfig),
formData,
Function updateSchema
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSchema: (formData, addressSchema, addressUiSchema, index, path) => {
let currentSchema = addressSchema;
const modifiedData = { ...formData };
Function submitTransformer
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function submitTransformer(formConfig, form) {
const { data: formData, loadedData } = form;
const expandedPages = expandArrayPages(
createFormPageList(formConfig),
formData,