Page MenuHomePhabricator

Add a Composer linter
ClosedPublic

Authored by joshuaspence on Aug 13 2015, 11:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 7:22 AM
Unknown Object (File)
Thu, Apr 18, 7:22 AM
Unknown Object (File)
Thu, Apr 18, 7:16 AM
Unknown Object (File)
Thu, Apr 18, 7:09 AM
Unknown Object (File)
Sun, Mar 31, 6:42 AM
Unknown Object (File)
Mar 8 2024, 12:46 PM
Unknown Object (File)
Mar 6 2024, 4:42 AM
Unknown Object (File)
Mar 5 2024, 7:02 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.