rust-lang / rust-lang/rust-clippy

Provide a default config file for Clippy

Open
#9,992 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-documentation C-enhancement E-help-wanted
Dominant language
Rust
Stars
13.5k
Forks
2.2k
Avg merge
2d 10h
Merged PRs (30d)
32

Description

We have a few lints with configuration values, like borrow_as_ptr. We want to increase the visibility of these config values, to encourage the use of them.

As part of this, we'd like to provide a default configuration file. The config should be included in the book.

Tasks:

  • Examine config values and determine which are probably often used
  • Some less commonly used but important ones should be listed, but commented out.
  • Additionally, a configuration could be provided, that should be run once before a release with configs like: avoid-breaking-exported-api

cc: https://github.com/rust-lang/rust-clippy/issues/9880

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Clippy's configurable lint values, including borrow_as_ptr, and the existing Clippy book. Identify commonly used settings, important less-common settings to comment out, and the release-oriented configuration containing avoid-breaking-exported-api. Done means the default configuration and release configuration are provided and documented in the book.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.