bitcoindevkit / bdk

A modern, lightweight, descriptor-based wallet library written in Rust!
Other
796 stars 284 forks source link

Have more code conventions and guidelines #1394

Open ValuedMammal opened 3 months ago

ValuedMammal commented 3 months ago

Using rustfmt means we always agree on code formatting. If rustfmt allows it, then matters of code style can be left to personal preference.

However we could benefit from defining more code conventions in CONTRIBUTING.md for the sake of consistency. Just some ideas:

Approving changes:

Use case
Facilitates code review and improves readability of the codebase

Additional context

1221

https://github.com/bitcoindevkit/bdk/pull/1203#discussion_r1510453405

notmandatory commented 3 months ago

Great suggestions!

ValuedMammal commented 3 weeks ago

Provide a reason for ignoring tests. See #1460

oleonardolima commented 3 weeks ago

Concept ACK, thanks for the suggestions!

storopoli commented 3 weeks ago

I really like this, I am totally on-board. Can we discuss this in the next dev meeting? (PS: @ValuedMammal should go first since we almost never go alphabetical descending order) Cc @nondiremanuel