Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruleguard: better text truncation in the rendered message #330

Merged
merged 1 commit into from Dec 30, 2021

Conversation

quasilyte
Copy link
Owner

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.

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.
@quasilyte quasilyte merged commit 10dc4ed into master Dec 30, 2021
@quasilyte quasilyte deleted the quasilyte/better_text_truncation branch December 30, 2021 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant