MantisBT Coding Conventions

This is the MantisBT coding conventions document. This should assist anyone who wants to modify the code or work on active development. Anyone who wishes to contribute code must adhere to these guidelines. Code not following these conventions will be rejected. If you have suggestions or a good argument for changing some of these guidelines then discuss it on the developer mailing lists.

First, start off by reading the PHP Coding Standards document. I've deviated in a few places but just about everything in the document applies here as well.

Above all, write code that is easy to read and maintain. Comment blocks of code and functions at all times. And get on my case if I deviate too much as well!

Naming Variables
Naming Functions
Naming Classes
Naming Files
SQL formatting
General Formatting
Miscellaneous
Page Guidelines
Braces and Parantheses
Comparisons
Strings
Comments
Editor Features

AddThis Social Bookmark Button SourceForge Logo