diablomedia / arc-composer
Composer linter for Phabricator's Arcanist
Installs: 2 528
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
pkg:composer/diablomedia/arc-composer
Requires
- php: >= 5.6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.11
- phpstan/phpstan: ^0.9.2
This package is auto-updated.
Last update: 2025-09-27 09:19:19 UTC
README
Composer linter for Arcanist.
This validates composer.json/composer.lock files using composer validate.
Installation
Require this project via composer:
composer require-dev diablomedia/arc-composer
Add the load path to your .arcconfig:
{
"load": ["vendor/diablomedia/arc-composer"]
}
Configuration
Add the linter to your .arclint file. It is recommended to include both your composer.json and composer.lock files so that the linter will run if either of these files have changed:
{
"linters": {
"composer": {
"bin": ["/usr/local/bin/composer"],
"type": "diablomedia-composer",
"include": [
"(^composer.json$)",
"(^composer.lock$)"
],
"strict": "false"
}
}
}
Enabling the "strict" flag will cause warnings to show up as errors, and cause the --strict flag to be passed to the composer validate command.