Devin Ragotzy
9492de5843
Add import_rename lint, this adds a field on the Conf struct
...
Rename lint and fix review issues
2021-06-24 16:13:02 -04:00
xFrednet
96a9786b1c
Fixed broken deploy script due to multiline configuration docs
2021-06-20 22:32:32 +02:00
bors
3120b09151
Auto merge of #7299 - DevinR528:macro-brace, r=llogiq
...
Add macro_braces lint to check for irregular brace use in certain macros
The name is a bit long but this sounds good as `#[allow(unconventional_macro_braces)]` and it seems more clear that we are talking about the macro call not macro definitions, any feedback let me know. Thanks!
fixes #7278
changelog: Add ``[`unconventional_macro_braces`]`` lint that checks for uncommon brace usage with macros.
2021-06-19 17:56:56 +00:00
Devin Ragotzy
723f515b60
Add macro_braces lint to check for irregular brace use in certain macros
...
Rename unconventional -> nonstandard, add config field
Add standard_macro_braces fields so users can specify macro names and
brace combinations to lint for in the clippy.toml file.
Fix errors caused by nonstandard_macro_braces in other lint tests
Fix users ability to override the default nonstandard macro braces
Add type position macros impl `check_ty`
2021-06-17 07:02:36 -04:00
Cameron Steffen
a557f37bb4
Improve metadata code block parsing
2021-06-15 16:39:52 -05:00
bors
c4636abe72
Auto merge of #7315 - DevinR528:disallowed-ty, r=giraffate
...
Add disallowed_type lint, this adds a field to the conf struct
Fixes #7277
changelog: Add ``[`disallowed_type`]`` a lint that can enforce banning types specified in the config.
2021-06-10 00:30:36 +00:00
Thomas de Zeeuw
0d3f289b66
Add FreeBSD as identifier not needing ticks
...
For the doc-markdown lint.
2021-06-09 17:16:10 +02:00
Devin Ragotzy
ea45e2a9cf
Add disallowed_types lint, this adds a field to the Conf struct
...
Replace use of node_type -> node_type_opt, fix clippy warnings
Don't walk the hir unnecessarily let the visitor do it
2021-06-09 07:21:16 -04:00
Jason Newcomb
cfddf0927b
Fix type checks for manual_str_repeat
2021-05-31 09:37:13 -04:00
Cameron Steffen
d39a11cbe1
Remove clippy_utils::consts re-export
2021-05-27 08:52:10 -05:00
Cameron Steffen
6eea598645
Fix config file lookup
2021-05-26 21:53:43 -05:00
Cameron Steffen
2e2021bbda
Add avoid_breaking_exported_api config option
2021-05-26 16:35:22 -05:00
mbartlett21
cadad20da1
Add semicolons up to needless_for_each.rs
2021-05-25 00:54:50 +00:00
Jason Newcomb
f355aebf10
Move needless_borrow
to style
2021-05-21 11:24:52 -04:00
flip1995
451ff5668b
Merge remote-tracking branch 'upstream/master' into rustup
2021-05-20 12:05:02 +02:00
Fridtjof Stoldt
9dc366bc4d
Fixed a type
...
Co-authored-by: Philipp Krones <hello@philkrones.com>
2021-05-19 17:23:33 +02:00
xFrednet
8036d7f784
Adding the default lint level to the metadata collection
...
And stripping the clippy:: prefix from the group
2021-05-19 16:42:21 +02:00
xFrednet
f810c11d3c
Applying PR suggestions and cleaning up
2021-05-15 19:09:16 +02:00
xFrednet
b740a04dc4
Metadata collection collecting configuration deprecation reason
2021-05-12 18:47:32 +02:00
xFrednet
b03642e51f
Metadata collection clarifying default configuration values
2021-05-12 17:31:00 +02:00
xFrednet
88ae2d1155
Metadata formatting the configuration section
2021-05-12 17:31:00 +02:00
xFrednet
210ec728e5
Metadata collection monster searching for configurations
2021-05-12 17:31:00 +02:00
Fridtjof Stoldt
a988a90e11
Update clippy_lints/src/deprecated_lints.rs
...
Co-authored-by: Philipp Krones <hello@philkrones.com>
2021-05-11 18:33:51 +02:00
xFrednet
d849e9586e
Metadata collection monster eating deprecated lints
2021-05-09 21:58:31 +02:00
flip1995
d605882023
Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup
2021-05-06 12:20:44 +02:00
Takayuki Nakata
b8046fab23
Add a missing lint to MSRV config doc
2021-05-06 14:04:50 +09:00
xFrednet
e0eb29c936
Applying PR suggestions (mostly typos)
...
Co-authored-by: flip1995 <hello@philkrones.com>
Co-authored-by: phansch <dev@phansch.net>
2021-05-05 18:58:57 +02:00
xFrednet
62cafe2c02
Applying PR suggestions
2021-05-05 18:38:26 +02:00
xFrednet
c1fa1102d4
ENABLE_METADATA_COLLECTION env-value to disable default metadata collection
2021-05-05 18:38:26 +02:00
xFrednet
4fc960301b
Metadata collection: Rounding up the implementation
2021-05-05 18:38:26 +02:00
xFrednet
35844d0a48
Metadata collection: Resolve lint from locals
2021-05-05 18:35:33 +02:00
xFrednet
2ce5e368d8
Metadata collection: Refining the implementation
2021-05-05 18:35:33 +02:00
xFrednet
6658db1044
Metadata collection: processing emission closures (417/455)
2021-05-05 18:35:33 +02:00
xFrednet
5830fa7c60
Metadata Collection: Collecting direct emission applicabilities (324/455)
2021-05-05 18:35:33 +02:00
xFrednet
ee8a99a114
Metadata collection: Collecting Applicability assign values
2021-05-05 18:35:33 +02:00
xFrednet
a39912cfbb
Metadata collection: Some refactoring for readability
2021-05-05 18:35:33 +02:00
xFrednet
ee130d066d
Metadata collection: Tracking Applicability mut borrows
2021-05-05 18:35:33 +02:00
xFrednet
8dca1b8f61
Metadata collection: Collecting Applicability assign values
2021-05-05 18:35:33 +02:00
xFrednet
68d702f88d
Metadata collection lint: Start Applicability value tracking
2021-05-05 18:35:33 +02:00
xFrednet
060e0e9f93
Metadata collection lint: Basic applicability collection
2021-05-05 18:35:33 +02:00
xFrednet
637751ff62
Metadata collection lint: Basic lint collection
...
WIP-2021-02-01
WIP-2021-02-01
WIP-2021-02-13
2021-05-05 18:34:24 +02:00
Cameron Steffen
499813026f
Fix config parsing
2021-05-02 17:50:22 -05:00
Cameron Steffen
857d9f15da
Fix error punctuation
2021-05-02 16:56:46 -05:00
Cameron Steffen
1e22e564e4
Refactor config deserialization
2021-05-01 17:38:05 -05:00
Cameron Steffen
32351d6b9f
Remove leftover plugin conf_file code
2021-04-28 16:04:59 -05:00
flip1995
ae72f1adb9
Merge commit '7c7683c8efe447b251d6c5ca6cce51233060f6e8' into clippyup
2021-04-27 16:55:11 +02:00
Cameron Steffen
33ed8b5b24
Remove needless_question_mark MSRV
2021-04-26 16:02:11 -05:00
Cameron Steffen
dcf4e07458
Finish MSRV for cloned_instead_of_copied
2021-04-26 11:09:24 -05:00
flip1995
02bf692169
Merge commit '98e2b9f25b6db4b2680a3d388456d9f95cb28344' into clippyup
2021-04-22 11:31:13 +02:00
Jason Newcomb
f6c5d8d599
Remove all usages of match_path
, match_qpath
and match_path_ast
except the author
lint.
...
Add note to fix `MATCH_TYPE_ON_DIAG_ITEM`
Add false negative test for `uninit_assumed_init`
2021-04-15 19:27:25 -04:00