Showing 12,848 of 12,848 total issues
Function customCOEsubmit
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const customCOEsubmit = (formConfig, form) => {
const formCopy = cloneDeep(form);
const { periodsOfService = [], relevantPriorLoans = [] } = formCopy.data;
Function customCOEsubmit
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const customCOEsubmit = (formConfig, form) => {
const formCopy = cloneDeep(form);
const { periodsOfService = [], relevantPriorLoans = [] } = formCopy.data;
Function renderVaMedication
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderVaMedication = medication => {
const facilityPhone = normalizePhoneNumber(medication.facilityPhone);
const phoneNotClickable = !numberIsClickable(facilityPhone);
return (
Function useRepresentativeStatus
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function useRepresentativeStatus() {
const [representative, setRepresentative] = useState(null);
const [isLoading, setIsLoading] = useState(true);
const [error, setError] = useState(null);
Function useDemographicsFlags
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useDemographicsFlags = () => {
const selectCurrentContext = useMemo(makeSelectCurrentContext, []);
const context = useSelector(selectCurrentContext);
const { token } = context;
Function constructor
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
// Throw an error if there’s no viewComponent (should be React component)
if (
!isReactComponent(get('ui:options.viewComponent', this.props.uiSchema))
Function reorderHousingIllnessRemoveFdc
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function reorderHousingIllnessRemoveFdc(savedData) {
const { returnUrl } = savedData.metadata;
if (
returnUrl === '/veteran-information' ||
Function confirmationPageAlertParagraph
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const confirmationPageAlertParagraph = formData => {
if (confirmationPageFormBypassed(formData)) {
if (
hasActiveCompensationITF({ formData }) &&
hasActivePensionITF({ formData })
Function ShowWorkDates
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ShowWorkDates = () => {
return (
<div className="vads-u-margin-top--3">
<VaDate
monthYearOnly
Function checkIncomeGmt
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const checkIncomeGmt = async (data, setFormData) => {
const { gmtData } = data;
try {
const response = await getCalculatedMonthlyIncomeApi(data);
Function ShowWorkDates
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ShowWorkDates = () => {
return (
<div className="vads-u-margin-top--3">
<VaDate
monthYearOnly
Function UtilityBillInputList
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UtilityBillInputList = props => {
const { errorSchema, formContext } = props;
const errorList = errorSchema?.utilityRecords?.__errors;
const { submitted } = formContext;
Function submit5103
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function submit5103(id, trackedItemId, cstClaimPhasesEnabled = false) {
return dispatch => {
dispatch({
type: SUBMIT_DECISION_REQUEST,
});
Function renderWorking
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderWorking = () => {
if (!displayedInputs.working) return null;
return (
<Dropdown
label={learnMoreLabel({
Function handleVetTechPreferredProviderChange
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleVetTechPreferredProviderChange = (e, currentName) => {
const { checked } = e.target;
const name = currentName || e.target.name;
if (checked && name === 'vettec') {
dispatchFilterChange({
Function beneficiaryZIPCodeChanged
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function beneficiaryZIPCodeChanged(beneficiaryZIP) {
// pass input through to reducers if not five digits
if (!beneficiaryZIPRegExTester.exec(beneficiaryZIP)) {
return {
type: BENEFICIARY_ZIP_CODE_CHANGED,
Function renderCautionFlags
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderCautionFlags = () => {
if (!schoolClosing && cautionFlags.length === 0) {
return null;
}
Function updateUrlParams
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const updateUrlParams = (
history,
tab,
searchQuery,
filters,
Function setupMap
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const setupMap = () => {
if (map.current) return; // initialize map only once
const container = document.getElementById('mapbox-gl-container');
if (!container) return;
Function handleInputChange
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleInputChange = (event, target, name) => {
const { value } = event ? event.target : target.detail;
const field = event ? event.target.name : name;
calculatorInputChange({ field, value });