-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add local CI instructions to CONTRIBUTING.md
- Loading branch information
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
### Pull Requests | ||
## Pull Requests | ||
|
||
Running `cargo clippy` on the branch to be merged must show no errors. | ||
### Continuous Integration (CI) | ||
|
||
All pull requests must pass a CI check before being merged. You can check if CI will pass locally with | ||
```shell | ||
cargo fmt --all -- --check && cargo build --verbose && cargo clippy -- -D warnings && cargo test --verbose -- --skip sourcegen_ast --skip sourcegen_ast_nodes | ||
``` | ||
|
||
### Clippy | ||
|
||
One of the CI items is `cargo clippy`. | ||
To handle a lot of errors at the command line can use (for unix-like OS) `cargo clippy --color always &| less -R`. | ||
|
||
|