mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-17 07:50:33 +08:00
docs: update CONTRIBUTING.md to include guidelines for Rust code formatting and quality checks
This commit is contained in:
parent
29fd97e402
commit
b6db209670
@ -96,6 +96,24 @@ pnpm portable
|
|||||||
|
|
||||||
## Contributing Your Changes
|
## Contributing Your Changes
|
||||||
|
|
||||||
|
#### Before commit your changes
|
||||||
|
|
||||||
|
If you changed the rust code, it's recommanded to execute code style formatting and quailty checks.
|
||||||
|
|
||||||
|
1. Code style formatting
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ clash-verge-rev: cd src-tauri
|
||||||
|
$ clash-verge-rev/src-tauri: cargo fmt
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Code quailty checks
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ clash-verge-rev: pnpm clippy
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Once you have made your changes:
|
Once you have made your changes:
|
||||||
|
|
||||||
1. Fork the repository.
|
1. Fork the repository.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user