| 1 | # How to contribute |
| 2 | |
| 3 | ## Before submitting an issue |
| 4 | |
| 5 | 1. Upgrade to the latest version of pgBadger and see if the problem remains |
| 6 | |
| 7 | 2. Look at the [closed issues](https://github.com/darold/pgbadger/issues?state=closed), we may have already answered a similar problem |
| 8 | |
| 9 | 3. [Read the doc](http://pgbadger.darold.net/documentation.html), it is short and useful |
| 10 | |
| 11 | ## Coding style |
| 12 | |
| 13 | The pgBadger project provides a [.editorconfig](http://editorconfig.org/) file to |
| 14 | setup consistent spacing in files. Please follow it! |
| 15 | |
| 16 | ## Keep documentation updated |
| 17 | |
| 18 | The first pgBadger documentation is `pgbadger --help`. `--help` fills the |
| 19 | SYNOPSIS section in `doc/pgBadger.pod`. The DESCRIPTION section *must* be |
| 20 | written directly in `doc/pgBadger.pod`. `README` is the text formatting of |
| 21 | `doc/pgBadger.pod`. |
| 22 | |
| 23 | After updating `doc/pdBadger.pod`, rebuild `README` and `README.md` with the following commands: |
| 24 | ```shell |
| 25 | $ perl Makefile.PL && make README |
| 26 | ``` |
| 27 | When you're done contributing to the docs, commit your changes. Note that you must have `pod2markdown` installed to generate `README.md`. |