Showing 4,231 of 14,884 total issues
Function ClaimDetailsContent
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ClaimDetailsContent(props) {
const {
createdOn,
claimStatus,
claimNumber,
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 App
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const App = props => {
const {
children,
formData,
setFormData,
Function eventsIntroDescription
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const eventsIntroDescription = () => {
return (
<>
<p>
We want to know about any traumatic events during your military service.
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 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 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 programLabel
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const programLabel = programKey => {
const program = programs[programKey];
const showLink = program.link && program.link.href;
const link =
Function mapElement
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mapElement = (visible = true) => {
const containerClassNames = classNames({
'vads-u-display--none': !visible,
});
const isMobileDevice = smallScreen || landscape;
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 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 });
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 renderCautionFlags
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderCautionFlags = () => {
if (!schoolClosing && cautionFlags.length === 0) {
return null;
}
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 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 updateUrlParams
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const updateUrlParams = (
history,
tab,
searchQuery,
filters,
Function NoServiceHistoryAlert
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NoServiceHistoryAlert = () => {
return (
<>
<va-alert status="warning" uswds class="vads-u-margin-bottom--4">
<h2 slot="headline">
Function ViewDependentsLists
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ViewDependentsLists(props) {
const onAwardSubhead = (
<>
The following dependents have been added to your VA benefits. Please let
us know if a dependent’s status has changed.