Showing 12,848 of 12,848 total issues
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 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 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 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 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 StatementOfTruth
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function StatementOfTruth(signatureProps) {
const pp = (
<span>
I have read and accept the{' '}
<a target="_blank" href="/privacy-policy/">
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 getButton
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getButton(form) {
let url = '';
switch (form) {
case '0994':
url = `/education/about-gi-bill-benefits/how-to-use-benefits/vettec-high-tech-program/apply-for-vettec-form-22-0994`;
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 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 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 applicantInsuranceCommentsSchema
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function applicantInsuranceCommentsSchema(isPrimary) {
const keyname = isPrimary
? 'primaryAdditionalComments'
: 'secondaryAdditionalComments';
return {
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;
Function buildOperatingStatusProps
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const buildOperatingStatusProps = attrs => {
const { opStatus, opStatusExtra } = attrs;
let statusLabel;
let iconType;
let statusType;
Function appointmentDetails
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const appointmentDetails = testId => {
return (
<div data-testid={testId}>
<div
className="vads-u-margin-top--1p5 vads-u-margin-bottom--1"
Function makeUiSchema
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeUiSchema(itemId) {
return {
'ui:title': ({ formData }) =>
detailsPageBegin(
additionalExposuresPageTitle,
Function addRequiredDescriptionsToDisabilitiesBDD
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addRequiredDescriptionsToDisabilitiesBDD = formData => {
if (!isBDDForm || !formData.newDisabilities) {
return formData;
}