Page MenuHomePhabricator

Add a Composer linter
ClosedPublic

Authored by joshuaspence on Aug 13 2015, 11:31 AM.
Tags
None
Referenced Files
F18784593: D13883.id33519.diff
Oct 13 2025, 1:21 PM
F18712690: D13883.id.diff
Sep 29 2025, 5:30 AM
F18600405: D13883.diff
Sep 13 2025, 9:41 AM
F18367784: D13883.diff
Aug 28 2025, 12:06 AM
F18367773: D13883.diff
Aug 28 2025, 12:05 AM
F18085068: D13883.diff
Aug 5 2025, 6:59 PM
F18044744: D13883.diff
Aug 3 2025, 7:42 AM
Unknown Object (File)
May 8 2025, 10:03 AM
Subscribers
Tokens
"Like" token, awarded by johnny-bit.

Details

Summary

Adds a basic linter for ensuring that composer.lock files are up-to-date.

Test Plan

We have been using this in a private project for around a month.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add a Composer linter.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Aug 13 2015, 2:38 PM

I can write tests for this linter if you want, but it might require some modifications to ArcanistLinterTestCase because this linter effectively requires two files to exist with a specific filename.

src/lint/linter/ArcanistComposerLinter.php
31

This seemed nicer than having to set a regex in .arclint.

This revision was automatically updated to reflect the committed changes.