From 9c292e01b24cae65e92e0156d4b61f2a6f47ced6 Mon Sep 17 00:00:00 2001 From: Wojciech Bober Date: Tue, 20 Sep 2016 18:38:24 +0200 Subject: [PATCH] Added 'Code style' section to CONTRIBUTING.md (#627) * Added 'Code style' section to CONTRIBUTING.md --- CONTRIBUTING.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d3b7ad25c..2a78c3b1b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,6 +20,15 @@ frustration later on. All submissions, including submissions by project members, require review. We use Github pull requests for this purpose. +### Code style +Before submitting a pull request make sure to run: + + make pretty + +This will format the source code according to the OpenThread code style. This +command requires the `astyle` tool. Please refer to your operating system +documentation to find information on how to install `astyle`. + ### The small print Contributions made by corporations are covered by a different agreement than the one above, the