Skip to content

Commit 73dd25a

Browse files
committed
Update CONTRIBUTING.md
1 parent cca9938 commit 73dd25a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

CONTRIBUTING.md

+30
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ All contributors are expected to follow the [Rust Code of Conduct].
2323
- [Issue and PR triage](#issue-and-pr-triage)
2424
- [Bors and Homu](#bors-and-homu)
2525
- [Contributions](#contributions)
26+
- [License](#license)
2627

2728
[Zulip]: https://rust-lang.zulipchat.com/#narrow/stream/clippy
2829
[Rust Code of Conduct]: https://www.rust-lang.org/policies/code-of-conduct
@@ -245,6 +246,35 @@ Contributions to Clippy should be made in the form of GitHub pull requests. Each
245246
be reviewed by a core contributor (someone with permission to land patches) and either landed in the
246247
main tree or given feedback for changes that would be required.
247248

249+
All PRs should include a `changelog` entry with a short comment explaining the change. The rule of thumb is basically, "what do you believe is important from an outsider's perspective?" Often, PRs are only related to a single property of a lint, and then it's good to mention that one. Otherwise, it's better to include too much detail than too little.
250+
251+
Clippy's [changelog] is created from these comments. Every release, someone gets all commits from bors with a `changelog: XYZ` entry and combines them into the changelog. This is a manual process.
252+
253+
Examples:
254+
- New lint
255+
```
256+
changelog: new lint: [`missing_trait_methods`]
257+
```
258+
- False positive fix
259+
```
260+
changelog: Fix [`unused_peekable`] false positive when peeked in a closure or called as `f(&mut peekable)`
261+
```
262+
- Purely internal change
263+
```
264+
changelog: none
265+
```
266+
267+
Note this it is fine for a PR to include multiple `changelog` entries, e.g.:
268+
```
269+
changelog: Something 1
270+
changelog: Something 2
271+
changelog: Something 3
272+
```
273+
274+
[changelog]: CHANGELOG.md
275+
276+
## License
277+
248278
All code in this repository is under the [Apache-2.0] or the [MIT] license.
249279

250280
<!-- adapted from https://github.com/servo/servo/blob/master/CONTRIBUTING.md -->

0 commit comments

Comments
 (0)