15 Commits

Author SHA1 Message Date
Akio Yasui f3d2d09cd6 Don't deduplicate files in include with different paths but a same name (#849)
* Distinguish included files by their full path

* Add test with same-name includes

* Update CHANGELOG
2020-04-29 10:20:28 +10:00
yonaskolb 0e4e08bfc4 run swift format for Swift 5.1 2019-11-10 11:56:23 +11:00
yonaskolb 44f9ffa51a formatting 2019-11-10 11:38:53 +11:00
Romuald Cari e38360d5e3 Fix crash on empty ${} variable expansion (#706)
This fix got lost in #704 reworks.
2019-11-06 14:12:11 -06:00
Romuald Cari 06a6616b88 Improving variable expansion runtime (#704)
* Improving variable expansion runtime

The current implementation of variable expansion is O(n x m) with n being the
number of strings in the project spec and m being the number of project variables.

This implementation is now O(n).

Also, this effectively deprecates the support for $legacy_variables in favor of the
${new_variables} making this whole patch possible.

* Adding option to disable variable expansion

* Adding performance test for spec loading

* Updating changelog
2019-11-06 08:33:54 -06:00
yonaskolb d0d509c1a5 swiftformat 2019-10-27 22:37:41 +11:00
Brian Clymer 7152d6aa9f Address CR. 2019-10-06 15:33:27 -05:00
Brian Clymer 6e5766a2bc Ensure that target names can be changed by template attributes. 2019-10-02 10:40:15 -05:00
Yuta Saito 4cda0bff5c Expand template variable in Array of Any 2019-09-09 15:28:08 +09:00
yonaskolb d921d14259 make format_code 2019-09-01 22:02:53 +10:00
haritowa 8e21cdfdb1 Include unique file only once
Fixes #574
2019-08-19 12:42:53 -05:00
Tom Quist c8aef74a93 Fix review suggestions 2019-06-17 00:01:33 +02:00
Tom Quist 25260963c7 Add environment variable expansion
closes #587
2019-06-16 23:48:58 +02:00
Yonas Kolb fb3f80d6af run swiftformat 2019-01-28 22:20:01 +11:00
Yonas Kolb 862b19aa1a refactor Spec 2019-01-28 21:51:17 +11:00