Should rulerfmt be replaced with a ruler template file?
#2120
Closed
joelim-work
started this conversation in
Polls
Replies: 1 comment
-
|
This has now been accepted and merged: #2186 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A few weeks ago I was exploring the idea of using Go templates as a replacement for the
rulerfmtconfiguration syntax. The idea is that a template file allows for greater customization (in particular control flow viaif/elsestatements, at the cost of greater complexity. A more detailed writeup is located at #2084, and there is also an outstanding draft pull request at #2083 (I do not plan to merge it unless there is sufficient interest from other users).Anyway I just thought I would try to gauge whether users are interested in the feature or not. Here is a quick comparison of what the default ruler looks like between the two approaches:
rulerfmt(andstatfmt):rulertemplate file:7 votes ·
Beta Was this translation helpful? Give feedback.
All reactions