Open CauhxMilloy opened 4 months ago
CompactConstantDefinitions
tables/tables.go
--add_tables
--tables
tables
addTables
false
compactStmt()
build/print.go
setFlags()
build/print_test.go
Fixes https://github.com/bazelbuild/buildtools/issues/108.
Hi, I'm not sure if I'm missing any step to get the review started? If there's something I missed, or if there's any desired changes, please let me know. Thanks!
CompactConstantDefinitions
boolean flag totables/tables.go
.--add_tables
/--tables
command line ortables
/addTables
json config option).false
to be backwards-compatible with existing formatted files.compactStmt()
inbuild/print.go
.CompactConstantDefinitions
is true and both statements are assignments (for const definitions), then the extra line should be removed.setFlags()
inbuild/print_test.go
.CompactConstantDefinitions
to true.CompactConstantDefinitions
reset back to false in returned (deferred) func.Fixes https://github.com/bazelbuild/buildtools/issues/108.