Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving CONTRIBUTING.md #5195

Closed
tertsdiepraam opened this issue Aug 22, 2023 · 6 comments
Closed

Improving CONTRIBUTING.md #5195

tertsdiepraam opened this issue Aug 22, 2023 · 6 comments

Comments

@tertsdiepraam
Copy link
Member

tertsdiepraam commented Aug 22, 2023

Our CONTRIBUTING.md is long and extensive, but not very good in my opinion.

My issues with it are:

  • It's too long, or at least unfocused. I don't expect that most new contributors read it all.
  • It's too technical. It only focuses on code and tools, not on people and processes.

So, what should be in it? Here's a rough outline, heavily inspired by Bevy's contributing guide:

  • Introduction.
    • Say thanks for wanting to contribute.
    • Link to discord, good-first-issues and code of conduct
    • The "do not copy GNU code"-warning right at the start
  • Getting oriented (like bevy does it)
  • Design goals (also like bevy)
  • How to help
    • Reporting issues
    • What makes a good actionable issue.
    • What info to include.
    • Writing documentation
    • Writing code
  • Rust style guide
    • I love how nushell does this
    • Should include things like:
      • discourage unsafe and encouraging SAFETY comments
      • discourage panics, unwraps, etc.
      • discourage one-off macros
      • discourage reinventing the wheel
      • encourage a good doc comment style
      • how to write good comments
      • discuss str vs OsStr vs Path etc.
  • Git etiquette (like nushell)
  • Tools (much like the current section)
  • Other implementations (pretty good already)
  • License (pretty good already)

Here's some examples of CONTRIBUTING.md files I like:

@Benjscho
Copy link
Contributor

As a pretty new contributor, the above would be great! The CONTRIBUTING.md is pretty good at the moment, but most of the tooling aspects could probably be moved to a DEVELOPMENT.md instead, and the key contribution aspects kept.

@zhitkoff
Copy link
Contributor

@Benjscho yep, dedicating something like DEVELOPMENT.md for local dev setup, broken down by Common/Windows/Linux/MacOS would be awesome! There are things that need to be covered better in that area. I volunteer to edit section on MacOS aarch64

@tertsdiepraam
Copy link
Member Author

Sounds like a good place to start refactoring this! @Benjscho @zhitkoff would either of you like to open a PR to extract some info into a DEVELOPMENT.md?

@zhitkoff
Copy link
Contributor

Started the first draft in #5209

@zhitkoff
Copy link
Contributor

zhitkoff commented Sep 1, 2023

for code coverage section in CONTRIBUTING.md : Since the technical details on how to generate report locally are offloaded (and linked) to DEVELOPMENT.md, should we use this section in CONTRIBUTING.md to spell out code coverage requirements/targets/%thresholds per pool request, total, etc?

@tertsdiepraam
Copy link
Member Author

I think #5488 actually made it good enough to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants