Prüfe jeden Eintrag, bevor du ihn entfernst
Knip findet sie ausgehend von den Einstiegspunkten, die Agnes für das Repository ermittelt. Code, der über seinen Namen, die Konfiguration eines Tools, Tests oder von außerhalb des Repositorys geladen wird, wirkt ebenfalls ungenutzt, und ihn zu entfernen macht die App kaputt.
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
| Schweregrad | Befund | Ort |
|---|---|---|
| Warnung | Warnung Imported module should be assigned import(no-unassigned-import) app/(docs)/docs/[[...slug]]/page.tsx:10 | app/(docs)/docs/[[...slug]]/page.tsx:10 |
| Warnung | Warnung 'doc' is already declared in the upper scope. eslint(no-shadow) app/(docs)/docs/[[...slug]]/page.tsx:24 | app/(docs)/docs/[[...slug]]/page.tsx:24 |
| Warnung | Warnung Imported module should be assigned import(no-unassigned-import) app/(docs)/guides/[...slug]/page.tsx:11 | app/(docs)/guides/[...slug]/page.tsx:11 |
| Warnung | Warnung 'guide' is already declared in the upper scope. eslint(no-shadow) app/(docs)/guides/[...slug]/page.tsx:26 | app/(docs)/guides/[...slug]/page.tsx:26 |
| Warnung | Warnung Use `Array#toSorted()` instead of `Array#sort()`. unicorn(no-array-sort) app/(docs)/guides/page.tsx:17 | app/(docs)/guides/page.tsx:17 |
| Warnung | Warnung Unexpected dangling '_' in '`_id`'. eslint(no-underscore-dangle) app/(docs)/guides/page.tsx:31 | app/(docs)/guides/page.tsx:31 |
| Warnung | Warnung Imported module should be assigned import(no-unassigned-import) app/(marketing)/[...slug]/page.tsx:6 | app/(marketing)/[...slug]/page.tsx:6 |
| Warnung | Warnung 'page' is already declared in the upper scope. eslint(no-shadow) app/(marketing)/[...slug]/page.tsx:21 | app/(marketing)/[...slug]/page.tsx:21 |
| Warnung | Warnung Imported module should be assigned import(no-unassigned-import) app/(marketing)/blog/[...slug]/page.tsx:6 | app/(marketing)/blog/[...slug]/page.tsx:6 |
| Warnung | Warnung '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 |
| Warnung | Warnung Unexpected dangling '_' in '`_id`'. eslint(no-underscore-dangle) app/(marketing)/blog/[...slug]/page.tsx:126 | app/(marketing)/blog/[...slug]/page.tsx:126 |
| Warnung | Warnung Use `Array#toSorted()` instead of `Array#sort()`. unicorn(no-array-sort) app/(marketing)/blog/page.tsx:15 | app/(marketing)/blog/page.tsx:15 |
| Warnung | Warnung Unexpected dangling '_' in '`_id`'. eslint(no-underscore-dangle) app/(marketing)/blog/page.tsx:36 | app/(marketing)/blog/page.tsx:36 |
| Warnung | Warnung Maintainability: needs improvement (FTA score 60.2, cyclomatic 4) fta/maintainability app/(marketing)/page.tsx | app/(marketing)/page.tsx |
| Warnung | Warnung Unused file: app/api/auth/[...nextauth]/_route.ts knip/unused-file · mittlere Sicherheit app/api/auth/[...nextauth]/_route.ts | app/api/auth/[...nextauth]/_route.ts |
| Warnung | Warnung Imported module should be assigned import(no-unassigned-import) app/layout.tsx:4 | app/layout.tsx:4 |
| Warnung | Warnung Imported module should be assigned import(no-unassigned-import) components/editor.tsx:13 | components/editor.tsx:13 |
| Warnung | Warnung Usage of Array index in keys is not allowed react(no-array-index-key) components/main-nav.tsx:34 | components/main-nav.tsx:34 |
| Warnung | Warnung Usage of Array index in keys is not allowed react(no-array-index-key) components/mobile-nav.tsx:32 | components/mobile-nav.tsx:32 |
| Warnung | Warnung Usage of Array index in keys is not allowed react(no-array-index-key) components/nav.tsx:27 | components/nav.tsx:27 |
| Warnung | Warnung Function `onSubmit` does not capture any variables from its parent scope unicorn(consistent-function-scoping) components/search.tsx:11 | components/search.tsx:11 |
| Warnung | Warnung Usage of Array index in keys is not allowed react(no-array-index-key) components/sidebar-nav.tsx:19 | components/sidebar-nav.tsx:19 |
| Warnung | Warnung Usage of Array index in keys is not allowed react(no-array-index-key) components/sidebar-nav.tsx:46 | components/sidebar-nav.tsx:46 |
| Warnung | Warnung 'item' is already declared in the upper scope. eslint(no-shadow) components/toc.tsx:18 | components/toc.tsx:18 |
| Warnung | Warnung Usage of Array index in keys is not allowed react(no-array-index-key) components/toc.tsx:94 | components/toc.tsx:94 |