/**
 * Category to define a rule
 */ export enum RuleCategory { BREAKING = "Breaking" , NON_BREAKING = "Non-Breaking" , IGNORED = "Ignored" } /**
 * Count of number of rules in each category for some collection of rules
 */ export type CategorySummary = Record < RuleCategory , number > ; /**
 * Creates a category summary with all counts set to zero.
 */ export function createCategorySummary ( ) { const summary = { } as CategorySummary ; Object . values ( RuleCategory ) . forEach ( ( category ) => { summary [ category ] = 0 ; } ) ; return summary ; }