Alex Macleod
6edf0b4f36
Ignore unfulfilled_lint_expectations in metadata collection
2022-05-09 20:40:37 +01:00
Alex Macleod
a96bc7af12
dogfood: allow unknown lints when not running with internal
feature
2022-04-22 13:15:11 +01:00
Cameron Steffen
4a54933845
Merge dogfood tests
...
The two dogfood tests cannot be run concurrently since they use the same
target directory.
2022-01-10 17:08:22 -06:00
Cameron Steffen
920e9f0c4b
Move workspace test
2022-01-10 17:08:22 -06:00
Cameron Steffen
51dbbf3c4c
Refactor test utils
2022-01-10 15:22:17 -06:00
Cameron Steffen
e66ecf6f0e
Run dogfood on windows
...
I believe this is possible as of rust-lang/rust-clippy#7631
2022-01-10 14:18:41 -06:00
Cameron Steffen
e2ce4f9462
Combine internal features in clippy_lints
2022-01-09 18:35:12 -06:00
Cameron Steffen
9e08e7f631
Remove special dogfood target
2021-09-08 14:07:03 -05:00
Cameron Steffen
e3b171dcf0
Use relative exe paths
2021-09-08 14:07:03 -05:00
Cameron Steffen
5d3fc6fc08
Deny warnings in test modules
2021-09-08 08:21:06 -05:00
flip1995
6c5d199d57
Update deploy CI
...
This updates all the deploy scripts and the deploy workflow.
The deploy workflow now runs the metadata collector to collect the lint
documentation. It also changes the files that are checked out in the
deploy workflow from master and adds an explanation why we have to do
this.
2021-07-28 14:16:31 +02:00
Nadir Fejzic
f7af8bf2c1
Handle --no-deps
flag same as --fix
flag.
...
As proposed in the pull request thread, there is some inconsistency in
handling the `--no-deps` flag which requires `--` before it, and
`--fix` flag which does not.
In this commit the `--no-deps` flag does not need the `--` anymore.
However, it can still be used that way: `cargo clipyy -- --no-deps`.
2021-07-27 11:13:42 +02:00
xFrednet
e3a1ae7bfe
Adding the ability to invalidate caches to force metadata collection
2021-05-20 22:30:49 +02:00
xFrednet
0d4604dc05
Added cargo collect-metadata
as a alias for the metadata collection lint
2021-05-13 01:41:22 +02:00
xFrednet
c1fa1102d4
ENABLE_METADATA_COLLECTION env-value to disable default metadata collection
2021-05-05 18:38:26 +02:00
xFrednet
4fc960301b
Metadata collection: Rounding up the implementation
2021-05-05 18:38:26 +02:00
xFrednet
637751ff62
Metadata collection lint: Basic lint collection
...
WIP-2021-02-01
WIP-2021-02-01
WIP-2021-02-13
2021-05-05 18:34:24 +02:00
bors
d0d5232c72
Auto merge of #6834 - hyd-dev:clippy-args, r=phansch,flip1995,oli-obk
...
Let Cargo track CLIPPY_ARGS
This PR makes `clippy-driver` emit `CLIPPY_ARGS` in its `dep-info` output.
Just like #6441 , this allows this workflow to work:
```shell
cargo clippy # warning: empty `loop {}` wastes CPU cycles
cargo clippy -- -A clippy::empty_loop # no warnings emitted
```
But without rebuilding all dependencies.
cc https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/CLIPPY_ARGS.20is.20not.20tracked.20by.20Cargo/near/228599088
changelog: Cargo now re-runs Clippy if arguments after `--` provided to `cargo clippy` are changed.
2021-03-08 13:18:39 +00:00
hyd-dev
2d53b6b824
Move test_no_deps_ignores_path_deps_in_workspaces()
out of dogfood_subprojects()
2021-03-08 18:29:36 +08:00
flip1995
5ebe6d3234
Fix dogfood test
...
Since clippy cannot be a workspace, we have to check the sub-crates separately
2021-03-05 11:10:29 +01:00
hyd-dev
03e72d5446
Let Cargo track CLIPPY_ARGS
2021-03-04 03:29:21 +08:00
Cameron Steffen
aef6dc23ee
Add package arguments to dogfood test
...
This is necessary after migrating to RUSTC_WORKSPACE_WRAPPER.
2021-02-26 12:12:33 -06:00
Philipp Krones
7fa1d78c89
Revert "Pass Clippy args also trough RUSTFLAGS"
2020-12-22 19:17:59 +01:00
Eduardo Broto
cc9695543e
Pass Clippy args also trough RUSTFLAGS
2020-12-13 15:43:20 +01:00
bors
a2d99259a4
Auto merge of #6188 - ebroto:primary_package, r=flip1995
...
Add --no-deps option to avoid running on path dependencies in workspaces
Since rust-lang/cargo#8758 has hit nightly, this allows us to address the second bullet point and [the concern related to `--fix`](https://github.com/rust-lang/cargo/issues/8143#issuecomment-619289546 ) in the [RUSTC_WORKSPACE_WRAPPER tracking issue](https://github.com/rust-lang/cargo/issues/8143 ).
As a reminder stabilizing that env var will solve #4612 (Clippy not running after `cargo check` in stable) and would allow to stabilize the `--fix` option in Clippy.
changelog: Add `--no-deps` option to avoid running on path dependencies in workspaces
Fixes #3025
2020-12-09 15:37:20 +00:00
Matthias Krüger
252083f7e0
address review comments and rebase
...
ci: always build with internal lints
group up internal lints in lib.rs
dogfood: we already pass --all-features, no need to enable internal-lints again
2020-11-29 23:43:23 +01:00
Matthias Krüger
2838b04487
add internal-lints feature to enable clippys internal lints (off by default)
2020-11-29 21:07:43 +01:00
Eduardo Broto
0387981f2b
Add --no-deps command-line argument
2020-11-27 17:41:50 +01:00
Philipp Hansch
9b4ceee593
integration tests: Replace lazy_static with SyncLazy
2020-10-06 08:20:18 +02:00
Lzu Tao
9eb913a7e2
Fix error E0460 when compiled on Rustc repo
2020-02-09 19:02:27 +07:00
Lzu Tao
c4b4dd200c
Use lazy_static
2020-02-05 16:13:55 +01:00
Lzu Tao
47abd0a217
Fix dogfood to use cargo mod too
2020-02-05 21:55:03 +07:00
Matthias Krüger
a1ecf39442
tests: dogfood: run tests with debuginfo=0 reducing dogfood target dir size even further.
2019-09-11 21:29:07 +02:00
Matthias Krüger
34dc07863d
tests: execute dogfood tests with incremental compilation disabled
...
reduces target/ dir size of when "cago test"ing by around 2 gigs.
2019-09-11 21:29:00 +02:00
flip1995
ce2a7b0160
Disable dogfood on windows for faster build time on travis
2019-07-14 15:21:50 +02:00
Jane Lusby
0df6564d95
use clippy-preview instead of clippy in cargo
2019-04-30 18:29:25 -07:00
Michael Wright
94a6eb0695
Fix dogfood tests on Appveyor
...
This introduces a work-around for a bug in rustup.rs when excuting
cargo from a custom toolchain. Instead of trusting rustup to
invoke cargo from one of the release channels we just invoke
nightly cargo directly.
2019-01-26 11:10:13 +02:00
Philipp Hansch
38d4ac7cea
Remove all copyright license headers
...
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2019-01-08 21:46:39 +01:00
Matthias Krüger
a9509eb598
Revert "Merge pull request #3257 from o01eg/remove-sysroot"
...
This reverts commit 041c49c1ed
, reversing
changes made to 1df5766cbb
.
2018-12-14 21:42:01 +01:00
O01eg
5113de90d1
Add sysroot gettinh code to dogfood tests.
2018-12-06 13:21:45 +03:00
Wayne Warren
0442bb9ce0
Don't change current working directory of cargo tests
2018-12-05 18:18:17 -06:00
Wayne Warren
87d517df5d
Use cargo's "PROFILE" envvar and set CLIPPY_DOGFOOD
2018-12-05 18:18:17 -06:00
Wayne Warren
66251c3ece
Use dogfood_runner for deterministic test ordering
2018-12-05 18:18:17 -06:00
Wayne Warren
72247d8e2e
Fix dogfood tests.
2018-12-05 18:18:17 -06:00
flip1995
2953ae0702
Run rustfmt on the tests
2018-11-27 21:11:50 +01:00
Matthias Krüger
df7cff31dc
clippy: fix pedantic warnings and run clippy::pedantic lints on the codebase.
...
Turn on pedantic lints in dogfood and base tests.
needless_bool: fix clippy::items-after-statements
redundant_pattern_matching: fix clippy::similar-names
mods.rs: fix clippy::explicit-iter-loop
returns.rs: allow clippy::cast-possible-wrap
Fixes #3172
2018-11-02 12:16:43 +01:00
Manish Goregaokar
e9c025ea70
Add license header to Rust files
2018-10-06 09:43:08 -07:00
flip1995
14335f372b
Disable dogfood until rust-lang-nursery/rustup.rs#1499 is merged
2018-09-30 12:59:15 +02:00
Matthias Krüger
41d3df7321
tests: dogfood: extend to run with --all-features and clippy::internal enabled.
...
Run it on rustc_tools_util and clippy_dev as well.
2018-09-26 12:32:20 +02:00
Michael Wright
6fc9d90b60
Re-enable dogfood test on Windows
...
This should work now that dogfood uses a separate output directory.
2018-04-03 06:22:42 +02:00