Showing 4,231 of 14,884 total issues
Function updateValidationKeyAndSave
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
) => async dispatch => {
dispatch({
type: ADDRESS_VALIDATION_UPDATE,
fieldName,
});
Function Zero
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ComboAlert.Zero = () => {
return (
<va-alert
class="row vads-u-margin-bottom--5"
status="info"
Function convertNextValueToCleanData
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const convertNextValueToCleanData = value => {
const {
id,
addressLine1,
addressLine2,
Function phoneUISchema
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function phoneUISchema(category) {
return {
'ui:options': {
hideLabelText: true,
showFieldLabel: false,
Function IntroductionPage
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const IntroductionPage = props => {
useEffect(() => {
focusElement('h1');
scrollTo('topContentElement');
});
Function render
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { facility, currentQuery, showHoursSpecialInstructions } = this.props;
if (!facility) {
return null;
Function getContestableIssues
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getContestableIssues = props => {
const benefitType = props?.benefitType || DEFAULT_BENEFIT_TYPE;
return dispatch => {
dispatch({ type: FETCH_CONTESTABLE_ISSUES_INIT });
Function getContestableIssues
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getContestableIssues = props => {
const benefitType = props?.benefitType || DEFAULT_BENEFIT_TYPE;
return dispatch => {
dispatch({ type: FETCH_CONTESTABLE_ISSUES_INIT });
Function hasDuplicateLocation
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
!!list.find(location => {
const {
locationAndName,
evidenceDates,
treatmentDate,
Function transform
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function transform(formConfig, form) {
// https://dev-developer.va.gov/explore/appeals/docs/decision_reviews?version=current
const mainTransform = formData => {
const informalConference = formData.informalConference !== 'no';
const attributes = {
Function renderReviewAnswers
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderReviewAnswers = () => {
return Object.keys(SHORT_NAME_MAP).map(shortName => {
if (formResponses[shortName] === null) {
return null;
}
Function render
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const form = this.props.form;
const { submission, formId } = form;
const { benefit } = form.data;
Function PreSubmitNotice
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PreSubmitNotice = props => {
const { onSectionComplete, preSubmitInfo, showError, submission } = props;
const { field, required } = preSubmitInfo;
const [accepted, setAccepted] = useState(false);
Function applicantInformationField
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const applicantInformationField = (automatedTest = false) => {
if (isProductionOfTestProdEnv(automatedTest)) {
return {
...createApplicantInformationPage(fullSchema1995, {
isVeteran: true,
Function applicantInsuranceCommentsSchema
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function applicantInsuranceCommentsSchema(isPrimary) {
const keyname = isPrimary
? 'primaryAdditionalComments'
: 'secondaryAdditionalComments';
return {
Function render
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { submission, formId } = form;
const benefits = form.data['view:selectedBenefits'];
Function applicantServicePage
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function applicantServicePage(currentSchema) {
return {
title: 'Applicant service',
path: 'applicant/service',
initialData: {},
Function getPeriodsToVerify
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getPeriodsToVerify = pendingEnrollments => {
return pendingEnrollments
.map(enrollmentToBeVerified => {
const {
actBegin,
Function addressLabel
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const addressLabel = address => {
// Destructure address object for easier access
const {
addressLine1,
addressLine2,
Function openShareLink
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function openShareLink() {
const shareLinks = Array.from(document.querySelectorAll('.va-js-share-link'));
if (shareLinks.length > 0) {
const hasNavigatorShare = navigator.share !== undefined;