git-update.py: Check for mandatory fields
[aur.git] / HACKING
blob291da1f37d6d76eb76520ac11a11efdda4ed494f
1 HACKING
3 DISCLAIMER: We realise the code doesn't necessarily follow all the rules.
4 This is an attempt to establish a standard coding style for future
5 development.
7 Coding style guidelines
8 -----------------------
9 Column width: 79 columns or less within reason.
11 Indentation: tabs (standard eight column width)
12 Please don't add any mode lines. Adjust your editor to display tabs to your
13 preferred width. Generally code should work with the standard eight column
14 tabs.
16 No short open tags. '<?'
17 Do not end files with a close tag. '?>'
18 Try embedding as little XHTML in the PHP as possible.
19 Consider creating templates for XHTML.
21 All markup should conform to XHTML 1.0 Strict requirements.
22 You can use http://validator.w3.org to check the markup.
24 Prevent PHP Notices by using isset() or empty() in conditionals that
25 reference $_GET, $_POST, or $_REQUEST variables.
27 MySQL queries should generally go into functions.
29 Submitting patches
30 ------------------
31 !!! PLEASE TEST YOUR PATCHES BEFORE SUBMITTING !!!
32 Submit uncompressed git-formatted patches to aur-dev@archlinux.org.
34 You will need to register on the mailing list before submitting:
35 https://mailman.archlinux.org/mailman/listinfo/aur-dev
37 Base your patches on the master branch as forward development is done there.
38 When writing patches please keep unnecessary changes to a minimum.
40 Try to keep your commits small and focused.
41 Smaller patches are much easier to review and have a better chance of being
42 pushed more quickly into the main repo. Smaller commits also makes reviewing
43 the commit history and tracking down specific changes much easier.
45 Try to make your commit messages brief but descriptive.
47 Glossary
48 --------
49 git-formatted patch:
50         A patch that is produced via `git format-patch` and is sent via
51         `git send-email` or as an inline attachment of an email.