-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor and polish the source code of the library (#29)
this PR is all about refactoring the *formatting* library and executable :yum: ## details > **Note** > i've made this PR such that it's easy to [review commit by commit](https://github.com/nushell/nufmt/pull/29/commits) and there are explaination in all the commit bodies 👌 - rename the library to `nu_formatter` - link to the README in the doc of `nufmt` - make *Clippy* run on all the targets, e.g. including benchmarks - remove (almost) all `print` in favor of `log` - fix some "*hacks*" in the code (`cli.files`, `#[cfg(windows)]` and exit codes) - simplify the benchmarks - rename some functions - remove useless comments and simplify the documentation when possible - relax *Clippy* on missing documentation - do not make all items of `nu_formatter` public
- Loading branch information
Showing
9 changed files
with
86 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.