My first contribution to the eco-system: a new clippy lint!
I'm really rather happy to be able to contribute something back to the community! So far it's only been a few minor bugfixes in smaller projects, but finally I've been able to contribute to something relevant. I hope to be able to do so again, soon!
About the lint: https://rust-lang.github.io/rust-clippy/master/index.html#arbitrary\_source\_item\_ordering and its PR https://github.com/rust-lang/rust-clippy/pull/13376
What it does
Confirms that items are sorted in source files as per configuration.
Why restrict this?
Keeping a consistent ordering throughout the codebase helps with working as a team, and possibly improves maintainability of the codebase. The idea is that by defining a consistent and enforceable rule for how source files are structured, less time will be wasted during reviews on a topic that is (under most circumstances) not relevant to the logic implemented in the code. Sometimes this will be referred to as “bikeshedding”.
Now, enough of venting my own joy - I propose two topics for this thread:
- What have been your first or most significant contributions to the Rust community or OSS in general?
- Would you consider switching on this lint?