test(gates): the complexity ratchet names a function by what it is bound to
ESLint leaves an arrow bound to a const or a property unnamed, so three ratchet keys were (anonymous) and ranked by position again. A tiny rule reports each unnamed function's binding (const, property, assignment, else <callee> callback) at the head complexity reports, and the keys line up by location.
This commit is contained in:
@@ -61,11 +61,11 @@ const COMPLEX: Record<string, number> = {
|
||||
"components/PlexCollectionView.tsx::PlexCollectionView": 41,
|
||||
"components/PlexDiscover.tsx::PlexDiscover": 21,
|
||||
"components/PlexInfo.tsx::PlexInfo": 65,
|
||||
"components/PlexPlayer.tsx::(anonymous)": 22,
|
||||
"components/PlexPlayer.tsx::onKey": 22,
|
||||
"components/PlexPlayer.tsx::PlexPlayer": 103,
|
||||
"components/PlexPlaylistView.tsx::PlexPlaylistView": 22,
|
||||
"components/PlexSidebar.tsx::PlexSidebar": 32,
|
||||
"components/PlexStatsOverlay.tsx::(anonymous)": 25,
|
||||
"components/PlexStatsOverlay.tsx::sample": 25,
|
||||
"components/Scheduler.tsx::JobRow": 21,
|
||||
"components/Scheduler.tsx::Scheduler": 21,
|
||||
"components/SetupWizard.tsx::SetupWizard": 21,
|
||||
@@ -90,7 +90,7 @@ const COMPLEX: Record<string, number> = {
|
||||
"components/ui/anchoredPopoverHooks.ts::useAnchoredPopover": 30,
|
||||
"components/usePlaylistActions.tsx::pushSteps": 23,
|
||||
"components/usePlexActiveFilters.ts::buildPlexActiveFilters": 25,
|
||||
"components/useVideoActions.tsx::(anonymous)": 25,
|
||||
"components/useVideoActions.tsx::items": 25,
|
||||
"lib/api/core.ts::localizeDetail": 48,
|
||||
"lib/api/core.ts::req": 22,
|
||||
"lib/api/plex.ts::appendPlexFilters": 26,
|
||||
|
||||
Reference in New Issue
Block a user