Page MenuHomePhabricator

Improve `ArcanistLinterStandardTestCase`
Needs ReviewPublic

Authored by wjiang on Apr 24 2017, 1:04 AM.
Tags
None
Referenced Files
F14230566: D17783.diff
Wed, Dec 11, 9:09 PM
Unknown Object (File)
Sun, Dec 8, 3:51 PM
Unknown Object (File)
Fri, Dec 6, 5:04 PM
Unknown Object (File)
Wed, Dec 4, 7:08 PM
Unknown Object (File)
Wed, Dec 4, 7:08 PM
Unknown Object (File)
Wed, Dec 4, 6:47 PM
Unknown Object (File)
Sat, Nov 30, 11:58 PM
Unknown Object (File)
Thu, Nov 28, 11:44 AM

Details

Summary

Ref T12631. Let unit test actually test ArcanistLinterStandard.

Test Plan

Run unit test

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 16685
Build 22254: arc lint + arc unit

Event Timeline

joshuaspence added a subscriber: joshuaspence.

LGTM. @epriestley, it would be greatly appreciated if this could be accepted upstream. We have a large number of XHPAST linter rules (I think ~200) and we want to write integration tests to ensure that they play nicely together.

src/lint/linter/standards/__tests__/ArcanistLinterStandardTestCase.php
4

You should extend ArcanistLinterTestCase instead

5–8

You might want to leave this.

6–18

Maybe call this getBaseLinter?

8

I think this should be called getStandard

13–16

Ideally, we should have some sort of $linter->applyStandard($standard) method... because this code is currently duplicated from ArcanistLinter

wjiang marked 5 inline comments as done.
  • Add applyStandard