Address feedback, add coding rules section

master
Addy Osmani 2015-04-07 10:40:20 +01:00
parent 24fa90f479
commit 43dccffa54
1 changed files with 15 additions and 4 deletions

View File

@ -8,6 +8,7 @@ We'd love for you to contribute to our source code and to make Material Design L
- [Issues and Bugs](#issue) - [Issues and Bugs](#issue)
- [Feature Requests](#feature) - [Feature Requests](#feature)
- [Submission Guidelines](#submit) - [Submission Guidelines](#submit)
- [Coding Rules](#rules)
- [Signing the CLA](#cla) - [Signing the CLA](#cla)
## <a name="coc"></a> Code of Conduct ## <a name="coc"></a> Code of Conduct
@ -20,11 +21,11 @@ We promise to extend courtesy and respect to everyone involved in this project r
If any member of the community violates this code of conduct, the maintainers of the Material Design Lite project may take action, removing issues, comments, and PRs or blocking accounts as deemed appropriate. If any member of the community violates this code of conduct, the maintainers of the Material Design Lite project may take action, removing issues, comments, and PRs or blocking accounts as deemed appropriate.
If you are subject to or witness unacceptable behavior, or have any other concerns, please let us know on the tracker. If you are subject to or witness unacceptable behavior, or have any other concerns, please drop us a line at addyo@google.com.
## <a name="question"></a> Got a Question or Problem? ## <a name="question"></a> Got a Question or Problem?
If you have questions about how to use Material Design Lite, please direct these to [StackOverflow][stackoverflow]. We are also available on GitHub issues. If you have questions about how to use Material Design Lite, please direct these to [StackOverflow][stackoverflow] and use the `material-design-lite` tag. We are also available on GitHub issues.
## <a name="issue"></a> Found an Issue? ## <a name="issue"></a> Found an Issue?
If you find a bug in the source code or a mistake in the documentation, you can help us by If you find a bug in the source code or a mistake in the documentation, you can help us by
@ -142,7 +143,16 @@ from the main (upstream) repository:
```shell ```shell
git pull --ff upstream master git pull --ff upstream master
`` ```
## <a name="rules"></a> Coding Rules
We generally follow the [Google JavaScript style guide](js-style-guide) with a few minor exceptions documented in our
[JSCS configuration.](jscs-config).
[JSCS](http://jscs.info) is a tool for linting code against a style guide and has plugins available for both editors and build tools. Should
you find that you would prefer to automatically format your code to match our style guide, you can use the JSCS [autoformatting](autoformatting)
feature.
## <a name="cla"></a> Signing the CLA ## <a name="cla"></a> Signing the CLA
@ -161,4 +171,5 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
[jsbin]: http://jsbin.com/ [jsbin]: http://jsbin.com/
[stackoverflow]: http://stackoverflow.com/questions/tagged/material-design-lite [stackoverflow]: http://stackoverflow.com/questions/tagged/material-design-lite
[global-gitignore]: https://help.github.com/articles/ignoring-files/#create-a-global-gitignore [global-gitignore]: https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
[autoformatting]: https://medium.com/@addyosmani/auto-formatting-javascript-code-style-fe0f98a923b8
[jscs-config]: https://github.com/google/material-design-lite/blob/master/.jscsrc