tree: f054c56fc39867920b9603b96a783d565353903a [path history] [tgz]
  1. checklist.md
  2. clang-format.md
  3. code-conventions.md
  4. deprecation_policy.md
  5. hotfixing.md
  6. README.md
  7. releasing.md
  8. site_content_update.md
  9. site_development.md
  10. versions.md
  11. writing_readmes.md
contributing/README.md

General Contributing Guidelines

The Material Components contributing policies and procedures can be found in the main Material Components documentation repository’s contributing page.

iOS-specific Additions

The iOS team also abides by the following policy items:

Code Conventions

MDC follows certain coding styles and conventions for its code to help everyone easily read, review, and understand our code. Please follow these conventions when submitting pull requests.

Component Checklist

All components should pass these checks or give a compelling reason why they shouldn’t.

There is a great script that checks for some of these criteria. Run it regularly during development. It will also be run by the continuous integration system when you make a pull request. If the script fails at that point, the pull request will be blocked.

Issue and Pull Request Titles

Start the title with [ComponentName] to identify which component a change affects. Use [ComponentName|OtherComponentName] for commits affecting multiple components, which should be rare.

[FooBar] Removes the deprecated fooWithBar:(Bar*)bar method.

Using assignee to indicate who should action on a PR

Since PRs on github permanently stay in the Changes requested state it is hard to tell when the author has addressed the concerns. By change the assignee to whomever still needs to action (review or modify/justify) we can more easily keep track of what needs attention in our PR queues.

  1. For a reviewer this means adding the author as an assignee once the review is finished.
  2. For an author it means adding back the reviewer (and removing themselves) as an assignee.

Deprecation

See deprecation_policy.md for details.

Hotfixing

Occasionally it is necessary to hotfix the framework. See hotfixing.md for details.

Finding an issue to work on

MDC-iOS uses GitHub to file and track issues. To find an issue to work on, filter the issues list by the “is:Help wanted” label.

The small print

Contributions made by corporations are covered by a different agreement than the one above, the Software Grant and Corporate Contributor License Agreement.


Useful Links