Miguel Ojeda
6b8b43c0d1
README: Add subsection on running Clippy as a rustc wrapper
...
This is useful for projects that do not use cargo.
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2021-02-24 01:54:42 +01:00
Philipp Krones
7fa1d78c89
Revert "Pass Clippy args also trough RUSTFLAGS"
2020-12-22 19:17:59 +01:00
Matthias Krüger
04d3044837
readme: remove paragraph about executing clippy via "cargo run .."
...
This most likely no longer works since we are pinning clippy on a specific nightly now.
"cargo run" would try to compile clippy with whatever version the project we want to check demands.
Also building clippy yourself to run it on a project is not really needed anymore since clippy is shipped with official rust releases.
Fixes #6489
2020-12-22 01:24:59 +01:00
Matthias Krüger
19ace28af4
readme: remove paragraph about installing clippy manually on ci, if it is missing on a nightly
...
Clippy should always be available on nightly because we are gating on it in rustcs CI.
2020-12-21 16:11:40 +01:00
Eduardo Broto
cc9695543e
Pass Clippy args also trough RUSTFLAGS
2020-12-13 15:43:20 +01:00
Eduardo Broto
192ccfb4ef
Update README.md
2020-11-27 17:41:50 +01:00
flip1995
6eb2c27bcc
Note that it is possible to omit the patch version
2020-11-26 10:15:00 +01:00
Philipp Krones
3bcc75d446
Remove mention of possibility to specify the MSRV with a tilde/caret
2020-11-26 10:01:02 +01:00
Philipp Krones
b2eb55b03e
Fix formatting in README.md
2020-11-25 20:37:32 +01:00
Suyash458
94a6832f0b
update README.md
2020-11-25 22:09:50 +05:30
Suyash458
85a17b5334
update README.md for specifying msrv
2020-11-25 21:30:34 +05:30
Cameron Steffen
fd8decee6a
Readme improvements
...
Format lint categories as a table with the default lint level.
2020-11-04 17:29:19 -06:00
Randall Mason
cf2043d4a2
Update wording to avoid code having "lint" metaphor
2020-11-03 15:59:24 -06:00
Randall Mason
9f402c991b
Clarify allow/warn/deny. Remove enable/disable.
...
Disable and enable when not specifically explained were not clear to me
as an English language speaker, but I was able to figure it out fairly
easily due to the examples having A/W, which I assumed meant `allow` and
`warn`. I removed both words to be sure it was clear as well as
extending the note on what deny means. It now includes a statement on
exactly what each word means.
2020-10-30 12:16:11 -05:00
Lotte Steenbrink
8ba18aeb69
README: sort en/disabling section, fix typos, add note
2020-10-14 16:45:36 +02:00
Frank
f4d88cbb1f
run cargo dev update_lints
2020-09-25 11:09:04 -05:00
Philipp Krones
bdc01c882e
Update Usage section of README.md
2020-07-22 18:07:33 +02:00
Matthias Krüger
081641249e
README: fix lit count line
...
It looks like after changing to "there are more than 120 lints", an older PR was merged
and resolving merge conflicts this was changed back to "there are 123 lints" causing the update-script to silently fail.
Changed back the README.md back to the new format fixes the problem.
2020-04-23 16:11:18 +02:00
Devin R
7242fa5e41
fix map import to rustc_middle
2020-04-20 06:30:01 -04:00
Devin R
2e8a2de4af
dev update_lints
2020-04-20 06:30:01 -04:00
Matthias Krüger
65bc234c5c
readme: update to cargo clippy --fix command
2020-04-16 22:19:11 +02:00
flip1995
cbdf4cc71e
Run update_lints
2020-03-31 17:24:09 +02:00
flip1995
3155eedb68
Don't use an exact lint counter anymore
2020-03-31 17:24:09 +02:00
Tomasz Miąsko
b77b219280
Lint unnamed address comparisons
2020-03-30 21:42:16 +02:00
bors
bfd11235a6
Auto merge of #5380 - lzutao:deprecate-REPLACE_CONSTS, r=phansch
...
Deprecate REPLACE_CONSTS lint
Closes #5346
changelog: Deprecate `replace_consts` lint
2020-03-30 08:03:42 +00:00
Matthias Krüger
8fbf02c8fb
readme: move "how to run single lint" instructions to "Allowing/denying lints" section.
2020-03-29 17:01:56 +02:00
Lzu Tao
d055b7d61c
Deprecate REPLACE_CONSTS lint
2020-03-29 12:59:35 +07:00
Matthias Krüger
b0de238b65
readme: explain how to run only a single lint on a codebase
2020-03-25 11:37:07 +01:00
Tim Robinson
52208f3cf3
Lint for pub(crate)
items that are not crate visible due to the visibility of the module that contains them
...
Closes #5274 .
2020-03-16 12:21:00 +00:00
Jacob Meyers
0f7f30711e
add lint on File::read_to_string and File::read_to_end
2020-03-06 09:50:49 -05:00
Devin R
597e02dcdf
warn on macro_use attr
2020-03-04 09:36:02 -05:00
ThibsG
2aa14c9beb
Add restrictive pat use in full binded struct
2020-03-04 09:11:07 +01:00
Krishna Sai Veera Reddy
ff0d44e45a
Add imprecise_flops
lint
...
Add lint to detect floating point operations that can be computed more
accurately at the cost of performance. `cbrt`, `ln_1p` and `exp_m1`
library functions call their equivalent cmath implementations which is
slower but more accurate so moving checks for these under this new lint.
2020-02-23 22:36:15 -08:00
flip1995
4229dbcf33
Run update_lints
2020-02-21 11:14:16 +01:00
Krishna Sai Veera Reddy
219c94d028
Separate out lint to check lossy whole number float literals
2020-02-20 22:33:36 -08:00
flip1995
7a85b7761b
Update Copyright year
2020-02-20 12:06:45 +01:00
flip1995
6835e2d8e0
Nuke Travis+AppVeyor CI
2020-02-18 10:08:58 +01:00
flip1995
fb59043621
Change badge branch master -> auto
...
For some reason GHA classifies the bors merges on the master branch as a
push to the auto branch, even though the workflow got triggered by a
push to the master branch. I guess this has something to do with the
same commit hash on master+auto directly after the merge?
2020-02-12 12:13:59 +01:00
flip1995
d7620a3e62
Add GHA badge to README.md
...
Add a FIXME to Cargo.toml
2020-02-12 09:34:26 +01:00
flip1995
757bbf7feb
Fix markdown Files
...
Rendered:
[CHANGELOG.md](https://github.com/flip1995/rust-clippy/blob/gha/CHANGELOG.md )
[CODE_OF_CONDUCT.md](https://github.com/flip1995/rust-clippy/blob/gha/CODE_OF_CONDUCT.md )
[CONTRIBUTING.md](https://github.com/flip1995/rust-clippy/blob/gha/CONTRIBUTING.md )
[README.md](https://github.com/flip1995/rust-clippy/blob/gha/README.md )
[clippy_dummy/PUBLISH.md](https://github.com/flip1995/rust-clippy/blob/gha/clippy_dummy/PUBLISH.md )
[doc/adding_lints.md](https://github.com/flip1995/rust-clippy/blob/gha/doc/adding_lints.md )
[etc/relicense/RELICENSE_DOCUMENTATION.md](https://github.com/flip1995/rust-clippy/blob/gha/etc/relicense/RELICENSE_DOCUMENTATION.md )
2020-02-12 09:34:25 +01:00
Krishna Sai Veera Reddy
be1bc571c3
Add option-env-unwrap
lint
2020-02-08 16:44:35 -08:00
Areredify
338fb7a3e9
add excessive bools lints
2020-02-05 20:54:58 +03:00
ThibsG
53094de08e
Merge fixes
2020-02-04 22:53:24 +01:00
Mikhail Babenko
9b88a2b295
decouple 'let_underscore' tests
2020-01-30 16:51:23 +03:00
xiongmao86
512efbea23
Declare lint and implement lint logic.
2020-01-30 00:21:29 +08:00
Areredify
796958c7e2
add option_as_ref_deref
lint
2020-01-23 16:12:16 +03:00
Yuki Okushi
95c369fa91
Add skip_while_next
lint
2020-01-20 10:56:02 +09:00
xiongmao86
bba468887b
Pull master, rebase, and update_lints again.
2020-01-12 19:54:17 +08:00
ThibsG
0fa0df9efb
Span help without suggestion
2020-01-07 19:10:59 +01:00
Krishna Sai Veera Reddy
9e6a6069a7
Add lint to detect usage of invalid atomic ordering
...
Detect usage of invalid atomic ordering modes such as
`Ordering::{Release, AcqRel}` in atomic loads and
`Ordering::{Acquire, AcqRel}` in atomic stores.
2020-01-06 16:39:31 -08:00