-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[DNM] *: format diff #1750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DNM] *: format diff #1750
Conversation
travis-build/Makefile
Outdated
mkdir -p ${HOME}/.cargo/bin && tar xzf rustfmt-${RUSTFMT_VERSION}-linux-amd64.tar.gz -C ${HOME}/.cargo/bin --strip-components=1 | ||
# cargo install --vers =0.6.0 rustfmt || exit 0 | ||
${HOME}/.cargo/bin/rustfmt: | ||
cargo install -f rustfmt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to use a special version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only changes are formatted, so I think it's ok to just use the latest version.
Do we need to close #1749 now? @overvenus |
What about circle CI? For shell script I suggest shellcheck as linter. |
PTAL @overvenus @tennix |
LGTM |
PTAL @overvenus |
It seems that implementation of file lines is naive, let's close it for now and reopen when the feature becomes stable. |
Signed-off-by: Ray Yan <[email protected]>
This pr tries to only format the changed lines rather than anything when make format.
Note that, there is a bug in rustfmt that unrelated comment will be also formatted.