Code Quality
The CI/CD pipeline uses GitLab’s Code Quality feature to perform static analysis of code, scripts, and documentation.
Usage
Code quality tools are configured as hooks in .pre-commit-config.yaml, sourced from official repositories. See the pre-commit and pre-commit hooks references for details on available hook types and usage.
Hooks
cspell:
Runs the cspell spelling checker over files in a project.
oelint-adv:
This hook runs an opinionated linter (see oelint-adv) over bitbake recipes and checks them for conformance to the OpenEmbedded style guide.
shell-check:
Gives warnings and suggestions for bash/sh shell scripts (see shell-check).
flake8:
Runs Python code style and quality checks, including PEP 8 compliance, import ordering, and other configurable rules. Provides clear feedback on style violations, unused variables, and potential code issues (see flake8).
yamllint:
Validates the structure and syntax of yaml/yml files (see yamllint).