Coding guidelines are available on the Asterisk wiki at:
https://wiki.asterisk.org/wiki/display/AST/Coding+Guidelines