Page MenuHomeDevCentral

Fix version regex
ClosedPublic

Authored by dereckson on Apr 22 2019, 08:03.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 07:09
Unknown Object (File)
Wed, Nov 13, 01:02
Unknown Object (File)
Tue, Nov 12, 23:58
Unknown Object (File)
Tue, Nov 12, 05:03
Unknown Object (File)
Sun, Nov 10, 08:03
Unknown Object (File)
Wed, Nov 6, 15:30
Unknown Object (File)
Thu, Oct 31, 20:09
Unknown Object (File)
Fri, Oct 25, 19:02
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 Not Applicable
Unit
Tests Not Applicable

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.