Skip to content

Commit

Permalink
Merge pull request #3412 from matthiaskrgr/readme_2
Browse files Browse the repository at this point in the history
readme: tell how to install clippy on travis from git if it is not shipped with a nightly.
  • Loading branch information
flip1995 authored Nov 26, 2018
2 parents 1e2291c + 2a1c8b1 commit dec389a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dec389a

Please sign in to comment.