Showing 4,231 of 14,884 total issues
Function addressValidationSuccessTwoInternational
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addressValidationSuccessTwoInternational() {
return asyncReturn(
{
addresses: [
{
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
chapters,
form,
formConfig,
Function initDDRum
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const initDDRum = () => {
const env = environment.vspEnvironment();
const {
sessionReplaySampleRate = 1,
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 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 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 renderFacilityTypeDropdown
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderFacilityTypeDropdown = () => {
const { suppressPharmacies, suppressPPMS } = props;
const { facilityType, isValid, facilityTypeChanged } = currentQuery;
const locationOptions = suppressPPMS
? nonPPMSfacilityTypeOptions
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 uploadWithInfoComponent
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function uploadWithInfoComponent(fileList, category, resources) {
return {
uiSchema: {
...acceptableFileList(fileList || []),
'view:additionalResources': {
Function searchByCoordinates
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static searchByCoordinates(
address = null,
lat,
long,
name,
Function updateMemDb
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateMemDb = (req, res = null) => {
const key = `${req.method} ${req.url}`;
const body = req.body || {};
if (key === 'PUT /v0/profile/telephones') {
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 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 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 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 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 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;