Page MenuHomePhabricator

Add a Composer linter
ClosedPublic

Authored by joshuaspence on Aug 13 2015, 11:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
May 8 2025, 10:03 AM
Unknown Object (File)
May 2 2025, 11:44 PM
Unknown Object (File)
May 2 2025, 4:27 AM
Unknown Object (File)
Apr 30 2025, 10:57 AM
Unknown Object (File)
Apr 30 2025, 10:56 AM
Unknown Object (File)
Apr 23 2025, 10:07 AM
Unknown Object (File)
Apr 19 2025, 11:41 PM
Unknown Object (File)
Apr 16 2025, 8:16 PM
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.