Page MenuHomePhabricator

Make lint tests handle paths better and distinguish between "0" and "null" more carefully
ClosedPublic

Authored by epriestley on May 27 2020, 7:36 PM.
Tags
None
Referenced Files
F18778485: D21291.id.diff
Sat, Oct 11, 9:39 AM
F18761919: D21291.diff
Mon, Oct 6, 4:50 PM
F18755210: D21291.id50703.diff
Sun, Oct 5, 4:19 AM
F18741498: D21291.id50702.diff
Thu, Oct 2, 1:29 PM
F18734304: D21291.id.diff
Tue, Sep 30, 10:51 PM
F18624601: D21291.id.diff
Sep 15 2025, 8:33 PM
F18612051: D21291.diff
Sep 14 2025, 8:36 AM
F18336249: D21291.id50703.diff
Aug 25 2025, 10:26 AM
Subscribers
None

Details

Summary

Ref T13543. Currently, the cpplint tests do not function because cpplint is passed a path which does not end in a suffix it recognizes.

Change the tempfile / path code to pass linter path/to/example.c-style linters a path they expect.

Then, correct some older code which was playing it fast-and-loose with "null" vs "0".

Test Plan

Ran arc unit --everything, got a clean bill of health on all the linters I have installed. (This is probably not all tests, since I have only a subset of linters installed locally that we have code for.)

Diff Detail

Repository
rARC Arcanist
Branch
lunit1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24522
Build 33793: Run Core Tests
Build 33792: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 27 2020, 7:37 PM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.