forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fix clippy warnings * Add rustfmt.toml, fix rustfmt docker_tests module resolving * Remove excess swaps_file_lock_tests module attributes * Change rustfmt.toml, run "cargo +nightly fmt" * Add clippy checking to azure pipelines * Fix cargo clippy using, add display name for the step * Remove minor mistake * Fix build.rs clippy warnings, add fmt tool checker * Fix build.rs fmt warnings * Add clippy and rustfmt info to README * Separate common README info and CONTRIBUTING guide
- Loading branch information
1 parent
08d013c
commit 8a284f0
Showing
54 changed files
with
12,345 additions
and
8,246 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Contributing to AtomicDEX Marketmaker | ||
|
||
We welcomes contribution from everyone in the form of suggestions, bug reports, pull requests, and feedback. | ||
Please note we have a code of conduct, please follow it in all your interactions with the project. | ||
|
||
## Submitting feature requests | ||
|
||
Before uploading any changes, please make sure that the test suite passes locally before submitting a pull request with your changes. | ||
|
||
``` | ||
cargo test --all --features native | ||
``` | ||
|
||
We also use [Clippy](https://github.com/rust-lang/rust-clippy) to avoid common mistakes | ||
and we use [rustfmt](https://github.com/rust-lang/rustfmt) to make our code clear to everyone. | ||
|
||
1. Install these tools (only once): | ||
``` | ||
rustup component add rustfmt --toolchain nightly-2020-02-01 | ||
rustup component add clippy | ||
``` | ||
1. Format the code using rustfmt: | ||
``` | ||
cargo +nightly fmt | ||
``` | ||
1. Make sure there are no warnings and errors. Run the Clippy: | ||
``` | ||
cargo clippy --features native -- -D warnings | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.