coronasafe/care_fe

View on GitHub

Showing 1,644 of 1,645 total issues

Function LinkUserSheet has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

export default function LinkUserSheet({
organizationId,
open,
setOpen,
preSelectedUsername,
Severity: Minor
Found in src/pages/Organization/components/LinkUserSheet.tsx - About 25 mins to fix

Function RolesIndex has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

export function RolesIndex() {
const { t } = useTranslation();
const { qParams, Pagination, resultsPerPage } = useFilters({
limit: 15,
disableCache: true,
Severity: Minor
Found in src/pages/Admin/Role/RolesIndex.tsx - About 25 mins to fix

Function AvailabilityEditor has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

const AvailabilityEditor = ({
availability,
scheduleId,
facilityId,
userId,
Severity: Minor
Found in src/pages/Scheduling/components/EditScheduleTemplateSheet.tsx - About 25 mins to fix

Function LinkFacilityUserSheet has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

export default function LinkFacilityUserSheet({
facilityId,
organizationId,
open,
setOpen,
Severity
Category
Status
Source
Language