Commit Graph

207 Commits

Author SHA1 Message Date
daxpedda
cfd1811a24
Additional info to default value of edition. 2019-03-13 15:46:34 +01:00
Stéphane Campinas
6a75feedac
Merge pull request #3409 from rchaser53/issue-3343
add config inline_attribute_width
2019-02-23 13:16:23 +01:00
rchaser53
e68044f8bc add a section to Configuration.md
- attributes => attribute
2019-02-23 13:46:32 +09:00
Ben Boeckel
2a353429b6 Configurations: fix typos and mismatches 2019-02-22 14:09:15 -05:00
Stéphane Campinas
2b08b73f56
do not put tracking issue as part of the option's title 2019-02-18 20:35:22 +01:00
Stéphane Campinas
412dcc70a2
point unstable options to tracking issues 2019-02-14 00:11:25 +01:00
Seiichi Uchida
efd6fda43f
Merge pull request #3311 from rchaser53/issue-3295
fix "internal error: left behind trailing whitespace" with long lines
2019-02-04 00:10:42 +09:00
rchaser53
c2534f5324 fix "internal error: left behind trailing whitespace" with long lines 2019-02-01 19:58:38 +09:00
Mara Bos
635a4cdcdc Also look in home directory for global config. 2019-01-27 13:22:25 +01:00
Mara Bos
13db34fb95 Document the global rustfmt.toml feature. 2019-01-27 13:22:25 +01:00
Arnav Borborah
4d87ef76d8
Fix incorrect documentation for unstable_features 2019-01-10 14:54:06 -05:00
Isaac Ng
c4ea1581a1
Fix formatting in Configurations.md
fixes #3230
2018-12-07 14:58:02 +11:00
Lucian
8cd8ab5f4b Fix minor typos and grammar
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
2018-12-06 15:31:43 +00:00
Nick Cameron
378994b858 Add a version option 2018-11-27 14:18:14 +13:00
Kevin Stenerson
7290529b3f Add docs to Configuration guide 2018-11-05 21:50:54 -07:00
Otavio Salvador
9c3ae2d951 Stabilize edition configuration option
Refs: #3104.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-24 22:49:17 -03:00
Nick Cameron
19d60f8137 Revert "Use width_heuristics in the options docs"
This reverts commit fa3cadf62c.
2018-10-24 15:07:09 +13:00
Nick Cameron
fa3cadf62c
Use width_heuristics in the options docs
It was using an older name
2018-10-23 14:59:14 +13:00
Seiichi Uchida
b2de574848 Add format_doc_comments 2018-10-11 23:34:36 +09:00
Ivan Molodetskikh
cbaed838d5
No trailing comma in struct literals (Visual) 2018-10-06 10:59:47 +03:00
moxian
65ae0b9a09 Change enum align semantics to care about absolute length, rather than difference.
If we're only aligning enum discriminants that are "not too far apart
(length-wise)", then this works really well for enums with
consistently-long or consistently-short idents, but not for the mixed
ones.
However, consistently-long idents is somewhate of an uncommon case and
overlong idents may be allowed to be formatted suboptimally if that
makes mixed-length idents work better (and it does in this case).
2018-09-26 18:47:17 +00:00
moxian
cc22869fb4 Add option to vertically align enum discriminants. 2018-09-26 14:35:38 +00:00
Nick Cameron
1739041f03
Merge pull request #3002 from lqd/normalize-doc-attributes
normalize_doc_attributes option: convert doc attributes to comments
2018-09-19 11:05:27 +12:00
Ivan Molodetskikh
838df8dfb6
Use correct heuristic for match block flattening 2018-09-11 08:54:43 +03:00
lqd
4b7130dfa1 normalize_doc_attributes option: convert doc attributes to comments
Convert `#![doc]` and `#[doc]` attributes to `//!` and `///` doc comments.
2018-09-07 21:58:35 +02:00
Ryan Leckey
eec74360dc Accept 2015 and 2018 instead of Edition2015 and Edition2018 for edition option 2018-08-31 00:04:23 -07:00
Aaron Loucks
e7932fa9c2 Updating newline_style documentation 2018-07-29 17:02:32 -04:00
Aaron Loucks
6ff2a5e0f3 Auto-detect newline style by default 2018-07-29 10:12:31 -04:00
Nick Cameron
90c5792565 Set rustfmt-format_macro_matchers to false by default
cc #2543
2018-07-18 12:09:50 +12:00
Nick Cameron
79c5ee8b42 Add config options for formatting macro matchers and bodies
Closes #2753
2018-07-18 12:03:59 +12:00
Michael Bebenita
c2ae39e77a Add max_width option for all heuristics.
This is useful when working with very small max_widths like 79 chars.
2018-07-17 13:17:36 -04: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
ca57ff5b76 Fix Configurations.md
Correct default for `imports_indent`

Closes #2839
2018-07-17 10:45:30 +12:00
Seiichi Uchida
ae2c6a6692 Add a configuration guide for edition 2018-07-09 23:20:38 +09:00
Hannes Karppila
3562e643cf
Add missing equals sign to example configuration 2018-07-07 00:38:32 +03:00
Florian Walch
9d8f3812cc Change default newline style to "Native"
Fixes #2626.
2018-07-02 23:16:17 +02:00
Bernardo Meurer
3681199020
Fixed typo Yess -> Yes 2018-06-27 18:27:20 -07:00
YOSHIOKA Takuma
9212ae7d02
Remove wrong "(default)"
`blank_lines_upper_bound` has default value `1`, not `2`.
2018-06-21 11:42:09 +09: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
Nick Cameron
95d6b64829 Replace WriteMode with EmitMode and backup bool 2018-05-21 14:14:09 +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
d726492e65 Remove spaces_within_parens_and_brackets
cc #1974
2018-05-18 16:35:09 +12:00
Nick Cameron
51f566062f Update uses of rustfmt_skip to rustfmt::skip 2018-05-14 16:25:10 +12:00
topecongiro
84e5634a1b Update tests 2018-05-06 15:14:47 +09:00
csmoe
5b121582e5 add config test 2018-05-06 09:23:45 +08:00
csmoe
7c246344f8 remove nested parens option 2018-05-05 23:13:49 +08:00
csmoe
f7415bcea2 update self format 2018-04-29 20:53:31 +08:00
Mateusz Mikuła
d46b231ccb Fix example for reorder_imports (#2628)
Default value changed in #2605
2018-04-17 23:04:15 +09:00