mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
Merge pull request #3412 from matthiaskrgr/readme_2
readme: tell how to install clippy on travis from git if it is not shipped with a nightly.
This commit is contained in:
commit
dec389a5ee
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
@ -108,6 +108,18 @@ script:
|
|||
# etc.
|
||||
```
|
||||
|
||||
It might happen that clippy is not available for a certain nightly release.
|
||||
In this case you can try to conditionally install clippy from the git repo.
|
||||
|
||||
```yaml
|
||||
language: rust
|
||||
rust:
|
||||
- nightly
|
||||
before_script:
|
||||
- rustup component add clippy-preview --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
|
||||
# etc
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
Some lints can be configured in a TOML file named `clippy.toml` or `.clippy.toml`. It contains a basic `variable = value` mapping eg.
|
||||
|
|
Loading…
Reference in a new issue