Page MenuHomePhabricator

Improve `ArcanistLinterStandardTestCase`
Needs ReviewPublic

Authored by wjiang on Apr 24 2017, 1:04 AM.
Tags
None
Referenced Files
F19826053: D17783.id42759.diff
Mar 8 2026, 4:46 PM
F19823680: D17783.id.diff
Mar 7 2026, 2:21 PM
F19816321: D17783.id42868.diff
Mar 5 2026, 5:01 AM
F19816212: D17783.id42758.diff
Mar 5 2026, 4:24 AM
F19816209: D17783.id42758.diff
Mar 5 2026, 4:24 AM
F19816139: D17783.id42867.diff
Mar 5 2026, 4:14 AM
F19805793: D17783.id42867.diff
Mar 2 2026, 11:34 PM
F19749442: D17783.diff
Feb 15 2026, 8:14 PM

Details

Summary

Ref T12631. Let unit test actually test ArcanistLinterStandard.

Test Plan

Run unit test

Diff Detail

Repository
rARC Arcanist
Branch
arcpatch-D17783
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 16794
Build 22413: 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.

8

Maybe call this getBaseLinter?

10

I think this should be called getStandard

15–18

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