Repository navigation
update formatting rules - #639
superwhiskers wants to merge 2 commits into
Conversation
3e4eea4 to
cd56c0a
Compare
cd56c0a to
74659ec
Compare
74659ec to
64eef01
Compare
1e28421 to
e4fd1fd
Compare
e4fd1fd to
996de98
Compare
9394ede to
95a64f9
Compare
nkoukpaizan
left a comment
There was a problem hiding this comment.
I'm not convinced this is a good idea. It touches a lot of files, and makes some things harder to read in order to improve lambdas (which I usually avoid anyway).
| .help = "Relative tolerance of the cost check", | ||
| .type = ArgType::Real, | ||
| .defaults = 1.0e-6}}; | ||
| CliArgs args{{.name = {"--case-file", "-c"}, .help = "JSON case file", .required = true}, {.name = {"--reference-cost", "-r"}, .help = "Optimal cost to check [$/h]", .type = ArgType::Real}, {.name = {"--solver-tolerance"}, .help = "Ipopt convergence tolerance", .type = ArgType::Real, .defaults = 1.0e-6}, {.name = {"--tolerance", "-t"}, .help = "Relative tolerance of the cost check", .type = ArgType::Real, .defaults = 1.0e-6}}; |
There was a problem hiding this comment.
This reads worse than the previous version.
There was a problem hiding this comment.
there's some manual effort i need to put in to make the formatting look right because the formatter won't automatically do it. i just pushed an update of how that should look.
the reason the formatter won't do it automatically is because we unbound the maximum line length in the formatting configuration. i believe this was done to avoid touching so many files in the initial formatting approach but it has the disadvantage of not automatically doing things like the change i just made.
There was a problem hiding this comment.
if you and others are open to reversing this, i'd propose a column limit of 80. this would reduce the amount of manual effort required to make the code look nice at the cost of reformatting a lot of the codebase.
personally, i think this is worth it, but it has been brought up before
95a64f9 to
4ec9d27
Compare
- adjust continuation indentation and bracket alignment - apply formatting fixes across the repository
4ec9d27 to
c1145b9
Compare
|
Style changes are not priority right now and changing 300+ files is too much of a distraction at this point. |
Description
this modifies some of the formatting rules to make lambda expressions a bit more readable when used inline within a function call.
Proposed changes
Checklist
-Wall -Wpedantic -Wconversion -Wextra.