The code style conventions used in the project are based on the style-guide defined of Fedora-3. They should prevent commits cluttered with format changes.
Formatting Rules
Here are the major rules:
- Four space indents for Java, and 2-space indents for XML. NO TABS
K&R style braces
if (code) { // code } else { // code }
- Do not use wildcard imports
- Write Javadocs for public methods and classes. Keep it short and to the point
- Avoid public instance variables; use accessors
- Use public methods sparingly; implementation details are not public
- Maximum length of lines is 80 characters.
@Author
/** * @author Joe Developer * Date: MMM DD, YYYY */ public class MyClass
IDE Setups
IDE settings can be found in fcrepo4/etc in the project source.
- Eclipse settings are here: fcrepo4/etc/eclipse-prefs
- Intellij settings TBD