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 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 Missing "key" prop for element in iterator. react(jsx-key) components/sidebar-nav.tsx:43 | components/sidebar-nav.tsx:43 |
| 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 |
| Warnung | Warnung Unused file: components/ui/accordion.tsx knip/unused-file · mittlere Sicherheit components/ui/accordion.tsx | components/ui/accordion.tsx |
| Warnung | Warnung Parameter 'children' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) components/ui/alert-dialog.tsx:29 | components/ui/alert-dialog.tsx:29 |
| Warnung | Warnung Unused file: components/ui/aspect-ratio.tsx knip/unused-file · mittlere Sicherheit components/ui/aspect-ratio.tsx | components/ui/aspect-ratio.tsx |
| Warnung | Warnung Unused file: components/ui/badge.tsx knip/unused-file · mittlere Sicherheit components/ui/badge.tsx | components/ui/badge.tsx |
| Warnung | Warnung Unused file: components/ui/calendar.tsx knip/unused-file · mittlere Sicherheit components/ui/calendar.tsx | components/ui/calendar.tsx |
| Warnung | Warnung 'props' is already declared in the upper scope. eslint(no-shadow) components/ui/calendar.tsx:55 | components/ui/calendar.tsx:55 |
| Warnung | Warnung Parameter 'props' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) components/ui/calendar.tsx:55 | components/ui/calendar.tsx:55 |
| Warnung | Warnung Do not define components during render. react(no-unstable-nested-components) components/ui/calendar.tsx:55 | components/ui/calendar.tsx:55 |
| Warnung | Warnung 'props' is already declared in the upper scope. eslint(no-shadow) components/ui/calendar.tsx:56 | components/ui/calendar.tsx:56 |
| Warnung | Warnung Parameter 'props' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) components/ui/calendar.tsx:56 | components/ui/calendar.tsx:56 |
| Warnung | Warnung Do not define components during render. react(no-unstable-nested-components) components/ui/calendar.tsx:56 | components/ui/calendar.tsx:56 |
| Warnung | Warnung Unused file: components/ui/checkbox.tsx knip/unused-file · mittlere Sicherheit components/ui/checkbox.tsx | components/ui/checkbox.tsx |
| Warnung | Warnung Unused file: components/ui/collapsible.tsx knip/unused-file · mittlere Sicherheit components/ui/collapsible.tsx | components/ui/collapsible.tsx |
| Warnung | Warnung Unused file: components/ui/command.tsx knip/unused-file · mittlere Sicherheit components/ui/command.tsx | components/ui/command.tsx |
| Warnung | Warnung Unused file: components/ui/context-menu.tsx knip/unused-file · mittlere Sicherheit components/ui/context-menu.tsx | components/ui/context-menu.tsx |
| Warnung | Warnung Unused file: components/ui/dialog.tsx knip/unused-file · mittlere Sicherheit components/ui/dialog.tsx | components/ui/dialog.tsx |
| Warnung | Warnung Unused file: components/ui/hover-card.tsx knip/unused-file · mittlere Sicherheit components/ui/hover-card.tsx | components/ui/hover-card.tsx |
| Warnung | Warnung Maintainability: needs improvement (FTA score 60.9, cyclomatic 4) fta/maintainability components/ui/menubar.tsx | components/ui/menubar.tsx |
| Warnung | Warnung Unused file: components/ui/menubar.tsx knip/unused-file · mittlere Sicherheit components/ui/menubar.tsx | components/ui/menubar.tsx |