Skip to content

cargo clippy tests #352

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

Merged
merged 12 commits into from
Mar 25, 2019
Merged

cargo clippy tests #352

merged 12 commits into from
Mar 25, 2019

Conversation

spl
Copy link
Contributor

@spl spl commented Mar 22, 2019

Okay, so now I've figured out how to cargo clippy the tests (and all other targets), and these are the results. The warning type fixes are broken down into separate commits. All changes are, I think, pretty innocent.

@spl
Copy link
Contributor Author

spl commented Mar 22, 2019

One of the annoying things about clippy is that it does not visit files that it has already checked. So you can touch files to force it to see them. But I never did that with the xdv directory... until now. In the future, keep this command in mind:

$ find src tests xdv -type f -exec touch {} +; cargo clippy --all-targets --all-features

@spl
Copy link
Contributor Author

spl commented Mar 22, 2019

There are perhaps a lot of changes here. Each commit is isolated and commutative with the other commits, so you can consider them separately. I'm not sure 12 separate PRs are better than this. If prefer a different form of submission, let me know.

@spl spl mentioned this pull request Mar 22, 2019
@codecov
Copy link

codecov bot commented Mar 22, 2019

Codecov Report

Merging #352 into master will decrease coverage by <.01%.
The diff coverage is 13.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #352      +/-   ##
==========================================
- Coverage   39.61%   39.61%   -0.01%     
==========================================
  Files         135      135              
  Lines       59494    59496       +2     
==========================================
  Hits        23569    23569              
- Misses      35925    35927       +2
Impacted Files Coverage Δ
xdv/src/lib.rs 0% <0%> (ø) ⬆️
tests/executable.rs 21.83% <0%> (+0.24%) ⬆️
tests/util/mod.rs 45.19% <33.33%> (-1.81%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d69f5ff...91e3706. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Mar 22, 2019

Codecov Report

Merging #352 into master will decrease coverage by <.01%.
The diff coverage is 13.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #352      +/-   ##
==========================================
- Coverage   39.61%   39.61%   -0.01%     
==========================================
  Files         135      135              
  Lines       59494    59496       +2     
==========================================
  Hits        23569    23569              
- Misses      35925    35927       +2
Impacted Files Coverage Δ
xdv/src/lib.rs 0% <0%> (ø) ⬆️
tests/executable.rs 21.83% <0%> (+0.24%) ⬆️
tests/util/mod.rs 45.19% <33.33%> (-1.81%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d69f5ff...91e3706. Read the comment docs.

@pkgw
Copy link
Collaborator

pkgw commented Mar 25, 2019

Yeah, 12 separate PRs would probably have been a bit overkill. This was not hard to review as presented. Thanks for all your work on cleaning up the codebase!

@pkgw pkgw merged commit a82e3b4 into tectonic-typesetting:master Mar 25, 2019
@spl spl deleted the clippy-tests branch March 25, 2019 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants