Skip to main content

Documentation

All analyses

Every analysis Vipr ships, grouped by the analyzer that owns it. The content is generated directly from the analyzer source code and stays in lockstep with the actual detection logic.

44 analyses across 5 analyzers

Core

7 analyses · v1.0.0

React

13 analyses · v1.0.3

React Anti-Patterns

Detects React-specific anti-patterns: stale closures, prop drilling, conditional hooks, unstable dependencies, mutation in render.

anti-patterns Read

React Dataflow

Tracks how data flows through components: state-setter call sites per component or hook, props that are only forwarded from component to component (prop drilling), array-transform chains and derived values.

performance Read

React Structural Complexity

Measures control-flow complexity per component or custom hook: branches, loops, early returns, JSX conditionals, logical operators, optional chains and nullish defaults.

technical-debt Read

React Security

Reports raw-HTML and code-execution sinks, script-running URL schemes, credential-shaped literals, and credential-named values written to logs or browser storage.

security Read

React Hooks

Audits hook usage: rules of hooks, custom hook patterns, dependency arrays, hook ordering.

technical-debt Read

React Temporal Patterns

Analyses effects in components and custom hooks: resources created without a cleanup (listeners, timers, intervals, sockets, observers, subscriptions), async work that sets state with nothing to cancel a stale run, and dependency arrays that are missing, too long or rebuilt on every render.

technical-debt Read

React Coupling

Measures how much a component depends on its surroundings: number of props (destructured or read as props.x), callback props, context consumption (also in custom hooks), ref forwarding and children usage.

technical-debt Read

React Identity Stability

Tracks reference stability where it matters: inline objects, arrays and functions handed to a component that is memoized in the same file, and memoization that cannot pay for itself.

performance Read

React Accessibility

Syntactic accessibility checks on the DOM elements a file renders: missing names and labels, mouse-only click handlers, removed focus outlines, invalid roles, skipped headings.

accessibility Read

React Performance

Detects render-cost issues that this file can prove: component types created during render, context values rebuilt on every render, computation repeated on every render, memoization that cannot pay off.

performance Read

React Reliability

Detects reliability issues in components and custom hooks: async operations with no error handler and member accesses that are nullable by construction. Effects that create a resource and never release it lower the reliability score; their findings are reported by `react-temporal`.

technical-debt Read

React Technical Debt

Code health of each React component and custom hook (a smooth function of its complexity and its leaking or every-render effects; the file reads as its worst unit), the file maintainability index shared with core, a hotspot label for units past the complexity threshold, and the god-component finding.

technical-debt Read

React Migration

Reports the APIs React 19 removed (blockers) and the deprecated ones it still supports (warnings).

migrations Read

Next.js

7 analyses · v1.0.0

TypeScript

16 analyses · v1.0.0

TypeScript Type Complexity

Grades the most complex declaration in a file: deep generic nesting, stacked conditional types, eagerly-expanded recursion, and wide unions and intersections.

technical-debt Read

TypeScript Type Safety

Detects type-system escape hatches: @ts-nocheck, @ts-ignore, @ts-expect-error, any usage, double assertions, implicit any catch clauses.

technical-debt Read

TypeScript Declaration Shape

Flags interface/class/namespace shape problems: empty interfaces, oversized definitions, deep inheritance, declaration merging, and missing return types.

patterns Read

TypeScript Generics Usage

Flags generic-type arity, unused and single-purpose type parameters, and constraints that constrain nothing.

technical-debt Read

TypeScript Utility Types Usage

Detects custom mapped types that duplicate built-in utility types, and reports utility-type leverage.

patterns Read

TypeScript Import Discipline

Surfaces import-statement hygiene: value imports used only as types, namespace imports of project modules, and barrel files.

patterns Read

TypeScript Type Guards

Grades switches over a union that lack an exhaustiveness check, and reports the narrowing patterns a file uses.

patterns Read

TypeScript Module Augmentation

Surfaces declare-global, module augmentations, ambient module declarations, and global namespace pollution.

patterns Read

TypeScript Structural Quality

Detects singleton patterns, undocumented empty catches, primitive throws and direct use of the global object; reports `using` declarations and counts what a single file can prove about factories and injection.

patterns Read

Enum Posture

Reports enum modernization posture: string enums representable as unions of literals, and const enums that isolatedModules transpilation cannot inline.

patterns Read

Class Shape

Reports class responsibility load: large classes by instance-method count, and low-cohesion classes whose stateful methods split into disconnected clusters over the instance fields.

patterns Read

Monorepo Boundary Violations

Flags imports that reach into another workspace package through a path the package did not export — deep relative traversals, non-exported subpaths, and tsconfig `paths` aliases that resolve into another package.

patterns Read

Type-Aware TypeScript

Checker-backed findings from a full tsconfig-driven project pass: real any propagation, unnecessary non-null assertions, cross-file inheritance depth, dead union members, defeated generic constraints, pointless type predicates, and redundant utility types.

patterns Read

Compile-Cost Hotspots

Ingests a user-generated `tsc --generateTrace` output and attributes type-checking time to the files that dominate it. Strictly opt-in — Vipr never spawns tsc.

patterns Read

Design Principles

Dependency-inversion and interface-segregation findings the type checker can prove: constructor parameters typed by nominal concrete classes, services constructed inside methods instead of injected, and behavioral interfaces whose consumers each use a sliver.

patterns Read

TypeScript Suppression Debt

Aggregates @ts-ignore/@ts-expect-error/@ts-nocheck and eslint-disable directives into per-file concentration signals.

technical-debt Read

Linting

1 analysis · v1.0.0

All analyses

Title
Cyclomatic Complexity
core-cyclomatic
Halstead Metrics
core-halstead
Maintainability Index
core-maintainability
Function-Level Analysis
core-functions
Cognitive Complexity
core-cognitive
Dead Code Detection
core-dead-code
JSDoc Documentation Coverage
core-documentation
React Anti-Patterns
react-anti-patterns
React Dataflow
react-dataflow
React Structural Complexity
react-structural
React Security
react-security
React Hooks
react-hooks
React Temporal Patterns
react-temporal
React Coupling
react-coupling
React Identity Stability
react-identity
React Accessibility
react-accessibility
React Performance
react-performance
React Reliability
react-reliability
React Technical Debt
react-technical-debt
React Migration
react-migration
Next.js Server / Client Boundaries
nextjs-server-client
Next.js Data Fetching
nextjs-data-fetching
Next.js Pages → App Router Migration
nextjs-migration
Next.js Security
nextjs-security
Next.js Configuration
nextjs-config
Next.js Route Structure
nextjs-route-structure
Next.js Rendering Strategy
nextjs-rendering
TypeScript Type Complexity
ts-type-complexity
TypeScript Type Safety
ts-type-safety
TypeScript Declaration Shape
ts-declaration-shape
TypeScript Generics Usage
ts-generics
TypeScript Utility Types Usage
ts-utility-types
TypeScript Import Discipline
ts-import-discipline
TypeScript Type Guards
ts-type-guards
TypeScript Module Augmentation
ts-module-augmentation
TypeScript Structural Quality
ts-structural-quality
Enum Posture
ts-enum-posture
Class Shape
ts-class-shape
Monorepo Boundary Violations
ts-boundary-violations
Type-Aware TypeScript
ts-type-aware
Compile-Cost Hotspots
ts-compile-trace
Design Principles
ts-design-principles
TypeScript Suppression Debt
ts-suppression-debt
Linting Violations
linting
Documentation