-
Notifications
You must be signed in to change notification settings - Fork 10
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
ArgumentAwareCommandInvocationDumper is not aware #6
Comments
While digging, I ended up looking in I ended up with the attached patch; to me it looks like the attemped replacement of the base-class does not work as expected, and the wrong settings are used for most classes. |
With this patch, the Seven Samurai example turns out like this (I added some extra so that the line length would be exceeded):
Which, to me at least, looks a lot nicer. (The example given for custom formatting only has a few short words, so it doesn't exceed the line-length settings; with the patch, gersemi still sticks to one line if it can) |
I can PR this if you like, or you could just apply the patch from the comment above, or, since gersemi is opinionated and simple, you could say "no, it's supposed to be like that". |
I'm going to assume some things along the way so please correct me if you do something differently. Given that
I have this output:
In fact I see the same for all the 0.7.x versions. Would you be able to double check what's the difference between what I've written above and your setup? Just to make things clear: list of things, when sufficiently long, is meant to be extra indented after |
I think I simplified it down too much. I have attached two example files.
|
I can now confirm it's a bug. I'll try to fix it soon. |
Version 0.7.5 with the fix has been released. Thanks for reporting this bug. |
Very nice, thank you. My collection of CMake modules now features "use gersemi before submitting MRs" in the documentation, for consistency. |
I was wondering why
install()
formats like this:(e.g. the multi-valued parameters for
FILES
are indented) butconfigure_package_config_file()
formats like this:(e.g. the multi-values parameters for
PATH_VARS
are not indented). I would expect long(-ish) lists of arguments for multi-values parameters to be indented. Theseven_samurai()
example looks a bit weird, too: why are not the parameters forSHICHIROJI
indented? (Or maybe they need to be longer, so that multi-line layout might kick in).The text was updated successfully, but these errors were encountered: