Showing 12,759 of 12,759 total issues
Function ContestableIssuesWidget
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ContestableIssuesWidget = props => {
const {
getContestableIssues,
contestableIssues,
setFormData,
Function processContestableIssues
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const processContestableIssues = contestableIssues => {
const processDate = entry =>
(entry.attributes?.approxDecisionDate || '').replace(REGEXP.DASH, '');
// remove issues with no title & sort by date - see
// https://dsva.slack.com/archives/CSKKUL36K/p1623956682119300
Function transform
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function transform(formConfig, form) {
// https://developer.va.gov/explore/appeals/docs/decision_reviews?version=current
// match supplemental claims schema here
const mainTransform = formData => {
const { benefitType, additionalDocuments } = formData;
Function contestableIssuesReducer
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const contestableIssuesReducer = getEligibleContestableIssues => (
state = initialState,
action,
) => {
switch (action?.type) {
Function DependentListLoopForm
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DependentListLoopForm = props => {
const { children, data, page, onChange, onSubmit } = props;
const { fullName = {} } = data || {};
// build the uiSchema title attribute based on form & page data
Function LastUpdated
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LastUpdated = () => {
const feedbackButtonClicked = () => {
window.KAMPYLE_ONSITE_SDK?.showForm('17');
};
Function DependentListLoopForm
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DependentListLoopForm = props => {
const { children, data, page, onChange, onSubmit } = props;
const { fullName = {} } = data || {};
// build the uiSchema title attribute based on form & page data
Function getEmptyState
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getEmptyState(props) {
const {
onEdit,
hideTitle,
title,
Function ConfirmationPage
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ConfirmationPage = () => {
const { submission, data } = useSelector(state => state.form);
const { userFullName } = useSelector(selectProfile);
const loggedIn = useSelector(isLoggedIn);
const { response } = submission;
Function libraryPagerGen
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function libraryPagerGen() {
const numCardsCount = libraryNumActiveCards();
numCards = libraryNumCards();
pages = Math.ceil(numCardsCount / itemsPerPage);
if (document.getElementById('pager-nums-insert')) {
Function labResults
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const labResults = avs => {
if (avs.labResults?.length > 0) {
const labResultItems = avs.labResults.map((item, idx) => (
<div key={idx}>
{labResultValues(item.values)}
Function CustomPhoneNumberField
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CustomPhoneNumberField(props) {
function handleChange(event) {
if (props?.toeDupContactInfoCall) {
props?.updateGlobalPhoneNumber(event);
if (event?.length > 9) {
Function infoBlockMessage
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const infoBlockMessage = () => {
if (appointment?.kind === 'phone') {
return (
<span data-testid="phone-msg-confirmation">
{t('your-provider-will-call-you-at-your-appointment-time')}
Function updateSchema
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSchema: (formData, schema, uiSchema) => {
const countryUI = uiSchema;
const addressFormData = get(
['view:mailingAddress', 'address'],
formData,
Function captureError
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const captureError = (error, details) => {
if (error instanceof Error) {
Sentry.withScope(scope => {
const { token } = details;
if (token) {
Function updateSchema
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSchema: (formData, schema, uiSchema) => {
const {
authorizerType,
thirdPartyType,
personFullName,
Function transformForSubmit
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function transformForSubmit(formConfig, form) {
let transformedData = JSON.parse(sharedTransformForSubmit(formConfig, form));
const {
first: veteranFirstName,
Function drawFreeTextOption
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawFreeTextOption(option) {
const { highlightedIndex, value, selectionMade } = this.state;
if ((selectionMade && option === value) || option?.length < 1) {
return null;
Function MobileLogoRow
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const MobileLogoRow = () => {
return (
<nav className="vads-u-display--flex vads-u-flex-direction--column vads-u-margin--0 vads-u-padding--0">
<div className="header-logo-row vads-u-background-color--primary-darker vads-u-display--flex vads-u-align-items--center vads-u-justify-content--space-between vads-u-padding-y--1p5 vads-u-padding-left--1p5 vads-u-padding-right--1">
<a
Function isSsnUnique
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const isSsnUnique = formData => {
const {
veteranSsnOrTin,
primarySsnOrTin,
secondaryOneSsnOrTin,