{"id":19305157,"url":"https://github.com/hussainweb/drupal-code-quality","last_synced_at":"2025-07-09T10:38:50.727Z","repository":{"id":74478540,"uuid":"95049160","full_name":"hussainweb/drupal-code-quality","owner":"hussainweb","description":"Docker image containing various QA tools for Drupal","archived":false,"fork":false,"pushed_at":"2017-07-05T09:46:02.000Z","size":4,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T12:35:59.265Z","etag":null,"topics":["code-quality","codespell","docker","docker-image","drupal","drupal-8","pdepend","php","php-codesniffer","phpcpd","phploc","phpmd","phpmetrics","phpqatools","phpunit","static-analysis","static-code-analysis"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/hussainweb/drupal-code-quality/","language":null,"has_issues":true,"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/hussainweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2017-06-21T21:48:50.000Z","updated_at":"2023-02-13T17:08:28.000Z","dependencies_parsed_at":"2023-02-24T06:45:51.882Z","dependency_job_id":null,"html_url":"https://github.com/hussainweb/drupal-code-quality","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hussainweb/drupal-code-quality","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hussainweb%2Fdrupal-code-quality","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hussainweb%2Fdrupal-code-quality/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hussainweb%2Fdrupal-code-quality/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hussainweb%2Fdrupal-code-quality/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hussainweb","download_url":"https://codeload.github.com/hussainweb/drupal-code-quality/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hussainweb%2Fdrupal-code-quality/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264441548,"owners_count":23608906,"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":["code-quality","codespell","docker","docker-image","drupal","drupal-8","pdepend","php","php-codesniffer","phpcpd","phploc","phpmd","phpmetrics","phpqatools","phpunit","static-analysis","static-code-analysis"],"created_at":"2024-11-09T23:35:09.199Z","updated_at":"2025-07-09T10:38:50.718Z","avatar_url":"https://github.com/hussainweb.png","language":null,"readme":"# drupal-code-quality\n[Drupal Code Quality](https://hub.docker.com/r/hussainweb/drupal-code-quality/) is a Docker image designed to aid in static analysis for Drupal code bases. It is based off [Adam Culp's PHP Code Quality](https://hub.docker.com/r/adamculp/php-code-quality/) Docker image. Therefore, all tools present in adamculp/php-code-quality are also present here. See [README.md in that package](https://github.com/adamculp/php-code-quality/blob/master/README.md) for more details.\n\nFrom a Drupal perspective, this Docker image adds:\n- [drupal/coder](https://packagist.org/packages/drupal/coder)\n- [drupalsecure sniffs](http://git.drupal.org/sandbox/coltrane/1921926)\n- [PAReview.sh](https://github.com/klausi/pareviewsh)\n- [codespell](https://github.com/lucasdemarchi/codespell)\n- [eslint](https://github.com/eslint/eslint)\n- [stylelint](https://github.com/stylelint/stylelint)\n\n## Usage\nRun these commands in your repository's root directory. The commands below assume that the Drupal site lives under the `docroot` directory.\n\n### Get to a shell\nThis is the simplest command to get into a shell with your code mounted under `/app`.\n\n```\ndocker run -it --rm -v \"$PWD\":/app -w /app hussainweb/drupal-code-quality:latest bash\n```\n\n### Run phpcs with Drupal coder sniffs\n\n```\ndocker run -it --rm -v \"$PWD\":/app -w /app hussainweb/drupal-code-quality:latest phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme  docroot/modules/custom/ docroot/themes/custom/\n```\n\nRefer to [adamculp/php-code-quality's Usage](https://github.com/adamculp/php-code-quality/blob/master/README.md#usage) for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhussainweb%2Fdrupal-code-quality","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhussainweb%2Fdrupal-code-quality","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhussainweb%2Fdrupal-code-quality/lists"}