Controleer elk item voordat je het verwijdert
Knip vindt deze vanaf de startpunten die Agnes voor de repository bepaalt. Code die op naam, door de config van een tool, door tests of van buiten de repository wordt geladen, lijkt ook ongebruikt, en die verwijderen breekt de app.
git rm -- \ 'app/api/auth/[...nextauth]/_route.ts' \ components/ui/accordion.tsx \ components/ui/aspect-ratio.tsx \ components/ui/badge.tsx \ components/ui/calendar.tsx \ components/ui/checkbox.tsx \ components/ui/collapsible.tsx \ components/ui/command.tsx \ components/ui/context-menu.tsx \ components/ui/dialog.tsx \ components/ui/hover-card.tsx \ components/ui/menubar.tsx \ components/ui/navigation-menu.tsx \ components/ui/popover.tsx \ components/ui/progress.tsx \ components/ui/radio-group.tsx \ components/ui/scroll-area.tsx \ components/ui/select.tsx \ components/ui/separator.tsx \ components/ui/sheet.tsx \ components/ui/slider.tsx \ components/ui/switch.tsx \ components/ui/tabs.tsx \ components/ui/textarea.tsx \ components/ui/toggle.tsx \ components/ui/tooltip.tsx
components/icons.tsx: type Icon components/pager.tsx: getPagerForDoc, flatten components/sidebar-nav.tsx: DocsSidebarNavItems components/ui/alert-dialog.tsx: AlertDialogTrigger components/ui/dropdown-menu.tsx: DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup components/ui/input.tsx: type InputProps components/ui/toast.tsx: ToastAction components/ui/use-toast.ts: reducer
| Ernst | Bevinding | Locatie |
|---|---|---|
| Waarschuwing | Waarschuwing Unexpected dangling '_' in '`_id`'. eslint(no-underscore-dangle) app/(docs)/guides/page.tsx:31 | app/(docs)/guides/page.tsx:31 |
| Waarschuwing | Waarschuwing Imported module should be assigned import(no-unassigned-import) app/(marketing)/[...slug]/page.tsx:6 | app/(marketing)/[...slug]/page.tsx:6 |
| Waarschuwing | Waarschuwing 'page' is already declared in the upper scope. eslint(no-shadow) app/(marketing)/[...slug]/page.tsx:21 | app/(marketing)/[...slug]/page.tsx:21 |
| Waarschuwing | Waarschuwing Expected expression to be used eslint(no-unused-expressions) app/(marketing)/[...slug]/page.tsx:24 | app/(marketing)/[...slug]/page.tsx:24 |
| Waarschuwing | Waarschuwing Imported module should be assigned import(no-unassigned-import) app/(marketing)/blog/[...slug]/page.tsx:6 | app/(marketing)/blog/[...slug]/page.tsx:6 |
| Waarschuwing | Waarschuwing 'post' is already declared in the upper scope. eslint(no-shadow) app/(marketing)/blog/[...slug]/page.tsx:24 | app/(marketing)/blog/[...slug]/page.tsx:24 |
| Waarschuwing | Waarschuwing Expected expression to be used eslint(no-unused-expressions) app/(marketing)/blog/[...slug]/page.tsx:27 | app/(marketing)/blog/[...slug]/page.tsx:27 |
| Waarschuwing | Waarschuwing Unexpected dangling '_' in '`_id`'. eslint(no-underscore-dangle) app/(marketing)/blog/[...slug]/page.tsx:126 | app/(marketing)/blog/[...slug]/page.tsx:126 |
| Waarschuwing | Waarschuwing Use `Array#toSorted()` instead of `Array#sort()`. unicorn(no-array-sort) app/(marketing)/blog/page.tsx:15 | app/(marketing)/blog/page.tsx:15 |
| Waarschuwing | Waarschuwing Unexpected dangling '_' in '`_id`'. eslint(no-underscore-dangle) app/(marketing)/blog/page.tsx:36 | app/(marketing)/blog/page.tsx:36 |
| Waarschuwing | Waarschuwing Maintainability: needs improvement (FTA score 60.2, cyclomatic 4) fta/maintainability app/(marketing)/page.tsx | app/(marketing)/page.tsx |
| Waarschuwing | Waarschuwing Catch parameter 'error' is caught but never used. eslint(no-unused-vars) app/(marketing)/page.tsx:30 | app/(marketing)/page.tsx:30 |
| Waarschuwing | Waarschuwing Unused file: app/api/auth/[...nextauth]/_route.ts knip/unused-file · gemiddelde zekerheid app/api/auth/[...nextauth]/_route.ts | app/api/auth/[...nextauth]/_route.ts |
| Waarschuwing | Waarschuwing Catch parameter 'error' is caught but never used. eslint(no-unused-vars) app/api/og/route.tsx:143 | app/api/og/route.tsx:143 |
| Waarschuwing | Waarschuwing Catch parameter 'error' is caught but never used. eslint(no-unused-vars) app/api/posts/route.ts:36 | app/api/posts/route.ts:36 |
| Waarschuwing | Waarschuwing Parameter 'req' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) app/api/users/stripe/route.ts:12 | app/api/users/stripe/route.ts:12 |
| Waarschuwing | Waarschuwing Imported module should be assigned import(no-unassigned-import) app/layout.tsx:4 | app/layout.tsx:4 |
| Waarschuwing | Waarschuwing Identifier 'absoluteUrl' is imported but never used. eslint(no-unused-vars) app/layout.tsx:6 | app/layout.tsx:6 |
| Waarschuwing | Waarschuwing Imported module should be assigned import(no-unassigned-import) components/editor.tsx:13 | components/editor.tsx:13 |
| Waarschuwing | Waarschuwing Calling setState synchronously within an effect can trigger cascading renders react(set-state-in-effect) components/editor.tsx:71 | components/editor.tsx:71 |
| Waarschuwing | Waarschuwing Cannot access refs during render react(refs) components/editor.tsx:124 | components/editor.tsx:124 |
| Waarschuwing | Waarschuwing Usage of Array index in keys is not allowed react(no-array-index-key) components/main-nav.tsx:34 | components/main-nav.tsx:34 |
| Waarschuwing | Waarschuwing Cannot create components during render react(static-components) components/mdx-components.tsx:164 | components/mdx-components.tsx:164 |
| Waarschuwing | Waarschuwing Usage of Array index in keys is not allowed react(no-array-index-key) components/mobile-nav.tsx:32 | components/mobile-nav.tsx:32 |
| Waarschuwing | Waarschuwing Usage of Array index in keys is not allowed react(no-array-index-key) components/nav.tsx:27 | components/nav.tsx:27 |