Showing 4,231 of 14,884 total issues
Function employmentHistoryPage
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function employmentHistoryPage(
schema,
usePostMilitaryJob = true,
) {
let nonMilitaryJobs = schema.definitions.nonMilitaryJobs;
Function ErrorsReducer
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ErrorsReducer = (state = INITIAL_STATE, action) => {
switch (action.type) {
case CLEAR_ERROR: {
const { errorType } = action.payload;
Function MoreInformation
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MoreInformation = props => {
const { avs } = props;
const { clinicalServices, clinicsVisited, moreHelpAndInformation } = avs;
const renderClinicalService = service => {
Function phoneUISchema
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function phoneUISchema(category) {
const schema = {
'ui:options': {
hideLabelText: true,
showFieldLabel: false,
Function AppointmentBlock
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AppointmentBlock = props => {
const { appointments, page, router } = props;
const selectApp = useMemo(makeSelectApp, []);
const { app } = useSelector(selectApp);
const { t } = useTranslation();
Function isInsideListLoopReturn
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const isInsideListLoopReturn = (
chapter,
outerField,
uiTitle,
formChapter,
Function ResponseSentPage
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ResponseSentPage = () => {
const alertRef = useRef(null);
useEffect(
() => {
Function postFormData
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const postFormData = (url, data) => {
setIsDisabled(true);
const options = {
method: 'POST',
body: JSON.stringify(data),
Function PreferredDatesSection
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function PreferredDatesSection(props) {
const history = useHistory();
const { home, ccRequestDateTime, requestDateTime } = useSelector(
getNewAppointmentFlow,
);
Function useGetReferralById
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useGetReferralById = id => {
const [referralNotFound, setReferralNotFound] = useState(false);
const [currentReferral, setCurrentReferral] = useState(null);
const dispatch = useDispatch();
const { isInCCPilot } = useIsInCCPilot();
Function generateFamilyHistoryContent
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const generateFamilyHistoryContent = record => {
return {
title: record.relationship,
details: [
{
Function emailForm
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function emailForm(state = initialState, action) {
switch (action.type) {
case VIC_SET_EMAIL:
return {
...state,
Function ConditionListItem
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ConditionListItem = props => {
const { record } = props;
return (
<va-card
Function generateTreatmentFacilitiesContent
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const generateTreatmentFacilitiesContent = record => {
return {
title: record.facilityName,
details: [
{
Function createBreadcrumbs
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const createBreadcrumbs = (location, prescription, currentPage) => {
const { pathname } = location;
const defaultBreadcrumbs = [
{
href: medicationsUrls.VA_HOME,
Function generateFeatureToggles
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generateFeatureToggles = (toggles = {}) => {
const {
mhvLandingPagePersonalization = true,
mhvMedicationsToVaGovRelease = true,
mhvMedicationsDisplayRefillContent = true,
Function addFocusBehaviorToCrisisLineModal
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function addFocusBehaviorToCrisisLineModal() {
const overlay = document.getElementById('modal-crisisline');
const modal = document.querySelector('.va-crisis-panel.va-modal-inner');
const tabbableElements = getTabbableElements(modal);
let openControl;
Function startSitewideComponents
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function startSitewideComponents(commonStore) {
// New navigation menu
if (document.querySelector('#vetnav')) {
require('./legacy/mega-menu');
}
Function HealthcareModalContent
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function HealthcareModalContent() {
return (
<>
<p>
<strong>Respondent Burden:</strong> This information is collected in
Function titleUI
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const titleUI = (titleOption, descriptionOption) => {
const {
title,
description,
headerLevel,