bors
799732cbd8
Auto merge of #10414 - csmoe:large-future, r=xFrednet
...
add large future lint
Closes #5263
---
changelog: new lint: [`large_futures`]
[#10414 ](https://github.com/rust-lang/rust-clippy/pull/10414 )
<!-- changelog_checked -->
2023-03-30 08:51:29 +00:00
xFrednet
6e87ae0f1a
Run metadata collection
2023-03-30 10:49:29 +02:00
Micha White
a143fb7a11
Avoid breaking exported API
2023-03-26 17:49:57 -04:00
Nilstrieb
b782a071ad
Add explanation on how to run cargo-clippy
and clippy-driver
2023-03-24 16:26:22 +00:00
J-ZhengLi
011bb46337
update lint configuration doc for [ifs_same_cond
]
2023-03-14 10:24:28 +08:00
Alex Macleod
2cadea5dc5
Fix array-size-threshold config deserialization error
2023-02-28 14:37:41 +00:00
Andreas Deininger
03a3f74365
Fixing typos
2023-02-27 21:45:26 +01:00
Liu Dingming
84ceca852e
run cargo collect-metadata
2023-02-24 05:53:58 +08:00
bors
b1cf1e7b6a
Auto merge of #10303 - pvdrz:pub_crate_missing_docs, r=giraffate
...
Add configuration to lint missing docs of `pub(crate)` items
Fixes this: https://github.com/rust-lang/rust-clippy/issues/5736#issuecomment-1412442404
TODO:
- [x] Needs docs
- [x] Needs better names
- [x] Should `pub` items be checked to when this new option is enabled? I'm saying no because `missing_docs` already exists
`@flip1995` I'd like to get some input from you :)
---
changelog: Enhancement: [`missing_docs_in_private_items`]: Added new configuration `missing-docs-in-crate-items` to lint on items visible within the current crate. For example, `pub(crate)` items.
[#10303 ](https://github.com/rust-lang/rust-clippy/pull/10303 )
<!-- changelog_checked -->
2023-02-20 23:59:07 +00:00
Christian Poveda
790f28b153
Update documentation
2023-02-20 09:34:49 -05:00
Samuel Tardieu
21433abcea
book: move warning to the right place
2023-02-12 15:29:13 +01:00
Christian Poveda
cc19fbe177
update metadata
2023-02-09 16:53:34 -05:00
Michael Krasnitski
fba16e2e3a
Add extra_unused_type_parameters
lint
2023-02-02 19:37:34 -05:00
koka
a9e6b12854
fix: use correct lint name
...
fix
2023-01-30 20:35:35 +09:00
koka
af62bf95a3
fix key name of MUTABLE_KEY_TYPE
2023-01-29 03:13:30 +09:00
koka
d87a6bc9b1
add MANUAL_RETAIN to msrv
...
MANUAL_RETAIN uses
- msrvs::STRING_RETAIN
- msrvs::BTREE_SET_RETAIN
- msrvs::BTREE_MAP_RETAIN
- msrvs::HASH_SET_RETAIN
- msrvs::HASH_MAP_RETAIN
2023-01-29 03:07:09 +09:00
koka
2f4b047b27
add MANUAL_REM_EUCLID to msrv
...
MANUAL_REM_EUCLID uses msrvs::REM_EUCLID
2023-01-29 03:04:56 +09:00
koka
1766532b20
add MANUAL_IS_ASCII_CHECK to msrv
...
MANUAL_IS_ASCII_CHECK uses msrvs::IS_ASCII_DIGIT and msrvs::IS_ASCII_DIGIT_CONST
2023-01-29 03:02:23 +09:00
koka
25d455bd17
fix: add missing dot to suppress_restriction_lint_in_const
2023-01-29 02:54:26 +09:00
koka
e791522d35
add DERIVABLE_IMPLS to msrv
...
DERIVABLE_IMPLS uses msrvs::DEFAULT_ENUM_ATTRIBUTE
2023-01-29 02:39:37 +09:00
koka
fb77b02789
add NEEDLESS_BORROW to msrv
...
NEEDLESS_BORROW uses msrvs::ARRAY_INTO_ITERATOR
2023-01-29 02:37:00 +09:00
koka
7716d69757
fix: add missing dot to AWAIT_HOLDING_INVALID_TYPE
2023-01-29 02:27:43 +09:00
koka
e65f9f9d32
add ALMOST_COMPLETE_RANGE to msrv
...
ALMOST_COMPLETE_RANGE uses msrvs::RANGE_INCLUSIVE
2023-01-29 02:22:10 +09:00
koka
07a8bf15ff
add TRANSMUTE_PTR_TO_REF to msrv
...
TRANSMUTE_PTR_TO_REF uses msrvs::POINTER_CAST
2023-01-29 02:14:38 +09:00
koka
532841fcae
add UNNECESSARY_LAZY_EVALUATIONS to msrv
...
UNNECESSARY_LAZY_EVALUATIONS uses msrvs::BOOL_THEN_SOME for `then` to
`then_some`
2023-01-29 02:02:46 +09:00
koka
a05e86f5dd
add SEEK_REWIND in msrv
...
SEEK_REWIND uses msrvs::SEEK_REWIND
2023-01-29 01:54:31 +09:00
koka
5a9c4a0090
add SEEK_FROM_CURRENT in msrv
...
SEEK_FROM_CURRENT uses msrvs::SEEK_FROM_CURRENT
2023-01-29 01:52:05 +09:00
koka
a0460cf37d
add COLLAPSIBLE_STR_REPLACE in msrv
...
COLLAPSIBLE_STR_REPLACE uses msrvs::PATTERN_TRAIT_CHAR_ARRAY
2023-01-29 01:49:10 +09:00
chansuke
081c6178fe
Fix spelling inconsistence of mdBook
2023-01-20 20:29:04 +09:00
Philipp Krones
d9baced2b5
Improve the changelog update documentation
...
- Make the clippy::version attribute instructions more prominent.
- Mention the beta-accepted label.
2023-01-19 11:28:35 +01:00
bors
aceb4439d6
Auto merge of #10199 - tylerjw:document-extending-list-configs, r=xFrednet
...
Document lint configuration values in Clippy's book
changelog: document lint configuration values in Clippy's book
fixes #9991
r? `@xFrednet`
2023-01-14 18:14:31 +00:00
Tyler Weaver
c0da8acb72
Comment that lint_configuration.md is machine generated
2023-01-14 11:10:40 -07:00
Tyler Weaver
d950279a03
Document generating lint config docs for adding configuration
2023-01-14 07:39:49 -07:00
Maria José Solano
a7db92574c
Split long line
2023-01-13 18:57:04 -08:00
Tyler Weaver
7d1609dce3
Document configurations in table and paragraphs
...
Signed-off-by: Tyler Weaver <maybe@tylerjw.dev>
2023-01-13 16:26:46 -07:00
Maria José Solano
93f602f1cf
Add missing arguments to cargo lint example
2023-01-13 15:21:49 -08:00
Tyler Weaver
2e2ae68d5a
Document lint configuration values in Clippy's book
...
Signed-off-by: Tyler Weaver <maybe@tylerjw.dev>
2023-01-13 11:48:51 -07:00
Tyler Weaver
d43dce14d5
Remove cognitive-complexity-threshold from docs
2023-01-13 09:01:39 -07:00
Tyler Weaver
cfe8849a62
Document extending list type configs
...
Signed-off-by: Tyler Weaver <maybe@tylerjw.dev>
2023-01-12 06:51:58 -07:00
Ardis Lu
7a64a51818
Fix typo
2022-12-31 02:14:20 -08:00
alexey semenyuk
55f1698a6c
Fix badge
2022-12-10 19:15:08 +03:00
bors
c55cadcfd9
Auto merge of #9919 - Alexendoo:configuration-link, r=xFrednet
...
Link to a list of configurable lints in documentation
changelog: none
2022-11-27 14:42:54 +00:00
Alex Macleod
461e219d1d
Allow using clippy::msrv
as an outer attribute
2022-11-27 12:43:17 +00:00
Alex Macleod
28976ce9c3
Link to a list of configurable lints in documentation
2022-11-27 12:38:33 +00:00
Philipp Krones
c6a1184e4d
Book: Format syntax tree pattern proposal
2022-11-25 11:39:36 +01:00
Philipp Krones
4faf11a102
Move syntax tree patterns RFC to the book
2022-11-25 11:39:04 +01:00
Alex Macleod
637139d2ff
Add clippy_utils::msrv::Msrv
to keep track of the current MSRV
2022-11-21 18:16:40 +00:00
Alex Macleod
815876d93f
Move MSRV tests into the lint specific test files
2022-10-21 21:35:39 +00:00
Steven Nguyen
135a2730eb
Book: Small grammar + link a11y change
2022-10-13 23:48:05 -05:00
Alex Macleod
6d8959ea83
Add #[allow(unused)]
to test in cargo dev new_lint
2022-09-16 21:04:38 +00:00