Crates.io | gazebo_lint |
lib.rs | gazebo_lint |
version | 0.1.1 |
source | src |
created_at | 2021-09-30 23:15:53.656489 |
updated_at | 2021-09-30 23:18:15.438803 |
description | A linter for the Gazebo Rust library |
homepage | |
repository | https://github.com/facebookincubator/gazebo_lint |
max_upload_size | |
id | 458929 |
size | 42,429 |
The linter provides various helpful hints relating to additions from the Gazebo Library.
For example, Gazebo
added Dupe
. This linter will provide hints to use dupe
instead of clone
. e.g. when doing Arc::new(x).clone()
.
Other available hints are to "Use map" when doing xs.iter().map(f).collect()
if the types line up, and reminders to derive Dupe
when appropriate.
Gazebo lint can lint any program by adding the following to lib.rs
:
#![feature(plugin)]
#![allow(deprecated)]
#![plugin(linter)]
Unfortunately the plugin
feature is deprecated, so while useful, it is likely that linter
will stop working at some point in the future.
We will look to update the linter to use the proper alternatives if applicable when that becomes an issue.
Check the GitHub Actions are green.
Update CHANGELOG.md
with the changes since the last release. This link can help (update to compare against the last release).
Update the version numbers of the two Cargo.toml
files. Bump them by 0.0.1 if there are no incompatible changes, or 0.1.0 if there are.
Run cargo publish --dry-run --allow-dirty
, then without the --dry-run
in gazebo_lint
directory.
Create a GitHub release with v0.X.Y
, using the gazebo_lint
version as the name.
Gazebo Linter is both MIT and Apache License, Version 2.0 licensed, as found in the LICENSE-MIT and LICENSE-APACHE files.