ljedrz
|
8dac8a6ba4
|
HirIdify some lints
|
2019-02-24 20:49:43 +01:00 |
|
Matthias Krüger
|
e9e0a7e3bd
|
rustup https://github.com/rust-lang/rust/pull/57726
|
2019-01-27 01:42:34 +01:00 |
|
Grzegorz Bartoszek
|
0f5c43a722
|
Added "make_return" and "blockify" convenience methods in Sugg and used them in "needless_bool".
|
2019-01-22 14:07:53 +01:00 |
|
bors
|
54978a571c
|
Auto merge of #3680 - g-bartoszek:needless-bool-else-if-brackets, r=oli-obk
needless bool lint suggestion is wrapped in brackets if it is an "els…
…e" clause of an "if-else" statement
|
2019-01-21 11:47:06 +00:00 |
|
Grzegorz Bartoszek
|
34785a12f4
|
formatting fix
|
2019-01-21 12:04:25 +01:00 |
|
Oliver Scherer
|
4532073a29
|
Update clippy_lints/src/needless_bool.rs
Co-Authored-By: g-bartoszek <grzegorz.bartoszek@thaumatec.com>
|
2019-01-21 11:41:33 +01:00 |
|
Grzegorz Bartoszek
|
0a0792e535
|
formatting fix
|
2019-01-21 11:14:34 +01:00 |
|
Grzegorz Bartoszek
|
adce3ef966
|
needless bool lint suggestion is wrapped in brackets if it is an "else" clause of an "if-else" statement
|
2019-01-20 16:15:00 +01:00 |
|
Michael Wright
|
f51f0178dd
|
Fixed breakage due to rust-lang/rust#57489
|
2019-01-20 12:21:30 +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 |
|
Konrad Borowski
|
3f62fc3a7e
|
Remove crate:: prefixes from crate paths
This is somewhat misleading, as those are actually external crates,
and don't need a crate:: prefix.
|
2018-12-29 16:05:49 +01:00 |
|
Lucas Lois
|
de42dfbab7
|
Changes lint sugg to bitwise and operator &
|
2018-12-17 15:32:24 -03:00 |
|
Lucas Lois
|
bc48890b47
|
Implements lint for order comparisons against bool
|
2018-12-16 21:43:32 -03:00 |
|
Lucas Lois
|
3930148059
|
Adds inequality cases to bool comparison lint
The lint now checks cases like `y != true`
|
2018-12-03 16:32:11 -03:00 |
|
flip1995
|
63fa5d24e1
|
Fix some formatting issues
|
2018-11-27 21:49:09 +01:00 |
|
flip1995
|
1751d2496d
|
Run rustfmt on clippy_lints
|
2018-11-27 21:14:15 +01:00 |
|
flip1995
|
4e74eef6e9
|
Add applicability level to (nearly) every span_lint_and_sugg function
|
2018-11-27 15:29:23 +01:00 |
|
flip1995
|
9096269610
|
Add Applicability::Unspecified to span_lint_and_sugg functions
|
2018-11-27 15:29:23 +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 |
|
Giorgio Gambino
|
c0c1f1f7fa
|
Fix #3335 rev2: bool_comparison triggers 3 times on same code
|
2018-10-29 22:23:45 +01:00 |
|
Giorgio Gambino
|
7cfde9cfa9
|
Fix #3335: bool_comparison triggers 3 times on same code
|
2018-10-28 15:37:39 +01:00 |
|
Manish Goregaokar
|
e9c025ea70
|
Add license header to Rust files
|
2018-10-06 09:43:08 -07:00 |
|
Eduard-Mihai Burtescu
|
9219fc6c5c
|
Reintroduce extern crate for non-Cargo dependencies.
|
2018-09-15 11:10:51 +03:00 |
|
flip1995
|
8c07772dbb
|
Switch to declare_tool_lint macro
|
2018-08-29 11:08:29 -07:00 |
|
Oliver Schneider
|
d99cea0f16
|
Update imports and rustup
|
2018-08-28 13:13:42 +02:00 |
|
Manish Goregaokar
|
76321d3300
|
codemap -> source_map
https://github.com/rust-lang/rust/pull/52953
|
2018-08-19 19:06:54 -07:00 |
|
Manish Goregaokar
|
5d74e2096b
|
Remove import of rustc
|
2018-07-19 00:53:23 -07:00 |
|
csmoe
|
8cf463fe93
|
StmtKind
|
2018-07-16 11:48:33 +02:00 |
|
csmoe
|
5d4102ee78
|
BinOpKind
|
2018-07-16 11:46:37 +02:00 |
|
csmoe
|
1bd17e4fa2
|
ExprKind
|
2018-07-16 11:46:37 +02:00 |
|
Mateusz Mikuła
|
424a33720d
|
Run rustfix
|
2018-05-30 10:15:50 +02:00 |
|
Mateusz Mikuła
|
f0c823a85e
|
Rustup to 2018-05-16
|
2018-05-17 11:21:15 +02:00 |
|
Oliver Schneider
|
c1bbc173da
|
Address review comments
|
2018-03-29 13:41:53 +02:00 |
|
Oliver Schneider
|
d6344c47e3
|
Categorize all the lints!
|
2018-03-28 15:24:26 +02:00 |
|
Oliver Schneider
|
e4524ac4de
|
Run nightly rustfmt
|
2017-09-05 12:39:27 +02:00 |
|
Oliver Schneider
|
b25b6b3355
|
Rustfmt
|
2017-08-14 09:43:26 +02:00 |
|
Oliver Schneider
|
72b2e9539f
|
Get rid of double double colons
|
2017-07-24 16:28:41 +02:00 |
|
Seo Sanghyeon
|
745233f3ab
|
Use span_lint_and_sugg
|
2017-06-22 03:04:04 +09:00 |
|
Oliver Schneider
|
5842463562
|
Run rustfmt
|
2017-04-12 11:06:32 +02:00 |
|
Enrico Schmitz
|
8aef64dfe8
|
Fix src/needless_bool.rs by using ExprBlock(block) = then
|
2017-03-31 23:46:08 +02:00 |
|
Enrico Schmitz
|
8f9fb97eb6
|
First try for a fix for rustc 1.18.0-nightly (5c94997b6 2017-03-30
|
2017-03-31 19:23:35 +02:00 |
|
Oliver Schneider
|
713da45906
|
apply rustfmt
|
2017-01-17 19:30:32 +01:00 |
|
Oliver Schneider
|
ed9d71f2c9
|
remove nondeterminism by adjusting thresholds
|
2016-12-21 10:25:14 +01:00 |
|
Oliver Schneider
|
4a4e1ea2c5
|
also run rustfmt on clippy-lints
|
2016-12-20 18:21:30 +01:00 |
|
Oliver Schneider
|
778ce4dfd3
|
update to the rust-PR that unblocks clippy
|
2016-12-07 13:13:40 +01:00 |
|
Oliver Schneider
|
c6e2967b9c
|
rustup to rustc 1.15.0-dev (3b248a184 2016-12-05)
|
2016-12-06 11:32:21 +01:00 |
|
Georg Brandl
|
b91c1a509e
|
Make lint descriptions short and to the point; always fitting the column "triggers on".
|
2016-08-07 08:09:26 +02:00 |
|
Georg Brandl
|
3b5ff0f813
|
Make the lint docstrings more consistent.
|
2016-08-07 08:06:19 +02:00 |
|
mcarton
|
caa76e119b
|
Improve docs
|
2016-07-16 00:26:54 +02:00 |
|
mcarton
|
bf513229b1
|
Address PR's comments
|
2016-07-06 15:49:49 +02:00 |
|
mcarton
|
9b79b1022c
|
Fix suggestions for needless_bool
|
2016-07-04 01:43:47 +02:00 |
|
mcarton
|
350f3a7fe5
|
Rustup to *1.11.0-nightly (7d2f75a95 2016-06-09)*
|
2016-06-10 20:08:55 +02:00 |
|
Oliver Schneider
|
bf227f4729
|
split clippy into lints, plugin and cargo-clippy
|
2016-05-27 13:03:58 +02:00 |
|