Philipp Hansch
d8166bf141
Travis: Add rustc sysroot bin to PATH for windows build
2018-12-02 14:33:19 +01:00
flip1995
4e0938d349
Let travis run cargo fmt --all -- --check
2018-11-27 21:11:05 +01:00
Philipp Hansch
90f31e21ab
RIIR update lints: Add check mode (update_lints.py rewrite complete)
...
This finishes up the rewrite of `update_lints.py` in Rust. More
specifically, this
* adds the `--check` flag and handling to clippy_dev
* tracks file changes over the different calls to `replace_region_in_file`
* only writes changes to files if the `--check` flag is *not* used
* runs `./util/dev update_lints --check` on CI instead of the old script
* replaces usage of the `update_lints.py` script with an error
`./util/dev update_lints` behaves 99% the same as the python script.
The only difference that I'm aware of is an ordering change to
`clippy_lints/src/lib.rs` because underscores seem to be sorted
differently in Rust and in Python.
🏁
2018-11-05 07:18:47 +01:00
bors[bot]
a07c271559
Merge #3399
...
3399: RIIR update lints: Generate modules section and lint group sections r=flip1995 a=phansch
This adds the last missing parts of the generating code.
cc #2882
Co-authored-by: Philipp Hansch <dev@phansch.net>
2018-11-03 19:11:35 +00:00
Philipp Hansch
6e3320c7ef
Test clippy_dev on CI and fix test
2018-11-03 10:58:45 +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
Matthias Krüger
a90084d587
slightly simplify integration tests
2018-10-27 10:54:46 +02:00
Matthias Krüger
d6ca12a70d
simplify ci base-tests
2018-10-26 20:00:43 +02:00
Philipp Hansch
f5a38f2323
Only run markdown linter on linux
...
Because:
* There's no need to run it on more than one platform
* It doesn't work on windows
2018-10-12 08:39:55 +02:00
Manish Goregaokar
23e5e24f52
Add license header to other files
2018-10-06 09:43:08 -07:00
Michael Wright
c52b33decb
Make travis check lint list
2018-09-19 07:05:36 +02:00
flip1995
146b25e39b
Also run internal lints on the code base
2018-09-12 01:33:28 +02:00
Matthias Krüger
a14155088b
rustc_tools_util: add test
2018-09-07 19:18:45 +02:00
Matthias Krüger
fa11aad92a
print git commit hash and commit date in version output
...
clippy 0.0.212 (964fcbe0 2018-09-06)
2018-09-06 14:45:12 +02:00
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer
dc164f4c46
Merge pull request #2985 from phansch/riir_update_lints
...
update_lints rewrite: Add structure and --print-only
2018-09-06 09:24:26 +02:00
Philipp Hansch
be995dc0e8
Run clippy on clippy_dev, too
2018-09-03 22:20:36 +02:00
Philipp Krones
4139207956
Update travis integration tests to tool_lints
...
`clippy_pedantic` -> `clippy::pedantic`
`clippy_nursery` -> `clippy::nursery`
2018-09-03 10:52:42 +02:00
Philipp Hansch
f3839f0c1a
Fix clippy -> clippy::all warning in CI
2018-09-03 08:03:05 +02:00
Corey Farwell
05f637cf88
Make clippy_lints::{utils,consts} modules private, remove unused items.
2018-08-28 21:32:20 -05:00
Matthias Krüger
a2343bfe7f
integration tests: add more clippy warnings for greater coverage
...
integration/base tests: add a few code comments
2018-07-30 00:11:58 +02:00
Matthias Krüger
e0214397bd
travis: run tests of external projects with --all-targets --all-features -- --cap-lints warn
2018-07-30 00:11:58 +02:00
Manish Goregaokar
e58eb520a4
Fix travis build by removing cargo-clippy
2018-07-16 14:14:37 -07:00
Mateusz Mikuła
cc8c52c961
Update integration test
2018-05-30 11:20:34 +02:00
Philipp Hansch
4a460ab6c3
Use full backtrace
2018-05-17 22:16:15 +02:00
Philipp Hansch
b4482ce381
Make build output cleaner
2018-05-17 21:40:23 +02:00
Philipp Hansch
569c138333
s/internal error/internal compiler error/
2018-05-16 20:08:46 +02:00
Philipp Hansch
3314c5fda7
No -e in integration_tests
...
Because that makes the script stop early and not print any clippy error
output.
2018-05-16 19:54:30 +02:00
Philipp Hansch
dd0ed5dccc
Clone into checkout directory and cd into it
2018-05-16 19:21:57 +02:00
Philipp Hansch
9e6dc8d2d5
Add exec bit, add set -ex to ci test files
2018-05-16 18:55:21 +02:00
Philipp Hansch
cc9122777b
Add integration tests
2018-05-16 09:10:35 +02:00