{"id":28956453,"url":"https://github.com/docker-compose-linter/gitlab-ci-component","last_synced_at":"2026-04-24T11:36:12.914Z","repository":{"id":300122113,"uuid":"1005247968","full_name":"docker-compose-linter/gitlab-ci-component","owner":"docker-compose-linter","description":"Mirror: GitLab CI/CD component for DCLint.","archived":false,"fork":false,"pushed_at":"2025-06-20T01:08:16.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T01:33:00.827Z","etag":null,"topics":["dclint","gitlab","gitlab-ci"],"latest_commit_sha":null,"homepage":"https://gitlab.com/dclint/ci-component","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/docker-compose-linter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"docker-compose-linter","patreon":"zavoloklom","open_collective":"dclint","buy_me_a_coffee":"zavoloklom","custom":["https://www.paypal.com/donate/?hosted_button_id=J8KS3RUFKSHDL","https://boosty.to/zavoloklom"]}},"created_at":"2025-06-19T23:33:11.000Z","updated_at":"2025-06-20T01:08:19.000Z","dependencies_parsed_at":"2025-06-20T01:33:04.082Z","dependency_job_id":"33c0f5a3-bd34-4914-9b35-72fcaff01bbb","html_url":"https://github.com/docker-compose-linter/gitlab-ci-component","commit_stats":null,"previous_names":["docker-compose-linter/gitlab-ci-component"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/docker-compose-linter/gitlab-ci-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker-compose-linter%2Fgitlab-ci-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker-compose-linter%2Fgitlab-ci-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker-compose-linter%2Fgitlab-ci-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker-compose-linter%2Fgitlab-ci-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docker-compose-linter","download_url":"https://codeload.github.com/docker-compose-linter/gitlab-ci-component/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker-compose-linter%2Fgitlab-ci-component/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261556298,"owners_count":23176665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dclint","gitlab","gitlab-ci"],"created_at":"2025-06-23T21:02:08.087Z","updated_at":"2026-04-24T11:36:12.909Z","avatar_url":"https://github.com/docker-compose-linter.png","language":"JavaScript","funding_links":["https://github.com/sponsors/docker-compose-linter","https://patreon.com/zavoloklom","https://opencollective.com/dclint","https://buymeacoffee.com/zavoloklom","https://www.paypal.com/donate/?hosted_button_id=J8KS3RUFKSHDL","https://boosty.to/zavoloklom","https://www.patreon.com/c/zavoloklom"],"categories":[],"sub_categories":[],"readme":"# DCLint Component for GitLab\n\n[![GitLab Release](https://img.shields.io/gitlab/v/release/dclint%2Fci-component?style=for-the-badge\u0026logo=gitlab)](https://gitlab.com/dclint/ci-component/-/releases)\n\nThis GitLab CI/CD component automates Docker Compose linting using\n[DCLint](https://github.com/zavoloklom/docker-compose-linter).\n\nIt runs `dclint` and publishes a\n[Code Quality Report](https://docs.gitlab.com/ci/testing/code_quality/#view-code-quality-results) compatible with GitLab\nMerge Request UI.\n\n\u003e The source code is hosted on [GitLab](https://gitlab.com/dclint/ci-component). Although there is an automatic mirror\n\u003e of this repository on [GitHub](https://github.com/docker-compose-linter/gitlab-ci-component), all bug reports, feature\n\u003e requests, and merge requests should be submitted through GitLab.\n\n## DCLint Features\n\n- **Error Detection**: Identifies syntax errors and common issues in Docker Compose files.\n- **Style Enforcement**: Enforces best practices and style guidelines for maintainable configurations.\n- **Flexible Integration**: Can be used locally, in Docker, or integrated into CI/CD pipelines.\n- **Configurable Rules**: Customize the linter's behavior and rules according to your project's needs.\n- **Auto-fixable Rules**: Some rules include an auto-fix mode, allowing you to automatically format and correct certain\n  issues in your files.\n- **Comments Support**: After automated sorting and fixing, comments remain in the correct place, ensuring no important\n  information is lost during the formatting process.\n- **Anchor Support:** Supports YAML anchors for shared configuration sections, with some limitations.\n\n## Usage Example\n\n```yml\ninclude:\n  - component: $CI_SERVER_FQDN/dclint/ci-component/dclint@v1.0.0\n```\n\n\u003e 💡 Requires GitLab 16.8 or later\n\n### Merge Request Widget Example\n\nDCLint highlights issues directly in the GitLab MR widget using Codequality reports.\n\n![DCLint MR Example](./assets/gitlab-pr-widget.png){height=300px}\n\n## Inputs\n\n| Name            | Type      | Default                                 | Description                                    |\n| --------------- | --------- | --------------------------------------- | ---------------------------------------------- |\n| `target`        | `string`  | `.`                                     | DCLint Target path to lint                     |\n| `options`       | `string`  | `\"\"`                                    | DCLint Extra CLI flags (e.g. `--recursive`)    |\n| `formatter`     | `string`  | `codeclimate`                           | DCLint Formatter for output                    |\n| `version`       | `string`  | `3.1.0`                                 | DCLint Version (used as `${version}-alpine`)   |\n| `job_prefix`    | `string`  | `codequality-dclint`                    | GitLab CI Job prefix                           |\n| `job_stage`     | `string`  | `.pre`                                  | GitLab CI Pipeline stage                       |\n| `rules`         | `array`   | `- if: '$CI_PIPELINE_SOURCE == \"push\"'` | GitLab CI Rules                                |\n| `tags`          | `array`   | `[]`                                    | Gitlab CI Runner tags                          |\n| `allow_failure` | `boolean` | `false`                                 | Allow job to fail without failing the pipeline |\n\n## Documentation\n\nSee [DCLint Documentation](https://github.com/zavoloklom/docker-compose-linter).\n\n## Contributing\n\nMerge requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nIf you'd like to contribute to this project, please read through the [CONTRIBUTING.md](./CONTRIBUTING.md) file.\n\nPlease note that this project is released with a [Contributor Code of Conduct](./CODE_OF_CONDUCT.md). By participating\nin this project, you agree to abide by its terms.\n\n## Versioning and Changelog\n\nThis repository itself is versioned using [`semantic-release`](https://github.com/semantic-release/semantic-release).\nAll changes are categorized and released based on [Conventional Commits](https://www.conventionalcommits.org/).\n\nThe changelog is automatically generated based on\n[semantic-release](https://github.com/semantic-release/semantic-release) and\n[conventional commits](https://www.conventionalcommits.org/en/v1.0.0/).\n\nSee the [CHANGELOG.md](./CHANGELOG.md) file for detailed lists of changes for each version.\n\n### Dependency Updates\n\n- The versions of `dclint` are **checked weekly** via a scheduled pipeline and used as default value.\n- If a new version is available, a **merge request is automatically created** to update all relevant files.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more information.\n\n## Contacts and Support\n\nIf you find this repository helpful, kindly consider showing your appreciation by giving it a star ⭐.\n\nIf you have any questions or suggestions, feel free to reach out:\n\n- **Email**: [s.kupletsky@gmail.com](mailto:s.kupletsky@gmail.com)\n- **Х/Twitter**: [zavoloklom](https://x.com/zavoloklom)\n- **Instagram**: [zavoloklom](https://www.instagram.com/zavoloklom/)\n- **GitHub**: [zavoloklom](https://github.com/zavoloklom)\n\nAlso, you can support this project with a one-time donation or becoming a sponsor:\n\n[![PayPal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge\u0026logo=paypal\u0026logoColor=white)](https://www.paypal.com/donate/?hosted_button_id=J8KS3RUFKSHDL)\n[![Patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge\u0026logo=patreon\u0026logoColor=white)](https://www.patreon.com/c/zavoloklom)\n[![GitHub Sponsors](https://img.shields.io/badge/GitHub%20Sponsors-171515?style=for-the-badge\u0026logo=github\u0026logoColor=white)](https://github.com/sponsors/docker-compose-linter)\n[![Open Collective](https://img.shields.io/badge/Open%20Collective-3385FF?style=for-the-badge\u0026logo=opencollective\u0026logoColor=white)](https://opencollective.com/dclint)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocker-compose-linter%2Fgitlab-ci-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocker-compose-linter%2Fgitlab-ci-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocker-compose-linter%2Fgitlab-ci-component/lists"}