Bug + fix composer linter

This is bug report / fix for the composer linter
https://github.com/phacility/arcanist/pull/225

Newest version of composer is no longer compatible with the composer-linter.
Reproduction steps:

wget https://getcomposer.org/download/1.4.2/composer.phar
php composer.phar require phpunit/phpunit
git init . && git add composer*
echo '{"linters":{"composer":{"type":"composer"}}}' > .arclint
arc lint

the problem is that they use a calculated json of composer.json for the hash. this fix fixes the issue and keeps support for old version

See https://secure.phabricator.com/T10038

does this imply no patches for linters are accepted, even if there are completely broken like the composer linter (for newer compser versions)? is there any change my patch will reach upstream?

does this imply no patches for linters are accepted, even if there are completely broken?

Basically, yes - no patches are accepted, except for really minor changes - the only lint patch that was accepted since that task started is a documentation change.

You also didn’t read the contributing guidelines (Github PRs are never considered).

Your best route right now is creating an external library, and maybe adding it to Community Resources.