-
Notifications
You must be signed in to change notification settings - Fork 0
Documentation Guidelines
Michel Pawlak edited this page Mar 16, 2017
·
3 revisions
- documentation must be written in english
- at least 90% public API javadoc documentation density must be reached for new code. This includes
public,protectedand package protected (default) visibility of- all classes, interfaces, enums, methods
- all method and constructor parameters
- all method
returnvalues - all thrown
Exceptions
- the Javadoc must be meaningful and concise. It must allow a newcomer to understand quickly
- the responsibility of the class, interface
- the role of an enum
- what a method is doing (and not how it is doing it)
- when adding a new package, create a
package-info.javafile inside the package and explain its role, what type of files should be put inside it - before committing the code, javadoc generation must be checked (see below)
- complex algorithms must be documented
Contributors need to know that all F/OSS QualInsight Java projects are published to Maven Central. As such, when releasing the project, the Maven build won't pass if some Javadoc is missing. That's why we ask contributors to test if Javadoc generation completes successfully prior to committing code. All QualInsight projects are configured in order to ease this task. All you have to do is to run the following command and read the logs:
mvn javadoc:jar
QualInsight contribution guidelines by Michel Pawlak is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Permissions beyond the scope of this license may be available at http://www.qualinsight.com/.
- Home
- Contribution Process
- Guidelines
- Architecture
- Development
- Error Handling
- Logging
- Documentation
- Testing
- Maven
- Commit
- Pull Request
