During the process of including or changing the HRIM repository some checks are made, in order to propose your changes to HRIM you should take into account the following:
A XSD schema is available in the HRIM repository in order to validate the XML files.
To validate a XML schema you can use the following command:
xmllint --schema models/schemas/module.xsd models/composite/arm/arm.xml --noout --xinclude
The HRIM generator is writed in Python 3 and it is available in the HRIM github repository.
This python application should compliant with the PEP 8 standard, also other code inspector are used in order to ensure the code quality.
The HRIM code should comply with:
Default rule-sets are used. Check the default rule-set of codefactor
Maximum characters per line is set as the PEP 8 standard, 79 characters per line.
The actual code quality of HRIM is:
We develop a ROS 2 base package that runs every single interface and validates that the generated output is valid. The package is available here.
Note that if new platform are included, new test procedures should be determined in order to ensure the generated code quality.
When a PR is reached to the HRIM repository multiple checks will occur.
Travis will ensure that:
Codefactor will check the quality of the code that is pushed.
In order to accept a pull request you should check:
All checks will be performed automatically. If a pull request have no successful checks the PR will no be accepted.