Skip to content

Latest commit

 

History

History
99 lines (70 loc) · 4.04 KB

CONTRIBUTING.md

File metadata and controls

99 lines (70 loc) · 4.04 KB

Contributing

Mutagen welcomes community contributions, especially feedback and experience reports. See below for more information on the best channels for each of these.

Issues

Issues are best submitted via the issue tracker. If you're reporting a security issue (or even just something that you think might be a security issue), then please follow responsible disclosure practices and submit the issue report using the instructions found in the security documentation.

Experience reports

Experience reports are an essential part of improving Mutagen. These reports might include problems you've had, use cases that aren't covered by existing features, or even just general thoughts about how to improve Mutagen. All of this also applies to Mutagen's website, documentation, and community portals. You can send your feedback via the Mutagen Community Slack Workspace, submit it via the issue tracker, or even just email us at [email protected].

Pull requests

Before taking the time to implement a change or feature, please discuss the proposed change on the issue tracker or Mutagen Community Slack Workspace.

If it does make sense to open a pull request, please adhere to the following guidelines. Pull requests that don't follow these guidelines will be closed.

Pull requesets are not currently accepted for code residing under the sspl directory.

Developer Certificate of Origin

Pull requests to Mutagen must be submitted under the terms of the Developer Certificate of Origin (DCO). In order to accept a pull request, we require that you sign-off all commits in the pull request using the -s flag with git commit to indicate that you agree to the terms of the DCO. You must also cryptographically sign your commits to verify your DCO sign-off.

Code guidelines

In order to ensure that Mutagen's codebase remains clean and understandable to all developers, we kindly request that:

  • Code adheres to Go style guidelines, including those in Effective Go and the Go Code Review Comments
  • All code be go fmt'd
  • New code matches the style and structure of its surrouding code (unless a full refactor/rewrite of a package is being performed)
  • Comments be wrapped at 80 columns (including indentation), with exceptions for long strings like URLs that shouldn't be broken across lines
    • Code does not need to be wrapped at 80 columns, but please do try to keep lines to a reasonable length
  • Comments be used to break up code blocks and be composed of full and complete sentences (example)
  • Imports be grouped by module, with standard library packages in the first group (example)
  • Non-trivial changes include full test coverage

Commit guidelines

To help keep source control logs readable and useful, we also ask that all commits have well-formatted commit messages that follow the Go commit message guidelines, with no line exceeding 72 characters in length.

Here's an example of a good message:

sync: modified controller state locking

This commit modifies the synchronization controller's state locking to
take into account changes that can occur during shutdown. It requires
that the synchronization Goroutine hold the state lock until fully
terminated.

Fixes #00000

Signed-off-by: Jacob Howard <[email protected]>

Here's an example of a not-so-good message:

fixes sync