Page MenuHomePhabricator

Improve `ArcanistLinterStandardTestCase`
Needs ReviewPublic

Authored by wjiang on Apr 24 2017, 1:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 20, 8:27 PM
Unknown Object (File)
Mon, May 19, 3:58 AM
Unknown Object (File)
May 9 2025, 11:57 AM
Unknown Object (File)
May 6 2025, 7:58 AM
Unknown Object (File)
Apr 25 2025, 3:05 AM
Unknown Object (File)
Apr 18 2025, 8:06 PM
Unknown Object (File)
Apr 17 2025, 5:31 PM
Unknown Object (File)
Apr 17 2025, 3:30 AM

Details

Summary

Ref T12631. Let unit test actually test ArcanistLinterStandard.

Test Plan

Run unit test

Diff Detail

Repository
rARC Arcanist
Branch
arcpatch-D17783_1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 16686
Build 22255: 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

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