Modules best practices
Checklist:
Perform module static analysis
space -m spacechecker /run/ -- .Spell checking
:set spellDocument all shell script functions for
spacedocexportDocument all nodes in the configuration file with proper Title and Description i.e.
_info/titleand_info/descRun shell script static code analysis tools:
checkbashismsandshellcheckGenerate README file
GENERATE_VARIABLES=0 GENERATE_TOC=0 space -f ../space/tools/spacedoc/Spacefile.yaml /module/ -- Spacefile.shCreate test directory with testrunner-compatible tests
Add continuous integration targets for running tests on external test and build servers
Always take careful action when making decisions based on data gathered, be it locally or remotely, because data could be tampered, misdirected or turned malicious by a compromised remote server.
Make sure build time module functions specify
SPACE_FNheader variable at the beginning of the function scope for clarity. Preferably in the very first line or the second line if first line isSPACE_SIGNATURE="".
Previous: Modules versioning
Next: Modules advanced topics
Edit this page