Skip to content

Commit dc164f4

Browse files
authored
Merge pull request #2985 from phansch/riir_update_lints
update_lints rewrite: Add structure and --print-only
2 parents ca753c4 + 3bdc691 commit dc164f4

File tree

9 files changed

+449
-16
lines changed

9 files changed

+449
-16
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Cargo.lock
1919
/target
2020
/clippy_lints/target
2121
/clippy_workspace_tests/target
22+
/clippy_dev/target
2223

2324
# Generated by dogfood
2425
/target_recur/
@@ -33,6 +34,3 @@ helper.txt
3334
*.iml
3435
.vscode
3536
.idea
36-
37-
# Used by the Clippy build script
38-
min_version.txt

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ name = "clippy-driver"
3838
test = false
3939
path = "src/driver.rs"
4040

41+
[[bin]]
42+
name = "clippy-dev"
43+
test = false
44+
path = "src/main.rs"
45+
4146
[dependencies]
4247
# begin automatic update
4348
clippy_lints = { version = "0.0.212", path = "clippy_lints" }
@@ -46,6 +51,7 @@ regex = "1"
4651
semver = "0.9"
4752

4853
[dev-dependencies]
54+
clippy_dev = { version = "0.0.1", path = "clippy_dev" }
4955
cargo_metadata = "0.6"
5056
compiletest_rs = "0.3.7"
5157
lazy_static = "1.0"

ci/base-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ cd clippy_workspace_tests && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clip
1919
cd clippy_workspace_tests/src && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy::all && cd ../..
2020
cd clippy_workspace_tests/subcrate && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy::all && cd ../..
2121
cd clippy_workspace_tests/subcrate/src && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy::all && cd ../../..
22+
cd clippy_dev && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy::all && cd ..
2223
# test --manifest-path
2324
PATH=$PATH:~/rust/cargo/bin cargo clippy --manifest-path=clippy_workspace_tests/Cargo.toml -- -D clippy::all
2425
cd clippy_workspace_tests/subcrate && PATH=$PATH:~/rust/cargo/bin cargo clippy --manifest-path=../Cargo.toml -- -D clippy::all && cd ../..

clippy_dev/Cargo.lock

Lines changed: 224 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clippy_dev/Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[package]
2+
name = "clippy_dev"
3+
version = "0.0.1"
4+
authors = ["Philipp Hansch <[email protected]>"]
5+
6+
[dependencies]
7+
clap = "~2.32"
8+
itertools = "0.7"
9+
regex = "1"
10+
lazy_static = "1.0"

0 commit comments

Comments
 (0)