Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ruleguard: better text truncation in the rendered message (#330)
Instead of using variable names like `$x` when substitution string is too long, truncate it to the max len. So "some very long text" becomes "some v<...> text". This is more user-friendly, as pattern variables are very non-intuitive in most cases.
- Loading branch information
Showing
3 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters