Showing 3,732 of 12,811 total issues
Function fileInputUI
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fileInputUI = stringOrOptions => {
if (typeof stringOrOptions === 'string') {
return {
'ui:title': stringOrOptions,
'ui:webComponentField': VaFileInputField,
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<Modal
hideCloseButton
id="session-timeout-modal"
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { submission, data } = this.props.form;
const { response } = submission;
const name = data.veteranFullName;
Function addressValidationSuccessTwoInternational
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addressValidationSuccessTwoInternational() {
return asyncReturn(
{
addresses: [
{
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 fetchDebtLettersVBMS
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchDebtLettersVBMS = () => async dispatch => {
dispatch(fetchDebtLettersInitiated());
try {
const options = {
method: 'GET',
Function IntroText
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const IntroText = () => {
const restartWizard = () => {
recordEvent({ event: 'howToWizard-start-over' });
};
return (
Function IntroductionPage
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const IntroductionPage = props => {
useEffect(() => {
focusElement('h1');
scrollTo('topContentElement');
});
Function getEvidence
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getEvidence = formData => {
const evidenceSubmission = {
evidenceType: [],
};
// Add VA evidence data
Function getEvidence
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getEvidence = formData => {
const evidenceSubmission = {
evidenceType: [],
};
// Add VA evidence data
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { submission, data } = this.props.form;
const { response } = submission;
const name = data.veteranFullName;
Function applicantMedigapSchema
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function applicantMedigapSchema(isPrimary) {
const keyname = isPrimary ? 'primaryMedigapPlan' : 'secondaryMedigapPlan';
return {
uiSchema: {
...titleUI(
Function searchByCoordinates
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static searchByCoordinates(
address = null,
lat,
long,
name,
Function customCOEsubmit
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const customCOEsubmit = (formConfig, form) => {
const formCopy = cloneDeep(form);
const { periodsOfService = [], relevantPriorLoans = [] } = formCopy.data;
Function MailingAddressInfoPage
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const MailingAddressInfoPage = () => {
const mailingAddress = useSelector(selectVAPMailingAddress);
const showSuccessAlert = window.sessionStorage.getItem(
'onReviewPageContactInfoEdit',
Function customCOEsubmit
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const customCOEsubmit = (formConfig, form) => {
const formCopy = cloneDeep(form);
const { periodsOfService = [], relevantPriorLoans = [] } = formCopy.data;
Function MailingAddressInfoPageTaskGreen
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const MailingAddressInfoPageTaskGreen = () => {
const mailingAddress = useSelector(selectVAPMailingAddress);
const showSuccessAlert = window.sessionStorage.getItem(
'onReviewPageContactInfoEdit',
Function renderVaMedication
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderVaMedication = medication => {
const facilityPhone = normalizePhoneNumber(medication.facilityPhone);
const phoneNotClickable = !numberIsClickable(facilityPhone);
return (
Function useRepresentativeStatus
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function useRepresentativeStatus() {
const [representative, setRepresentative] = useState(null);
const [isLoading, setIsLoading] = useState(true);
const [error, setError] = useState(null);
Function useDemographicsFlags
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useDemographicsFlags = () => {
const selectCurrentContext = useMemo(makeSelectCurrentContext, []);
const context = useSelector(selectCurrentContext);
const { token } = context;