ui/client/features/rules/hooks/useRules
Cockpit client (features), next. Source: ui/client/features/rules/hooks/useRules.tsx.
Functions#
useRules()#
useRules():
RulesApi
Defined in: ui/client/features/rules/hooks/useRules.tsx:10
Reads every rule for the current project (severity, plain-words "why", live violation count) via /api/validate.
Runs once on mount and again on demand; overlapping runs are dropped so a slow one cannot overwrite a newer result.