Nick Cameron
43f178bd58
Remove Summary
2018-07-24 21:45:15 +12:00
Nick Cameron
481e85cc58
formatting
2018-07-24 15:46:39 +12:00
Nick Cameron
2af1ed109c
Refactoring: factor out format_file
and FormatHandler
...
This effectively separates out formatting from other handling.
2018-07-24 14:05:04 +12:00
Nick Cameron
069c4fc508
Refactoring: summary
...
Move the timer from Summary to Session.
Move Summary from config to formatting.
2018-07-24 08:43:30 +12:00
Nick Cameron
71d3d04270
factor out a Session
object
2018-07-23 15:37:34 +12:00
Nick Cameron
4153e66e42
Move non-public API from lib.rs to its own module
2018-07-23 12:45:41 +12:00
Nick Cameron
d911b640d1
Merge pull request #2823 from fwalch/default-newline-style
...
Change default newline style to "Native"
2018-07-17 11:18:10 +12:00
Nick Cameron
486f8fd8e7
Fixup formatting of tests and source
2018-07-12 21:37:28 +12:00
Florian Walch
363363d066
test: Assert CRLF line endings on Windows
2018-07-02 23:43:59 +02:00
Stéphane Campinas
f7a25a1177
warn on use of default value for an option
2018-06-30 17:03:18 +02:00
Tibo Delor
6b00b8b302
Move newline logic inside the formatting process.
...
Why?:
- Conceptually it sounds right
- Absolutely all write modes where doing it anyway
- It was done several times in some in case
- It greatly simplify the code
2018-06-10 00:25:47 +10:00
Alex Butler
cd925f0140
Add mercy for devs that run cargo test
without building
2018-05-29 00:38:47 +01:00
Nick Cameron
9a7fac63c8
Remove format_and_emit_report
from the API
...
Also changes the header/footer stuff
2018-05-21 15:09:17 +12:00
Nick Cameron
95d6b64829
Replace WriteMode with EmitMode and backup bool
2018-05-21 14:14:09 +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
51f566062f
Update uses of rustfmt_skip
to rustfmt::skip
2018-05-14 16:25:10 +12:00
Nick Cameron
5d9f5aa05a
Replace --write-mode
with --emit
...
cc #1976
2018-05-13 14:13:24 +12:00
Nick Cameron
659d0c9741
Merge pull request #2684 from topecongiro/issue-2175
...
Apply small parent heuristic only when the chain is at the beginning of the line
2018-05-09 13:16:26 +12:00
Alex Crichton
47742807f7
Ensure tests pass on the beta compiler
...
Also add a travis matrix entry for emulating the beta tests
2018-05-08 18:05:08 -07:00
Alex Crichton
a72be170d7
Fix rustfmt tests in the Rust repo
...
Two tests were executing `cargo run` but `cargo` is not ambiently available to
execute. Instead it's best to execute the rustfmt binary directly, which is
always assembled as part of `cargo test`.
2018-05-08 07:32:00 -07:00
topecongiro
bd25c7d0f7
Cargo fmt
2018-05-08 06:25:48 +09: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
Nick Cameron
0f8029f251
Use a different env var for the test directory
2018-05-06 08:23:26 +12:00
Nick Cameron
b6cd17f28a
Fix test bug (again)
2018-05-04 09:35:56 +12:00
Nick Cameron
4a4916920f
Make test temp files in the Cargo target directory, if known
2018-05-03 11:14:01 +12:00
topecongiro
43df7dcb0e
Run cargo fmt with reorder_impl_items set to true
2018-04-30 16:24:01 +09:00
Nick Cameron
0f4ed08d0e
Harden tests to not rely on CWD
2018-04-27 11:13:05 +12: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