Centri3
cb52d19ce1
don't lint needless_raw_string_hashes
when it's unnecessary
2023-06-27 05:12:00 -05:00
bors
ce0a48a9b6
Auto merge of #10994 - y21:issue8772, r=giraffate
...
[`type_repetition_in_bounds`]: respect MSRV for combining bounds
Fixes #8772 .
changelog: [`type_repetition_in_bounds`]: respect msrv for combining `?Sized` bound
2023-06-23 00:31:04 +00:00
y21
75f9fbc93d
update lint configuration
2023-06-23 02:07:05 +02:00
Catherine
e3b601a1aa
Add WebAssembly to allowed idents
2023-06-20 18:12:20 -05:00
bors
8fd021f504
Auto merge of #10986 - Centri3:undocumented_unsafe_blocks, r=Manishearth
...
Allow safety comment above attributes
Closes #8679
changelog: Enhancement: [`undocumented_safety_block`]: Added `accept-comment-above-attributes` configuration.
2023-06-20 05:04:46 +00:00
Centri3
cc2e49f695
allow safety comment above attributes
2023-06-19 23:46:57 -05:00
Centri3
2cd4a9182a
Ignore functions annotated with #[test]
2023-06-18 19:32:38 -05:00
Renato Lochetti
e2e6a02445
Addressing reviewer comments
2023-06-17 09:36:38 -03:00
Renato Lochetti
520228b377
Adding configuration to allow safety comment above stmt containing unsafe block
2023-06-17 09:36:36 -03:00
y21
6ad7c6f4e6
update lint_configuration.md
2023-06-12 12:21:38 +02:00
y21
c8c7a3c79c
fix rebase weirdness
2023-06-12 12:21:38 +02:00
y21
7312a93a06
new lint: large_stack_frames
2023-06-12 12:21:38 +02:00
Centri3
203e875189
cargo collect-metadata
2023-06-12 03:22:01 -05:00
Centri3
243943ff56
make it work for locals as well
...
oopos
2023-06-12 03:22:01 -05:00
bors
e986b6444e
Auto merge of #10917 - Centri3:module_inception, r=xFrednet
...
allow disabling module inception on private modules
Fixes #10842
changelog: Enhancement [`module_inception`]: Added `allow-private-module-inception` configuration.
[#10917 ](https://github.com/rust-lang/rust-clippy/pull/10917 )
<!-- changelog_checked -->
2023-06-10 13:21:48 +00:00
Centri3
b303e2053c
allow disabling module inception on private modules
...
allow disabling module inception on private modules
2023-06-10 08:09:07 -05:00
Centri3
725399a178
move to complexity
but don't lint by default
2023-06-07 18:34:34 -05:00
Centri3
88143ac295
decided against reinventing the wheel
2023-06-07 18:34:34 -05:00
blyxyas
b7a6054712
Refresh Lint Configuration's looks
2023-05-09 21:39:24 +02:00
bors
990bbdc2be
Auto merge of #10656 - Centri3:master, r=xFrednet
...
Add configuration for `semicolon_block` lints
Does exactly what it says on the tin, suggests moving a block's final semicolon inside if it's multiline and outside if it's singleline.
I don't really like how this is implemented so I'm not too sure if this is ready yet. Alas, it might be ok.
---
fixes #10654
changelog: Enhancement: [`semicolon_inside_block`]: Added `semicolon-inside-block-ignore-singleline` as a new config value.
[#10656 ](https://github.com/rust-lang/rust-clippy/pull/10656 )
changelog: Enhancement: [`semicolon_outside_block`]: Added `semicolon-outside-block-ignore-multiline` as a new config value.
[#10656 ](https://github.com/rust-lang/rust-clippy/pull/10656 )
<!-- changelog_checked -->
2023-04-25 20:12:00 +00:00
Centri3
8c8cf40707
Update lint_configuration.md
2023-04-25 14:44:56 -05:00
Lukas Lueg
4bc68f9c60
Add size-parameter to unecessary_box_returns
...
Fixes #10641
2023-04-19 14:32:05 +02:00
Yuri Astrakhan
41b367fa5f
Gramar, and spelin kleanup
...
A few minor cleanups in various markdown files, mostly focusing on spelling and ignoring non-compilable codeblocks.
2023-03-30 15:31:14 -04:00
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
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
Liu Dingming
84ceca852e
run cargo collect-metadata
2023-02-24 05:53:58 +08:00
Christian Poveda
790f28b153
Update documentation
2023-02-20 09:34:49 -05:00
Christian Poveda
cc19fbe177
update metadata
2023-02-09 16:53: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
Tyler Weaver
c0da8acb72
Comment that lint_configuration.md is machine generated
2023-01-14 11:10:40 -07: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
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