Linting
Overview
The shared-pipeline repository provides comprehensive linting capabilities to ensure code quality, consistency, and adherence to best practices across all projects. This section covers all available linting tools and their implementations.
Available Tools
π YAML Lint β IMPLEMENTED
- Status: Active and working
- Purpose: Validates YAML syntax and formatting
- Coverage: YAML files across the repository
- Documentation: YAML Lint Details
Combined Workflow: All linting tools run together in a single lint.yml workflow
π Python Lint π PLANNED
- Status: Planned for future implementation
- Purpose: Python code quality and style checking
- Coverage: Python files with multiple linters
π Markdown Lint π PLANNED
- Status: Planned for future implementation
- Purpose: Markdown file formatting and style
- Coverage: Documentation and README files
π³ Docker Lint π PLANNED
- Status: Planned for future implementation
- Purpose: Dockerfile best practices and security
- Coverage: Docker and containerization files
βΈοΈ Kubernetes Lint π PLANNED
- Status: Planned for future implementation
- Purpose: Kubernetes manifest validation
- Coverage: YAML manifests and Helm charts
Implementation Strategy
Current Implementation
- YAML Lint is fully implemented and active
- Runs on every push to
mainbranch - Runs on all pull requests to
main - Uses shared-pipeline workflow for consistency
Future Roadmap
- Python linting - Black, isort, flake8, mypy
- Markdown linting - markdownlint for documentation
- Docker linting - Hadolint for Dockerfiles
- Kubernetes linting - kubeval, kube-score for manifests
- Terraform linting - tflint, terraform fmt for IaC
Usage
All linting tools are available as reusable workflows in the shared-pipeline repository. Projects can include them in their CI/CD pipelines by referencing the appropriate workflow files.
Quality Benefits
- Consistent formatting across all file types
- Early error detection before deployment
- Best practices enforcement automatically
- Code quality standards maintained
- Reduced technical debt through automated checks