Commit graph

2973 commits

Author SHA1 Message Date
Nick Cameron
7293a8b122
Merge pull request #2450 from topecongiro/issue-37
Preserve trailing spaces in doc comments even when options are set
2018-02-16 18:08:27 +13:00
Seiichi Uchida
b60d9b0d4f Preserve trailing spaces in doc comments even when options are set
Closes #37.
2018-02-16 10:14:06 +09:00
Nick Cameron
f10c73ee90
Merge pull request #2448 from jonathanmorley/patch-1
Rust 1.24 released, rustfmt now works on stable
2018-02-16 14:08:27 +13:00
Nick Cameron
99faae6648
Merge pull request #2443 from topecongiro/skip-children
Do not try to parse external modules when skipping children
2018-02-16 14:07:29 +13:00
Nick Cameron
651dae30f1
Merge pull request #2436 from topecongiro/markdown-spaces
Preserve trailing two whitespace in comments
2018-02-16 13:51:37 +13:00
Nick Cameron
16e71c42d8
Merge pull request #2449 from radix/patch-1
IRC channel is now #rust-dev-tools
2018-02-16 09:52:20 +13:00
Christopher Armstrong
9332181729
IRC channel is now #rust-dev-tools
Also specifically mention the IRC network (irc.mozilla.org) that the channel is on.
2018-02-15 14:47:49 -06:00
Jonathan Morley
017fdc56f1
Rust 1.24 released, rustfmt now works on stable 2018-02-15 14:35:45 -05:00
Seiichi Uchida
bc12c84d2f Do not try to parse external modules when skipping children 2018-02-15 22:48:06 +09:00
Seiichi Uchida
c2dd1bcf66 Add rustfmt_skip to a test with long string 2018-02-15 22:47:32 +09:00
topecongiro
6f38a4aeab Preserve two or more trailing spaces in doc comment
rustdoc treats two or more trailing spaces as a line break.
2018-02-15 16:41:47 +09:00
topecongiro
296018afe7 Preserve trailing whitespaces only for doc comment 2018-02-15 16:34:22 +09:00
Nick Cameron
091ed2f0a4
Merge pull request #2086 from jugglerchris/difflines_mode
Add a new "modified lines" write mode.
2018-02-15 15:21:44 +13:00
Nick Cameron
bf355de78e
Merge pull request #2422 from davidalber/travis-config-badge
Proposal: add badge for Travis CI example status
2018-02-15 14:40:38 +13:00
Nick Cameron
69d7eb0986
Merge pull request #2441 from topecongiro/issue-2438
Return `None` when format_code_block may have failed
2018-02-15 14:18:21 +13:00
Nick Cameron
c5347fc91e
Merge pull request #2428 from PSeitz/master
scale WidthHeuristics by max_width
2018-02-15 14:17:39 +13:00
David Alber
e2088b0e0e Adding badge and explanation for Travis CI example status 2018-02-14 08:51:51 -08:00
topecongiro
785da7439f Return None when format_code_block may have failed 2018-02-14 19:00:45 +09:00
Nick Cameron
418a612220
Merge pull request #2440 from topecongiro/issue-2439
Disable formatting macro-def if args do not fit on one line
2018-02-14 12:10:08 +13:00
Nick Cameron
9cbda9062f
Merge pull request #2435 from davidalber/fix-option-typo
Fixing command-line option name
2018-02-14 12:03:21 +13:00
Nick Cameron
ed2ecb647c
Merge pull request #2187 from brotzeit/master
don't print verbose output when formatting with stdin
2018-02-14 11:48:09 +13:00
topecongiro
b49b30746d Disable formatting macro-def if args do not fit on one line 2018-02-14 04:00:26 +09:00
Pascal Seitz
5d24dfbdfb scale WidthHeuristics by max_width
scale WidthHeuristics by max_width
2018-02-13 19:43:56 +01:00
Seiichi Uchida
fe30dab017 Preserve trailing two whitespace in comments
Closes #2434.
2018-02-13 19:39:37 +09:00
David Alber
f2bed291ba Fixing command-line option name 2018-02-12 21:48:57 -08:00
Chris Emerson
2a3caa7f57 Update comment to say that Modified is for internal use only. 2018-02-12 23:09:07 +00:00
Chris Emerson
807f29206a Update after review comments. 2018-02-12 23:07:46 +00:00
Chris Emerson
e02f268577 Move the modified test files to the new location. 2018-02-12 22:58:50 +00:00
Chris Emerson
c2fda14e0a Merge remote-tracking branch 'origin/master' into difflines_mode 2018-02-12 22:43:37 +00:00
Nick Cameron
67d36c7019
Merge pull request #2409 from davidalber/configuration-check-opt-out
Skipping formatting of some configuration snippets
2018-02-13 10:11:04 +13:00
David Alber
429dad72b6 Formatting snippets without configuration option marked as skip 2018-02-12 08:17:43 -08:00
brotzeit
32953d04de don't print verbose output when formatting with stdin 2018-02-12 12:58:38 +01:00
Seiichi Uchida
63ebe1b13e
Merge pull request #2432 from davidalber/remove-unused-import
Removing unused import
2018-02-12 18:37:37 +09:00
Seiichi Uchida
a6982b1bfd
Merge pull request #2433 from davidalber/unhork-snippet-tests
Fixing path to Configurations.md
2018-02-12 18:36:07 +09:00
David Alber
b8f0adb40d Fixing path to Configurations.md
Issue #2419 changed the directory in which
`configuration_snippet_tests` runs, which broke the test. Since the
test is currently annotated with `#[ignore]`, the break wasn't
caught before merge.
2018-02-11 21:53:19 -08:00
David Alber
6b4bc3ac14 Removing unused import 2018-02-11 21:15:06 -08:00
Nick Cameron
4af4927318
Merge pull request #2431 from davidalber/fix-indent-style-control-flow-snippet
Fixing `indent_style` control flow examples
2018-02-12 12:31:47 +13:00
Nick Cameron
8f8ee9e660
Merge pull request #2419 from topecongiro/core
Separate rustfmt into multiple crates
2018-02-12 12:15:49 +13:00
David Alber
d4a518dc0a Fixing control flow examples 2018-02-11 14:48:45 -08:00
Seiichi Uchida
5297e7c6dc Fix appveyor 2018-02-07 23:57:37 +09:00
Seiichi Uchida
b2a3986160 Pub use Config and Summary 2018-02-07 23:15:00 +09:00
topecongiro
5bd456dc3e Cargo update 2018-02-07 22:51:14 +09:00
topecongiro
9c9b31c13b Create git-rustfmt crate 2018-02-07 22:49:56 +09:00
topecongiro
d28d7fee89 Create rustfmt-format-diff crate 2018-02-07 22:49:43 +09:00
topecongiro
d18cd1d11c Create rustfmt-bin crate 2018-02-07 22:49:26 +09:00
topecongiro
3920282deb Create cargo-fmt crate 2018-02-07 22:49:10 +09:00
topecongiro
66b25f1b4a Create rustfmt_config crate 2018-02-07 22:48:52 +09:00
topecongiro
4af2aa3a9e Create rustfmt_core crate 2018-02-07 22:48:05 +09:00
Nick Cameron
c9e250a1ab
Merge pull request #2417 from topecongiro/issue-2415
Avoid orphan in chain with punctuation
2018-02-06 21:23:14 +13:00
Nick Cameron
fe06b96f48
Merge pull request #2416 from topecongiro/eshell
Explicitly disable colored output when it is not supported
2018-02-06 21:22:18 +13:00