Showing 3,730 of 12,800 total issues
Function replaceRefSchemas
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function replaceRefSchemas(schema, definitions, path = '') {
// this can happen if you import a field that doesn’t exist from a schema
if (!schema) {
throw new Error(`Schema is undefined at ${path}`);
}
Function phoneUISchema
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function phoneUISchema(category) {
const schema = {
'ui:options': {
hideLabelText: true,
showFieldLabel: false,
Function render
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { location, currentQuery } = this.props;
if (!location) {
return null;
Function renderFacilityTypeDropdown
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderFacilityTypeDropdown = () => {
const { suppressCCP, suppressPharmacies, suppressPPMS } = props;
const { facilityType, isValid, facilityTypeChanged } = currentQuery;
const locationOptions = suppressPPMS
? nonPPMSfacilityTypeOptions
Function TaskList
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const TaskList = () => {
const { chapterTitles, getChapterPagesFromChapterIndex } = setupPages(
formConfig,
);
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 applicantInsuranceSOBSchema
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function applicantInsuranceSOBSchema(isPrimary) {
const keyname = isPrimary
? 'primaryInsuranceScheduleOfBenefits'
: 'secondaryInsuranceScheduleOfBenefits';
return {
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 ActionLink
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ActionLink = props => {
const { action, appointmentId, app, startTime } = props;
const { t } = useTranslation();
const { getPreCheckinComplete } = useStorage(app);
Function isInsideListLoopReturn
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const isInsideListLoopReturn = (
chapter,
outerField,
uiTitle,
formChapter,
Function isInsideListLoopReturn
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const isInsideListLoopReturn = (
chapter,
outerField,
uiTitle,
formChapter,
Function renderAddressOption
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderAddressOption = (address, id = 'userEntered') => {
const hasConfirmedSuggestions = apiData.length > 0;
const { addressStreet, cityStateZip, addressCountry } = formatAddress(
address,
);
Function ResponseSentPage
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ResponseSentPage = () => {
const alertRef = useRef(null);
useEffect(
() => {
Function CrisisLineConnectButton
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CrisisLineConnectButton = () => {
const [lastFocusableElement, setLastFocusableElement] = useState(null);
const [crisisModalOpened, setCrisisModalOpened] = useState(false);
useEffect(
Function DeleteDraftModal
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DeleteDraftModal = props => {
const { unsavedDraft, draftSequence } = props;
return (
<VaModal
id={`delete-draft-modal${draftSequence ? `-${draftSequence}` : ''}`}
Function schoolTypesCheckboxes
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function schoolTypesCheckboxes(
handleIncludedSchoolTypesChange,
options,
smallScreen,
automatedTest = false,
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,