mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 00:47:16 +00:00
Enable deny-warnings feature everywhere in CI
This commit is contained in:
parent
1d3ec29880
commit
d51a80c57e
6 changed files with 16 additions and 3 deletions
|
@ -15,9 +15,9 @@ fi
|
||||||
cargo build --features deny-warnings
|
cargo build --features deny-warnings
|
||||||
cargo test --features deny-warnings
|
cargo test --features deny-warnings
|
||||||
|
|
||||||
(cd clippy_lints && cargo test)
|
(cd clippy_lints && cargo test --features deny-warnings)
|
||||||
(cd rustc_tools_util && cargo test)
|
(cd rustc_tools_util && cargo test --features deny-warnings)
|
||||||
(cd clippy_dev && cargo test)
|
(cd clippy_dev && cargo test --features deny-warnings)
|
||||||
|
|
||||||
# make sure clippy can be called via ./path/to/cargo-clippy
|
# make sure clippy can be called via ./path/to/cargo-clippy
|
||||||
(
|
(
|
||||||
|
|
|
@ -11,3 +11,6 @@ regex = "1"
|
||||||
lazy_static = "1.0"
|
lazy_static = "1.0"
|
||||||
shell-escape = "0.1"
|
shell-escape = "0.1"
|
||||||
walkdir = "2"
|
walkdir = "2"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
deny-warnings = []
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
|
||||||
|
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
extern crate clippy_dev;
|
extern crate clippy_dev;
|
||||||
extern crate regex;
|
extern crate regex;
|
||||||
|
|
|
@ -9,4 +9,8 @@ license = "MIT OR Apache-2.0"
|
||||||
keywords = ["rustc", "tool", "git", "version", "hash"]
|
keywords = ["rustc", "tool", "git", "version", "hash"]
|
||||||
categories = ["development-tools"]
|
categories = ["development-tools"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
deny-warnings = []
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
|
Loading…
Reference in a new issue