Showing 3,732 of 12,811 total issues
Function FormApp
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FormApp(props) {
const {
children,
hasSavedForm,
isLoading,
Function WizardContainer
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WizardContainer = props => {
const { setWizardStatus } = props;
useEffect(() => {
focusElement('.va-nav-breadcrumbs-list');
}, []);
Function VeteranInformationViewComponent
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VeteranInformationViewComponent = props => {
const { profile } = props;
const {
gender,
dob,
Function openFacilityPage
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function openFacilityPage() {
return async (dispatch, getState) => {
try {
const initialState = getState();
const newBooking = selectCovid19VaccineNewBooking(initialState);
Function threadsReducer
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const threadsReducer = (state = initialState, action) => {
switch (action.type) {
case Actions.Thread.GET_LIST:
return {
...state,
Function getICSTokens
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getICSTokens(buffer) {
const map = new Map();
let tokens = buffer.split('\r\n');
// Split tokens into key/value pairs using lookbehind since it is possible
Function getGridData
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getGridData(appointment) {
const { isCommunityCare, isVideo } = appointment?.vaos || {};
const isPhone = isVAPhoneAppointment(appointment);
const { serviceType } = appointment?.vaos.apiData || {};
Function getBreadcrumbList
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getBreadcrumbList = () => {
const isPast = location.pathname.includes('/past');
const isPending = location.pathname.includes('/pending');
const BREADCRUMB_BASE = [
Function verifyDependents
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function verifyDependents(state = initialState, action) {
switch (action.type) {
case DEPENDENCY_VERIFICATION_CALL_SUCCESS:
return {
...state,
Function buildMedicationInformationPDF
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const buildMedicationInformationPDF = list => {
const listOfHeaders = ['h2', 'h3'];
const sections = [
...list
.filter(listItem => listOfHeaders.includes(listItem.type))
Function sortFunc
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const sortFunc = (a, b) => {
if (sortField === 'SENT_DATE') {
if (sortOrder === 'DESC') {
return compareDesc(
new Date(a.attributes.sentDate),
Function ClientError
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ClientError(props) {
const { buttonText, formConfig, onBack, onSubmit, testId } = props;
const { Element } = Scroll;
const scrollToError = () => {
scrollTo('errorScrollElement', getScrollOptions());
Function ValidationError
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ValidationError(props) {
const { appType, buttonText, formConfig, onBack, onSubmit, testId } = props;
let ariaDescribedBy = null;
// If no ariaDescribedBy is passed down from form.js,
// a null value will properly not render the aria label.
Function ConfirmationPage
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ConfirmationPage = () => {
resetStoredSubTask();
return (
<ConfirmationDecisionReviews
Function GET /covid_vaccine/v0/facilities/:zip
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
'GET /covid_vaccine/v0/facilities/:zip': (req, res) => {
return res.status(200).json({
data: [
{
id: 'vha_516',
Function render
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { formId, data, submission } = form;
const submitDate = new Date(submission?.timestamp);
Function render
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { submission, formId, data } = form;
const submitDate = new Date(submission?.timestamp);
const { fullName } = data;
Function benefitsEligibilityUpdate
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const benefitsEligibilityUpdate = benefitsEligibilityBox => {
const uiSchema = {
'ui:description': benefitsEligibilityBox,
'view:selectedBenefits': {
'ui:title': 'Select the benefit that is the best match for you.',
Function combineEnrollmentsWithStartMonth
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const combineEnrollmentsWithStartMonth = enrollmentPeriods => {
const isArray = Array.isArray(enrollmentPeriods);
const trackDate = [];
const combineMonths = {};
Function genSearchAreaFromCenter
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const genSearchAreaFromCenter = query => {
const { lat, lng, currentBounds } = query;
return dispatch => {
const types = MAPBOX_QUERY_TYPES;
mbxClient