opentofu/configs/configupgrade
Martin Atkins e49d993d89 configs/configupgrade: Decide on blank lines by ends of items
Previously we were using the line count difference between the start of
one item and the next to decide whether to insert a blank line between
two items, but that is incorrect for multi-line items.

Instead, we'll now count the difference from the final line of the
previous item to the first line of the next, as best we can with the
limited position info recorded by the HCL1 parser.
2018-12-04 11:37:39 -08:00
..
test-fixtures configs/configupgrade: Test that map attrs as blocks are fixed 2018-12-04 11:37:39 -08:00
analysis.go configs/configupgrade: Add some logging and enable it for tests 2018-12-04 11:37:39 -08:00
doc.go configupgrade: new package for upgrading configs for 0.12 2018-10-16 18:50:29 -07:00
module_sources_test.go configupgrade: Load source code for a module and detect already upgraded 2018-10-16 18:50:29 -07:00
module_sources.go configupgrade: Load source code for a module and detect already upgraded 2018-10-16 18:50:29 -07:00
upgrade_body.go configs/configupgrade: Upgrade rules for the "terraform" block type 2018-12-04 11:37:39 -08:00
upgrade_expr.go configupgrade: Analysis of input configuration 2018-10-16 18:50:29 -07:00
upgrade_native.go configs/configupgrade: Decide on blank lines by ends of items 2018-12-04 11:37:39 -08:00
upgrade_test.go configs/configupgrade: Test that map attrs as blocks are fixed 2018-12-04 11:37:39 -08:00
upgrade.go configupgrade: Analysis of input configuration 2018-10-16 18:50:29 -07:00
upgrader.go terraform: More wiring in of new provider types 2018-10-16 19:12:54 -07:00