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

cosmrs: enable more lints and test rustdoc in CI #238

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

tony-iqlusion
Copy link
Member

Enables the following lints:

  • clippy::checked_conversions
  • clippy::panic
  • clippy::panic_in_result_fn
  • clippy::unwrap_used
  • missing_docs
  • trivial_casts
  • trivial_numeric_casts
  • rust_2018_idioms
  • unused_lifetimes
  • unused_import_braces

Also adds a doc job in CI that tests that rustdoc builds successfully without warnings.

@tony-iqlusion
Copy link
Member Author

Generally these lints encourage writing panic-free code.

I added the missing_docs lint after being surprised it was off in #234.

Enables the following lints:

- `clippy::checked_conversions`
- `clippy::panic`
- `clippy::panic_in_result_fn`
- `clippy::unwrap_used`
- `missing_docs`
- `trivial_casts`
- `trivial_numeric_casts`
- `rust_2018_idioms`
- `unused_lifetimes`
- `unused_import_braces`

Also adds a `doc` job in CI that tests that rustdoc builds successfully
without warnings.
@tony-iqlusion tony-iqlusion force-pushed the cosmrs/additional-lints-and-doc-tests branch from 9630db3 to f5b0074 Compare June 1, 2022 16:31
@tony-iqlusion tony-iqlusion merged commit bae0a9b into main Jun 1, 2022
@tony-iqlusion tony-iqlusion deleted the cosmrs/additional-lints-and-doc-tests branch June 1, 2022 16:46
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.

1 participant