Page MenuHomeDevCentral

Fix version regex
ClosedPublic

Authored by dereckson on Apr 22 2019, 08:03.
Tags
None
Referenced Files
F12437070: D2064.diff
Thu, Nov 6, 04:29
F12433290: D2064.id5206.diff
Wed, Nov 5, 20:27
F12428428: D2064.id5208.diff
Wed, Nov 5, 11:32
Unknown Object (File)
Mon, Nov 3, 17:09
Unknown Object (File)
Mon, Nov 3, 02:18
Unknown Object (File)
Sun, Nov 2, 08:34
Unknown Object (File)
Sat, Nov 1, 07:55
Unknown Object (File)
Wed, Oct 29, 09:36
Subscribers
None

Details

Summary

Allow to use version pinning with the multiline output
of shellcheck --version.

Test Plan

arc lint --everything

Diff Detail

Repository
rSCL ShellCheck linter for Arcanist
Lint
Lint Passed
Unit
No Test Coverage
Branch
dereka/fix-version-check
Build Status
Buildable 3215
Build 3464: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Apr 22 2019, 08:04

Can't repro directly through arc lint interaction the issue.

Probably best to add a unit test.

Without the fix

$ arc unit --everything
   FAIL  ArcanistShellCheckLinterTestCase::testGetVersion
Assertion failed, expected 'false' (at ArcanistShellCheckLinterTestCase.php:9): The version can't be extracted from the binary output.

With the fix

$ arc unit
   PASS   35ms★ ArcanistShellCheckLinterTestCase::testGetVersion
This revision was automatically updated to reflect the committed changes.