{"id":19682360,"url":"https://github.com/sublimelinter/sublimelinter-phpmd","last_synced_at":"2025-04-29T05:30:27.833Z","repository":{"id":12611001,"uuid":"15282071","full_name":"SublimeLinter/SublimeLinter-phpmd","owner":"SublimeLinter","description":"SublimeLinter plugin for php, using phpmd.","archived":false,"fork":false,"pushed_at":"2024-09-01T13:18:56.000Z","size":40,"stargazers_count":16,"open_issues_count":2,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T13:23:19.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/SublimeLinter.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":"2013-12-18T12:02:49.000Z","updated_at":"2025-02-21T04:35:51.000Z","dependencies_parsed_at":"2024-11-11T18:10:36.323Z","dependency_job_id":"be30e34f-d300-4322-bfbb-1f447d0ac675","html_url":"https://github.com/SublimeLinter/SublimeLinter-phpmd","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-phpmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-phpmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-phpmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-phpmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SublimeLinter","download_url":"https://codeload.github.com/SublimeLinter/SublimeLinter-phpmd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251444055,"owners_count":21590405,"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":[],"created_at":"2024-11-11T18:10:28.924Z","updated_at":"2025-04-29T05:30:27.823Z","avatar_url":"https://github.com/SublimeLinter.png","language":"Python","readme":"SublimeLinter-phpmd\n=========================\n\nThis linter plugin for [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter) provides an interface to [phpmd](http://phpmd.org/documentation/index.html).\nIt will be used with files that have the \"PHP\", \"HTML\" and \"HTML5\" syntax.\n\n\n## Installation\n\n### Install `SublimeLinter` and `SublimeLinter-phpmd`\n\nMake sure [Package Control](https://packagecontrol.io) is installed.\n\n1. Open the command palette (Ctrl + Shift + P)\n2. Type **Package Control: Install Package** and select it.\n3. Type **SublimeLinter** and select it.\n4. Repeat steps 1-3 typing **SublimeLinter-phpmd** in step 3.\n\n### Install `phpmd`\n\nChoose one of the installation methods below.\n\nA local install allows you to fine-tune `phpmd` on a per-project basis. A global install is available system-wide.\n\n#### Local install with [Composer](https://getcomposer.org/)\n\nOn a command line inside your project:\n```bash\ncomposer require phpmd/phpmd\n```\n\n#### Global install with [Composer](https://getcomposer.org/)\n\n```bash\ncomposer global require phpmd/phpmd\n```\n\nMake sure the composer global bin directory is available in $PATH:\n\n```bash\nexport PATH=~/.composer/vendor/bin:$PATH\n```\n\n#### Global install with [PEAR](https://pear.php.net)\n\n```bash\npear channel-discover pear.phpmd.org\npear channel-discover pear.pdepend.org\npear install --alldeps phpmd/PHP_PMD\n```\n\n## Settings\n\n- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html\n- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html\n\n### Additional settings\n\nIf you want to use a baseline file, the linter needs to run on the actual files instead of the temporary files we need for real-time \"background\" linting. \nTherefore, set the \"real_file_mode\" setting to true.\n\n```json\n\"linters\": {\n  \"phpmd\": {\n    \"real_file_mode\": true\n  }\n}\n```\n\n### Rulesets\n\nYou can configure rules via the `rulesets` setting. This can be a list of rules, or a path to a custom ruleset file.\n\n```json\n  \"linters\": {\n    \"phpmd\": {\n      \"rulesets\": \"codesize,unusedcode,naming\"\n    }\n  }\n```\n\n```json\n  \"linters\": {\n    \"phpmd\": {\n      \"rulesets\": \"${folder}/phpmd.xml\"\n    }\n  }\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsublimelinter%2Fsublimelinter-phpmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsublimelinter%2Fsublimelinter-phpmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsublimelinter%2Fsublimelinter-phpmd/lists"}