.. # SPDX-FileCopyrightText: Copyright (c) 2023,2025 Linaro Limited. # # SPDX-License-Identifier: MIT ############ 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|_).