Skip to content

v0.1.7

Choose a tag to compare

@jonbaldie jonbaldie released this 05 Jun 19:12
da7f93b

Changed

  • RenderMessage and CompileRegex now reuse package-level compiled regexps instead of recompiling on every call. RenderMessage runs 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/rule package, covering RenderMessage placeholder substitution and number formatting, the typed Properties accessors (Int/Float/Bool/String), CompileRegex, and SortViolations.

Full Changelog: v0.1.6...v0.1.7