Enforce clang-format for c-like sources on Travis (flutter/engine#4089)

* Enforce clang-format for c-like sources on Travis

* Edit CONTRIBUTING,md

* review feedback:

* ++

* ++

* ++
This commit is contained in:
Michael Goderbauer
2017-09-12 15:42:37 -07:00
committed by GitHub
parent ac24af87f0
commit 11a9ee14fe
2 changed files with 8 additions and 5 deletions

View File

@@ -6,3 +6,4 @@ before_script:
script:
- ./travis/build.sh
- ./travis/test.sh
- ./travis/format.sh

View File

@@ -201,11 +201,13 @@ To start working on a patch:
* Make sure you are in the `engine/src/flutter` directory.
* `git fetch upstream`
* `git checkout upstream/master -b name_of_your_branch`
* Hack away. Please peruse our
[style guides](https://flutter.io/style-guide/) and
[design principles](https://flutter.io/design-principles/) before
working on anything non-trivial. These guidelines are intended to
keep the code consistent and avoid common pitfalls.
* Hack away.
* Please peruse our [style guides](https://flutter.io/style-guide/) and
[design principles](https://flutter.io/design-principles/) before
working on anything non-trivial. These guidelines are intended to
keep the code consistent and avoid common pitfalls.
* C, C++, and Objective-C code should be formatted with `clang-format` before
submission (use `buildtools/<OS>/clang/bin/clang-format --style=file -i`).
* `git commit -a -m "<your brief but informative commit message>"`
* `git push origin name_of_your_branch`