about summary refs log tree commit diff
path: root/src/bin
AgeCommit message (Collapse)AuthorLines
2017-05-03Drop rustc-serialize, use serde, update toml dependencyest31-11/+17
2017-05-01Merge pull request #1473 from topecongiro/bug/no-such-file-or-directoryNick Cameron-12/+20
Prevent panicking against directories or non-existent files
2017-04-26Prevent panicking against directories or non-existent filesSeiichi Uchida-12/+20
2017-04-19Show exit codes' meanings with the rustfmt help messageSheng Hau-0/+1
2017-04-10fix path checkJay Lee-1/+10
2017-04-06Merge pull request #1438 from topecongiro/poor-formatting/method-chainsNick Cameron-1/+2
Lookup the last element of 'subexpr_list' instead of the first one
2017-04-06Lookup the last element of 'subexpr_list' instead of the first onetopecongiro-1/+2
Closes #1217, #1236, #1389 and #1434.
2017-04-06Merge pull request #1432 from topecongiro/parse-configNick Cameron-7/+8
Print error and usage when decoding config file failed
2017-04-03Change return type of 'from_toml' from 'Config' to 'Result<Config>'topecongiro-7/+8
Closes #1426.
2017-04-03Merge pull request #1430 from fintelia/stdin_linesNick Cameron-10/+18
The --file_lines argument now supports "stdin"
2017-03-31Warn about extra files listed in file_lines argumentJonathan Behrens-0/+11
2017-03-30--file_lines argument now supports "stdin"Jonathan Behrens-11/+8
2017-03-30Implemented support for workspacesEmil Gardström-16/+96
closes rust-lang-nursery/rustfmt#1244
2017-03-28test falloutNick Cameron-35/+8
2017-03-28fallout - source reformattingNick Cameron-3/+11
2017-03-28Source formatting falloutNick Cameron-6/+12
2017-03-22Test and source falloutNick Cameron-1/+4
2017-03-07Formatting falloutNick Cameron-5/+20
Also fixes a minor bug when we break a line after `if` and used to leave a trailing space
2017-02-23more falloutNick Cameron-5/+5
2017-02-23test falloutNick Cameron-8/+8
2017-02-13Don't print config file by default (#1313)Casey Rodarmor-7/+12
Supress `Using rusftmt config file...` messages unless the --verbose flag is given.
2017-01-25Process build scriptsIvan Ukhov-1/+3
2016-12-16Recognize "rlib" and "cdylib" crates (#1238)Jason Dusek-1/+1
Addresses #828 and https://github.com/lunaryorn/emacs-module.rs/issues/4 and probably numerous others.
2016-11-21update Serde, etc.Nick Cameron-12/+7
Lots of changes to how closures work
2016-11-02cargo-fmt processes bench, test, example filesMason Smith-11/+11
2016-08-29Run clippysinkuu-7/+7
2016-08-01Multiple config file names feature (#1101)Daniel Campoverde-11/+15
* Add multiple configuration file names feature * Add '.rustfmt.toml' in README file * Clean up configuration file code * Make config file names constant * Use only one blank line
2016-07-04Merge pull request #1084 from johannhof/rustfmt-not-foundNick Cameron-1/+11
Show more helpful error if rustfmt is not in PATH.
2016-07-04Show more helpful error if rustfmt is not in PATH.Johann Hofmann-1/+11
This fixes #1071.
2016-07-04rustupNick Cameron-2/+1
2016-06-21Return failure exit code on found diffs (fix #906)Johann Hofmann-0/+3
This changes rustfmt to return exit code 4 when run with write mode diff and differences between the formatted code and the original code are found. Useful for CI to make sure your contributors actually ran rustfmt.
2016-06-12Include git commit and worktree status in version output (#1060)Kamal Marhubi-5/+13
This will help in debugging issues as rustfmt gets more users. If the working tree is clean, output looks like $ target/debug/rustfmt -V 0.5.0 (9f5ed3b) If the working tree is dirty, output looks like $ target/debug/rustfmt -V 0.5.0 (9f5ed3b worktree dirty) If git is unavailable, output looks like $ target/debug/rustfmt -V 0.5.0 (git commit unavailable) To avoid rebuilds on changing tests, the build script will only rerun if files under src/ are changed. This means the actual git status may show changed files and this would not show up in the version. This should not be an issue as files not in src/ should not affect the build output.
2016-05-31rustfmt: Add option to specify line ranges for formattingKamal Marhubi-5/+21
This commit adds the `--experimental-file-lines` option to rustfmt. This allows specifying line ranges to format from the command line. Refs #434
2016-04-22Change defaults and update tests and sourceNick Cameron-15/+15
New defaults are `Tabbed` for `chain_indent` and `chain_base_indent`, and `5` for `closure_block_indent_threshold`.
2016-04-22TestsNick Cameron-10/+7
2016-04-16rustfmt: Parse options once instead of once per file argument (#944)Kamal Marhubi-19/+36
`update_config()` was parsing the `write-mode` option once for each file argument. This commit parses them once up front into a `CliOptions` struct, which is then applied to the config before calling `run()`.
2016-04-15return non-zero exit code if there were errorsAleksey Kladov-6/+22
2016-04-10rustfmt: Simplify match in project file lookup loopKamal Marhubi-8/+6
This commit changes the match in `lookup_project_file` to use pattern guards.
2016-04-10rustfmt: Make error handling more idiomaticKamal Marhubi-50/+35
This commit replaces the `Operation::InvalidInput` variant with `Result`, and uses the `try!()` macro instead of explicit matching.
2016-04-10rustfmt: Move getopts::Options creation to its own functionKamal Marhubi-1/+7
2016-04-06use std::error instead std::outSrinivas Reddy Thatiparthy-9/+1
2016-04-05Merge pull request #897 from matklad/refactor-runNick Cameron-3/+3
Refactor run family of functions
2016-04-04Fix. rustfmt write to stderr instead stdout0x0G-4/+4
Fix. rustfmt write to stderr instead stdout
2016-04-02refactor: unify run and run_from_stdinAleksey Kladov-3/+3
2016-03-29minor: use enum instead of pair of booleansAleksey Kladov-14/+23
This is a bit more typing, but statically forbids using both verbose and quiet
2016-03-29cargo-fmt: don't return zero on failureAleksey Kladov-19/+34
2016-03-11Use braces, not parens, for macro defJason Dusek-2/+2
2016-03-11Align argumentsJason Dusek-2/+2
2016-03-11Write non-output to stderr when there is outputJason Dusek-2/+11
2016-03-02rustfmt: Use struct-like enum variants for OperationKamal Marhubi-10/+24