X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=CONTRIBUTING.md;h=11969ded040bb9b9309c6b55b9a363d5dfc766f8;hp=f2475666086a5013026c26205db62bc9e5a4650e;hb=687e10aea101bf6338d31e69dd6537202bc5acc1;hpb=135ff51aea84dd8131d38e0cf0d3b18853cdb935 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f2475666..11969ded 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,12 +30,14 @@ the mailing list have a tendency to fall through the cracks. * *Focus:* Fix *one thing* in your PR. The smaller your change, the faster it will be reviewed and merged. -* *Coding style:* Please run `clang-format -style=file -i $FILE` on new files. - For existing files, please blend into surrounding code, i.e. mimic the - coding style of the code around your changes. +* *Coding style:* Please run `clang-format -style=file -i $FILE` after editing + `.c`, `.h` and `.proto` files. If you don't want to install *clang-format* + locally or your version produces a different result than the formatting + check on Github, use `contrib/format.sh` to format files using the same web + service used by our check. * *Documentation:* New config options need to be documented in two places: the manpage (`src/collectd.conf.pod`) and the example config - (`src/collectd.conf.in`). + (`src/collectd.conf.in`). New plugins need to be added to the `README` file. * *Continuous integration:* Once your PR is created, our continuous integration environment will try to build it on a number of platforms. If this reports a failure, please investigate and fix the problem. We will at