Rules by commit type

Different commit types need different context. A bug fix should explain the root cause; a performance change should include metrics. Here are the default required and recommended sections per type.

Type Required Recommended
fixWhy, CauseCovers
featWhyApproach, Alternatives
refactorWhy, ApproachAlternatives, Invariants
perfWhy, MetricsApproach, Tradeoffs

These defaults can be customized in your commitlint config.