Skip to content

We should extend --explain to include config options #9990

Closed
@xFrednet

Description

@xFrednet

Clippy has an --explain command to display the lint documentation in the console. Ideally, we'd like to expand the command to include the configurations, which effect the lint emission. This is already done for Clippy's lint list.

Here is an example for such a lint: borrow_as_ptr

This implementation could take inspiration from how we collect the metadata for our lint list:

fn get_lint_configs(&self, lint_name: &str) -> Option<String> {

CC: #9880

Metadata

Metadata

Assignees

Labels

A-documentationArea: Adding or improving documentationA-uiArea: Clippy interface, usage and configurationC-an-interesting-projectCategory: Interesting projects, that usually are more involved design/code wise.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions