Tabs/Spaces: Tabs are set at 4, Tabs are converted to spaces Line Endings: LF only
Style: Coding style guidelines are included as files in the repository:
- Qml: CodingStyle.qml
Documentation: Use the doxygen tags as shown in the coding style examples.
Unit Testing the Source Code
In an effort to get the best possibly reliability from the code, the complete code based will gradually be unit tested. The unit tests in the codebase use the QTestLib framework which is part of Qt, so there are no additional dependencies.
You are encouraged to write unit tests for new code you are adding to QGroundControl. To run the exiting test suite, simply run the debug build with –unittest on the command line. You can also run a specific unit test with –unittest:UnitTestName.