v0.1.7
Changed
RenderMessageandCompileRegexnow reuse package-level compiled regexps instead of recompiling on every call.RenderMessageruns once per reported violation, so this removes a per-violation regex compilation from the hot path. Behaviour is unchanged.
Added
- Unit tests for the previously untested
internal/rulepackage, coveringRenderMessageplaceholder substitution and number formatting, the typedPropertiesaccessors (Int/Float/Bool/String),CompileRegex, andSortViolations.
Full Changelog: v0.1.6...v0.1.7