Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update_lints rewrite: Add structure and --print-only #2985

Merged
merged 10 commits into from Sep 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions .gitignore
Expand Up @@ -19,6 +19,7 @@ Cargo.lock
/target
/clippy_lints/target
/clippy_workspace_tests/target
/clippy_dev/target

# Generated by dogfood
/target_recur/
Expand All @@ -33,6 +34,3 @@ helper.txt
*.iml
.vscode
.idea

# Used by the Clippy build script
min_version.txt
6 changes: 6 additions & 0 deletions Cargo.toml
Expand Up @@ -38,6 +38,11 @@ name = "clippy-driver"
test = false
path = "src/driver.rs"

[[bin]]
name = "clippy-dev"
test = false
path = "src/main.rs"

[dependencies]
# begin automatic update
clippy_lints = { version = "0.0.212", path = "clippy_lints" }
Expand All @@ -46,6 +51,7 @@ regex = "1"
semver = "0.9"

[dev-dependencies]
clippy_dev = { version = "0.0.1", path = "clippy_dev" }
cargo_metadata = "0.6"
compiletest_rs = "0.3.7"
lazy_static = "1.0"
Expand Down
1 change: 1 addition & 0 deletions ci/base-tests.sh
Expand Up @@ -19,6 +19,7 @@ cd clippy_workspace_tests && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clip
cd clippy_workspace_tests/src && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy::all && cd ../..
cd clippy_workspace_tests/subcrate && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy::all && cd ../..
cd clippy_workspace_tests/subcrate/src && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy::all && cd ../../..
cd clippy_dev && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy::all && cd ..
# test --manifest-path
PATH=$PATH:~/rust/cargo/bin cargo clippy --manifest-path=clippy_workspace_tests/Cargo.toml -- -D clippy::all
cd clippy_workspace_tests/subcrate && PATH=$PATH:~/rust/cargo/bin cargo clippy --manifest-path=../Cargo.toml -- -D clippy::all && cd ../..
Expand Down
224 changes: 224 additions & 0 deletions clippy_dev/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions clippy_dev/Cargo.toml
@@ -0,0 +1,10 @@
[package]
name = "clippy_dev"
version = "0.0.1"
authors = ["Philipp Hansch <dev@phansch.net>"]

[dependencies]
clap = "~2.32"
itertools = "0.7"
regex = "1"
lazy_static = "1.0"