Showing 12,717 of 12,717 total issues
Function CustomEmailField
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CustomEmailField(props) {
function handleChange(event) {
if (props?.toeDupContactInfoCall) {
if (props.email !== event) {
props.setFormData({
Function ClaimDetailsContent
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ClaimDetailsContent(props) {
const {
createdOn,
claimStatus,
claimNumber,
Function burialUploadUI
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const burialUploadUI = content => {
const findAndFocusLastSelect = () => {
const lastSelect = [...document.querySelectorAll('select')].slice(-1);
if (lastSelect.length) {
focusElement(lastSelect[0]);
Function createUpcomingAppointments
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createUpcomingAppointments = (token, number = 4) => {
let appointments;
if (token === noUpcomingAppointments) {
appointments = [];
} else {
Function MedicalConditionDescription
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function MedicalConditionDescription() {
return (
<div>
<p>
We need to know about any medical conditions that prevent you from
Function makeUiSchema
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeUiSchema(locationId) {
return {
'ui:title': ({ formData }) =>
detailsPageBegin(
herbicidePageTitle,
Function makeUiSchema
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeUiSchema(locationId) {
return {
'ui:title': ({ formData }) =>
detailsPageBegin(
gulfWar1990PageTitle,
Function MUST_MATCH_ALERT
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const MUST_MATCH_ALERT = (variant, onCloseEvent, formData) => {
const isLoa3 = formData?.loa === 3;
return (
<VaAlert
close-btn-aria-label="Close notification"
Function homelessOrAtRisk
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
homelessOrAtRisk: formData => {
// Much of the logic in here to get when a field is required is duplicated from the homelessness page
const isHomeless =
formData.homelessOrAtRisk === HOMELESSNESS_TYPES.homeless;
const isAtRisk = formData.homelessOrAtRisk === HOMELESSNESS_TYPES.atRisk;
Function removeDisability
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const removeDisability = (deletedElement, formData) => {
const removeFromTreatedDisabilityNames = (disability, data) => {
const path = 'vaTreatmentFacilities';
const facilities = get(path, data);
if (!facilities) return data;
Function makeUiSchema
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeUiSchema(locationId) {
return {
'ui:title': ({ formData }) =>
detailsPageBegin(
gulfWar2001PageTitle,
Function buildChapterSortedObject
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const buildChapterSortedObject = dataPrefix => {
// check to make sure there is a keyName
if (dataPrefix === null) return {};
// matches prefix to fullSchema chapter object labels/keys
Function handleSearch
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSearch = async () => {
if (!query.trim()) {
setSearchInputError(content['validation-facilities--search-required']);
return;
}
Function GetFormHelp
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const GetFormHelp = () => {
return (
<>
<p>
If you have trouble using this online form, call our MyVA411 main
Function updateFormData
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateFormData = e => {
setSubmitted(true);
e.preventDefault();
if (unpaidBalanceError || minMonthlyPaymentError || amountOverdueError) {
Function updateFormData
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateFormData = e => {
setSubmitted(true);
e.preventDefault();
const loanBeganContainsGoodValue = validateLoanBegan(
Function EditPreferences
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const EditPreferences = () => {
const [editListModal, setEditListModal] = useState(false);
const editPreferencesButtonRef = useRef();
const handleModalClose = useCallback(() => {
focusElement(editPreferencesButtonRef.current);
Function ClaimantInformationComponent
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ClaimantInformationComponent() {
const {
gender,
dob,
userFullName: { first, last },
Function handleDeleteDraftConfirm
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleDeleteDraftConfirm = () => {
if (savedDraft) {
setNavigationError(null);
setIsModalVisible(false);
dispatch(deleteDraft(draftId)).then(() => {
Function FoldersList
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FoldersList = props => {
const { folders, showUnread } = props;
return (
<div className="vads-u-margin-top--2">