You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #7359 - joshrotenberg:clippy_guide, r=xFrednet
Clippy book
A work in progress Clippy Book using mdbook. See #6011.
This is currently just a moving around of things:
1. The current README.md split up a bit and put into sections.
1. A rough outline of Clippy lint categories (currently no content, potentially add a basic introduction for each and some example, see questions below.
1. The `docs` content repurposed into a top level `Development` section.
1. The current Roadmap.
Some big questions:
1. is `guide/` the right place? I'm modeling after mdbook itself.
1. What is the relationship between ALL the Clippy Lints and this guide? It seems like they can coexist. Does that mean the guide should just point to the current side with regard to actual lints, and maybe just include some examples to keep it interesting? Keeping both up to date seems like a maintenance nightmare unless its automated somehow. Or should the current ALL the Clippy lints somehow be incorporated into the book?
1. Related to the above, where should this guide be published since the `gh-pages` branch is already in use?
1. This PR doesn't currently change any existing content. Obviously that would make sense assuming the general structure and relocation is an acceptable approach.
---
Open Tasks for follow up PR:
- Set up CI/CD
- Split up Installation and Usage
- Add more content to Usage (and Installation) chapters
- Enhance CI chapter with more examples for different CIs
---
changelog: The first version of the *Clippy Book*
staring, *The Clippy Team*, *Bors* and *rustc*
[Rust Code of Conduct]: https://www.rust-lang.org/policies/code-of-conduct
35
30
36
-
## Getting started
31
+
## The Clippy book
37
32
38
-
**Note: If this is your first time contributing to Clippy, you should
39
-
first read the [Basics docs](doc/basics.md).**
33
+
If you're new to Clippy and don't know where to start the [Clippy book] includes
34
+
a developer guide and is a good place to start your journey.
40
35
41
-
### High level approach
36
+
<!-- FIXME: Link to the deployed book, once it is deployed through CI -->
37
+
[Clippy book]: book/src
38
+
39
+
## High level approach
42
40
43
41
1. Find something to fix/improve
44
42
2. Change code (likely some file in `clippy_lints/src/`)
45
-
3. Follow the instructions in the [Basics docs](doc/basics.md) to get set up
43
+
3. Follow the instructions in the [Basics docs](book/src/development/basics.md)
44
+
to get set up
46
45
4. Run `cargo test` in the root directory and wiggle code until it passes
47
46
5. Open a PR (also can be done after 2. if you run into problems)
48
47
49
-
###Finding something to fix/improve
48
+
## Finding something to fix/improve
50
49
51
-
All issues on Clippy are mentored, if you want help simply ask @Manishearth, @flip1995, @phansch
52
-
or @llogiq directly by mentioning them in the issue or over on [Zulip]. This list may be out of date.
53
-
All currently active mentors can be found [here](https://github.com/rust-lang/highfive/blob/master/highfive/configs/rust-lang/rust-clippy.json#L3)
50
+
All issues on Clippy are mentored, if you want help simply ask someone from the
51
+
Clippy team directly by mentioning them in the issue or over on [Zulip]. All
0 commit comments