Nick Cameron
1ead31ae9d
Merge pull request #2795 from jechase/issue-2794
...
Add test and fix for #2794
2018-06-20 10:35:16 +12:00
Josh Chase
2077855e00
Remove NestedImport tactic
2018-06-19 12:13:26 -04:00
Nick Cameron
261238ea51
Change use_small_heuristics
to an enum and stabilise
...
Since it is now an enum, we can be future compatible since we can add variants
for different heuristics.
Closes #1974
2018-06-19 13:28:27 +12:00
Seiichi Uchida
d1477ca1de
Add a field in Summary for notiyfing about formatting failure of macro
2018-06-07 12:32:58 +09:00
Seiichi Uchida
42ab258757
Put each nested import on its own line
...
while putting non-nested imports on the same line as much as possible.
2018-06-05 19:58:44 +09:00
Nick Cameron
d930617cbe
Make Range public
...
0.8.1
2018-05-28 11:30:58 +12:00
Tibo
33a46581f7
Fix test failing on windows due to crlf
2018-05-27 03:20:02 +10:00
Nick Cameron
632fab4c95
documentation
2018-05-21 15:54:56 +12:00
Nick Cameron
6541be3c6f
Replace use_colored_tty
with iatty crate
2018-05-21 15:32:27 +12:00
Nick Cameron
95d6b64829
Replace WriteMode with EmitMode and backup bool
2018-05-21 14:14:09 +12:00
Nick Cameron
843c12601a
Use our own FileName
struct rather than exporting libsyntax's
2018-05-21 12:08:39 +12:00
Nick Cameron
539d4d9665
Refactor CliOptions
2018-05-21 11:27:25 +12:00
Nick Cameron
abb253df8b
Rationalise result and error types
2018-05-21 08:58:53 +12:00
Nick Cameron
432b1cb253
Rationalise error types
...
cc #2639
2018-05-21 08:58:53 +12:00
Nick Cameron
2ee8b0e4c5
Remove remove_blank_lines_at_start_or_end_of_block
...
cc #1974
2018-05-18 16:56:55 +12:00
Nick Cameron
dd9c15ad01
Unstabilise unstable_features
...
cc #1974
2018-05-18 16:53:08 +12:00
Nick Cameron
a70f71610c
stabilise remove_nested_parens
and set default to true
2018-05-18 16:46:22 +12:00
Nick Cameron
8afe367510
stabilise shorthand options
...
cc #1974
2018-05-18 16:38:09 +12:00
Nick Cameron
d726492e65
Remove spaces_within_parens_and_brackets
...
cc #1974
2018-05-18 16:35:09 +12:00
Nick Cameron
7b6d2b4699
Stabilise reorder_imports and reorder_modules
2018-05-18 16:04:09 +12:00
Nick Cameron
416bc4c353
Unstabilise comments options
...
cc #1974
2018-05-18 16:02:05 +12:00
Nick Cameron
1452349966
Exit with 1 for license check in --check
mode
...
Closes #2707
2018-05-18 15:30:32 +12:00
Nick Cameron
a3c85cdc41
Reorder the --help message
2018-05-14 11:07:54 +12:00
Nick Cameron
6d0695303a
Make some write modes unstable
2018-05-14 10:55:16 +12:00
Nick Cameron
3b23a98d00
Support unstable options
...
cc #1976
2018-05-14 10:20:51 +12:00
Nick Cameron
5d9f5aa05a
Replace --write-mode
with --emit
...
cc #1976
2018-05-13 14:13:24 +12:00
Nick Cameron
8396da1882
Add --backup
flag
2018-05-13 13:18:08 +12:00
Nick Cameron
4d9de48e06
Add --check
flag.
...
cc #1976
2018-05-11 20:26:00 +12:00
Nick Cameron
1869888b1a
Remove --verbose-diff
...
Use `--verbose` instead
cc #1976
2018-05-11 13:58:34 +12:00
Nick Cameron
55ac062da0
Add --quiet
flag, remove Plain
write mode
...
cc #1976
2018-05-11 13:50:30 +12:00
topecongiro
bd25c7d0f7
Cargo fmt
2018-05-08 06:25:48 +09:00
Nick Cameron
4bbd5c4ae5
Merge pull request #2681 from topecongiro/issue-2680
...
Error on self_tests when there are lines that exceed max width
2018-05-07 11:20:33 +12:00
topecongiro
51c07f4335
Fix up lines exceeding max width
2018-05-06 16:17:09 +09:00
topecongiro
5f05987211
Use rustfmt.toml when running self_tests
2018-05-06 16:16:58 +09:00
topecongiro
1f738ea208
Cargo fmt
2018-05-06 15:22:29 +09:00
Nick Cameron
17b04f181d
Merge pull request #2677 from csmoe/remove_nested_parens_opt
...
Add remove nested parens option
2018-05-06 14:01:17 +12:00
csmoe
7c246344f8
remove nested parens option
2018-05-05 23:13:49 +08:00
Trevor Spiteri
48df8f8dc0
Add test for width heuristics
2018-05-02 11:38:23 +02:00
Trevor Spiteri
9b36156020
Do not scale WidthHeuristics when max_width less than 100
2018-05-02 10:38:02 +02:00
topecongiro
43df7dcb0e
Run cargo fmt with reorder_impl_items set to true
2018-04-30 16:24:01 +09:00
csmoe
c9cef5db17
import_indent to Block
2018-04-29 19:57:49 +08:00
Tibo
e06c9c8c53
Allow io::Error
to live longer before being wrapped in a failure::Error
2018-04-26 14:39:10 +10:00
Tibo
b7df23c3d5
Replace completely std::error with failure crate
2018-04-26 13:48:48 +10:00
Nick Cameron
ca610d35b3
Refactor to make a sensible public API
...
0.5 - lots of breaking changes
cc #2639
2018-04-20 21:52:02 +12:00
Nick Cameron
5194984812
Add a verbose-diff option
...
And don't print end of line characters by default in diffs
cc #2536
2018-04-20 14:02:44 +12:00
Nick Cameron
7a886e8fe5
Refactoring around write mode in main
2018-04-20 13:42:27 +12:00
David Barsky
f9532ba8d7
Implemented rough draft of check
write mode. ( #2539 )
...
* Add rough draft of `check` mode. Not unit tested.
* Added assert-cli; simple test case for `--write-mode=check`
* Lightly documented `check` WriteMode
* wrote clearer phrasing for config::options::WriteMode::Check
* Implemented default for WriteMode where default is Overwrite
* Simplified exit code handling
* updated README.md as per @nrc' comment
* collapsed exit-code handling
* Removed write_mode from Summary, introduced partial option parsing earlier
* Handle write-mode parsing in a slightly better way.
2018-04-20 11:14:11 +12:00
Nick Cameron
55dd8f1df0
Merge pull request #2603 from topecongiro/merge-nested-imports
...
Merge imports
2018-04-12 16:40:06 +12:00
Nick Cameron
305c640553
Review changes
2018-04-11 10:50:19 +12:00
Nick Cameron
911395a451
Squash the various 'reorder imports' option into one
...
cc #2185
2018-04-11 10:46:49 +12:00