Commit Graph
70 Commits
Author SHA1 Message Date
Nick Lockwood ae55f6868f Only print non-default options using inferoptions 2018-08-05 08:21:40 +01:00
Nick Lockwood 196ef86a2b Added support for spaces and quotes in config file 2018-08-05 08:21:19 +01:00
Nick Lockwood bcec0f490d Improved merging logic for rules arguments 2018-08-03 15:01:15 +01:00
Nick Lockwood 89aff64934 Changed config file to use Xcode extension format 2018-08-03 14:24:49 +01:00
Nick Fox f0f8e7d8f9 Add --config to pass config file from command line (#127)
# Conflicts:
#	Sources/CommandLine.swift
2018-08-03 12:15:51 +01:00
Nick Lockwood 2916ebaa3d Improve rules argument logic 2018-08-03 12:14:50 +01:00
Nick Lockwood 6c5c0cb943 Fixed verbose mode reporting wrong rules applied 2018-07-31 13:43:33 +01:00
Yuji Taniguchi 200f8d2129 Use multiline string for command-line help 2018-07-30 09:57:14 +01:00
Nick Lockwood 2190acae2a InferOptions setting in save file is now implicit 2018-07-30 09:09:52 +01:00
Nick Lockwood e1b33c8be8 Improved import/export file logic 2018-07-27 21:19:17 +02:00
Nick Lockwood 3173c425c3 Improved deprecated property handling 2018-07-26 22:13:36 +02:00
Nick Lockwood 6c36d58448 Added --fractiongrouping & --exponentgrouping 2018-07-25 00:10:41 +02:00
Nick Lockwood 8de85d7e8a Code cleanup
# Conflicts:
#	Sources/OptionsStore.swift
2018-07-25 00:10:41 +02:00
Nick Lockwood e6f467b621 Renamed preserved to preserve and fixed tests 2018-07-25 00:10:41 +02:00
Nick Lockwood f4e9554a40 Infer defaultArgument from FormatOptions struct 2018-07-25 00:10:41 +02:00
Nick Lockwood 3b619b40e0 Removed OptionsDescriptor id
# Conflicts:
#	Sources/OptionsDescriptor.swift
2018-07-25 00:10:41 +02:00
Nick Lockwood c2c8b871a0 Renamed wrapelements option to wrapcollections 2018-07-25 00:10:41 +02:00
Nick Lockwood 9f1dd09145 Stylistic changes
# Conflicts:
#	.travis.yml
#	Sources/OptionsStore.swift
2018-07-25 00:10:41 +02:00
Vince Burn ab894de954 Added Options UI to Xcode Source Editor Extension 2018-07-25 00:10:41 +02:00
Michael McGuire 2dbfb1764f Add --lint mode that turns on --dryrun but returns a non-zero error code if any files fail 2018-07-24 23:46:42 +02:00
Michael McGuire 4b95e6b7a1 Adding ExitCode and returning either .ok or .error depending on result of call 2018-07-24 23:46:37 +02:00
Nick Lockwood d25d31238c Ensure rules are applied in a deterministic order 2018-07-23 17:06:52 +01:00
Nick Lockwood 8dbfa11a2c Fixed bug in --conflictmarkers option 2018-07-23 15:31:39 +01:00
Vince Burn 74d77a293e conflictMarkers Add 2 arguments cases to match the documentation 2018-07-23 15:30:41 +01:00
Nick Lockwood 2d9d96de3b Updated for 0.33.7 release 2018-05-18 08:43:46 +01:00
Andrei Raifura b71991a919 Handle absolute paths (#257) 2018-05-14 18:40:30 +01:00
Yonas Kolb bde1992267 build with spm 2018-04-13 13:50:20 +01:00
Nick Lockwood b030fd0c1c Remove deprecated options from inferred options 2018-02-21 20:39:07 +00:00
Wolfgang Lutz 514e5bf6f5 fix typo in insertlines 2018-02-20 10:37:50 +00:00
Nick Lockwood ba2e9a76cd Updated for 0.33.1 release 2018-02-10 20:12:57 +00:00
Nick Lockwood 3364c94f95 Deprecated --insertlines/--removelines options 2018-02-10 17:31:29 +00:00
Nick Lockwood ad3f879358 Updated for 0.33.0 release 2018-02-01 22:24:07 +00:00
Clark S. Cox III 64fdc99407 Fix "exclusive accesses" violations
A single variable was being captured by a block and modified while also being passed by inout reference
2017-12-18 23:39:51 +00:00
Nick Lockwood 016b200285 Updated for 0.32.1 release 2017-12-07 11:30:43 +00:00
Nick Lockwood 3eb18f4740 Renamed dry to dryrun and added missing code paths 2017-12-07 09:49:22 +00:00
Johannes Marbach 7fa5e6e886 Add dry mode
This adds a new commandline option `--dry` that when specified
prevents actual file changes and instead prints out a log message
for every file that would have been changed.

Relates to #155
2017-11-30 12:48:21 +00:00
Nick Lockwood 7e1d94b5c6 Added public CLI API 2017-11-29 18:32:10 +00:00
Nick Lockwood a74384c2ed Updated for 0.31.0 release 2017-11-24 22:41:42 +00:00
Nick Lockwood 32e3282104 Fixed warnings and removed support for Swift 3.1 2017-11-24 17:52:28 +00:00
Nick Lockwood 5638de5595 Updated for 0.30.0 release 2017-10-27 14:12:17 +01:00
Nick Lockwood 97b1b0371d Added --indentcase option 2017-10-27 11:48:12 +01:00
Nick Lockwood eeb86b80b8 Added --elseposition option 2017-10-26 21:05:11 +01:00
Nick Lockwood ba64231466 Added --operatorfunc option 2017-10-26 18:28:16 +01:00
Nick Lockwood a8cf1caa82 Swift 3.2 and 4.0 compatibility fixes 2017-09-04 18:41:28 +01:00
Nick Lockwood 01ad4d5dd0 Swift 4 compatibility 2017-06-20 14:44:37 +01:00
Nick Lockwood eaef1d7142 Improved documentation + added documentation tests 2017-03-27 18:14:52 +01:00
Nick Lockwood fe30bddcff Added --self insert option 2017-03-24 18:25:30 +00:00
Nick Lockwood 79b0361e80 Added merge conflict marker detection 2017-03-24 18:23:36 +00:00
Nick Lockwood b5df0f546f Unified formatting logic + added recursion fix 2017-03-23 22:47:46 +00:00
Nick Lockwood 6da691e4dd Fixed bugs in error reporting 2017-03-23 22:46:56 +00:00