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
Unknown Object (File)
Thu, Dec 19, 12:52 AM
Unknown Object (File)
Fri, Dec 6, 4:58 PM
Unknown Object (File)
Fri, Dec 6, 9:45 AM
Unknown Object (File)
Nov 19 2024, 8:10 AM
Unknown Object (File)
Nov 17 2024, 7:47 PM
Unknown Object (File)
Nov 17 2024, 7:56 AM
Unknown Object (File)
Nov 17 2024, 3:26 AM
Unknown Object (File)
Nov 15 2024, 4:20 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.