Skip to content
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

Enable more clippy lints in arrow #1315

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Enable more clippy lints in arrow #1315

merged 1 commit into from
Feb 16, 2022

Conversation

gsserge
Copy link
Contributor

@gsserge gsserge commented Feb 15, 2022

Which issue does this PR close?

This is part of #1255

Rationale for this change

It's beneficial to run clippy as strict as possible.

What changes are included in this PR?

This PR enables a few clippy and compiler lints in the arrow crate and fixes the related code.

Are there any user-facing changes?

No.

@github-actions github-actions bot added the arrow Changes to the arrow crate label Feb 15, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #1315 (7ece71c) into master (747e72a) will increase coverage by 0.00%.
The diff coverage is 33.33%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1315   +/-   ##
=======================================
  Coverage   83.01%   83.02%           
=======================================
  Files         180      180           
  Lines       52810    52810           
=======================================
+ Hits        43840    43843    +3     
+ Misses       8970     8967    -3     
Impacted Files Coverage Δ
arrow/src/json/reader.rs 83.39% <33.33%> (ø)
arrow/src/array/transform/mod.rs 84.65% <0.00%> (+0.13%) ⬆️
parquet_derive/src/parquet_field.rs 66.21% <0.00%> (+0.22%) ⬆️
arrow/src/datatypes/datatype.rs 66.80% <0.00%> (+0.39%) ⬆️

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 747e72a...7ece71c. Read the comment docs.

@gsserge
Copy link
Contributor Author

gsserge commented Feb 15, 2022

It's kinda weird that the "Docs are clean" job with --all-features triggers warnings (non_camel_case_types in this case) that are not caught by the proper clippy job.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it looks good -- thank you @gsserge

cc @paddyhoran @jhorstmann

@@ -247,7 +247,7 @@ jobs:
run: |
export CARGO_HOME="/github/home/.cargo"
export CARGO_TARGET_DIR="/github/home/target"
cargo clippy --features test_common --features prettyprint --features=async --all-targets --workspace -- -D warnings -A clippy::redundant_field_names
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@@ -27,6 +27,7 @@ pub mod writer;
#[allow(clippy::extra_unused_lifetimes)]
#[allow(clippy::redundant_static_lifetimes)]
#[allow(clippy::redundant_field_names)]
#[allow(non_camel_case_types)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alamb alamb changed the title Enable more lints Enable more clippy lints in arrow Feb 16, 2022
@alamb alamb merged commit c26a0a1 into apache:master Feb 16, 2022
@gsserge gsserge deleted the more_lints branch February 16, 2022 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants