Page MenuHomePhabricator

In the "cpplint" binding, raise messages on "line 0" without a line
ClosedPublic

Authored by epriestley on May 27 2020, 5:58 PM.
Tags
None
Referenced Files
F13159331: D21289.id.diff
Mon, May 6, 1:26 AM
Unknown Object (File)
Fri, May 3, 7:31 AM
Unknown Object (File)
Thu, May 2, 10:18 AM
Unknown Object (File)
Wed, May 1, 10:53 PM
Unknown Object (File)
Thu, Apr 25, 10:15 AM
Unknown Object (File)
Thu, Apr 25, 1:35 AM
Unknown Object (File)
Thu, Apr 25, 1:35 AM
Unknown Object (File)
Thu, Apr 18, 2:33 AM
Subscribers
None

Details

Summary

Ref T13543. The "cpplint.py" script may emit messages on line 0, but Arcanist doesn't accept these messages.

This is a small piece of a whole set of broader issues, but stop the bleeding for now.

Test Plan
  • Ran arc lint example.h on a file with no #ifndef guard, and cpplint configured.
  • Cpplint raised a message at line "0".
  • Before change: arc choked when trying to render this.
  • After change: arc survives rendering.

Diff Detail

Repository
rARC Arcanist
Branch
cpplint1
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 24516
Build 33785: Run Core Tests
Build 33784: arc lint + arc unit

Unit TestsFailed

TimeTest
96 msArcanistCpplintLinterTestCase::testLinter
EXCEPTION (Exception): Parameter passed to "setChar()" must be an integer. #0 /Users/epriestley/dev/core/lib/arcanist/src/lint/ArcanistLintMessage.php(92): ArcanistLintMessage->validateInteger('', 'setChar') #1 /Users/epriestley/dev/core/lib/arcanist/src/lint/linter/__tests__/ArcanistLinterTestCase.php(203): ArcanistLintMessage->setChar('')
0 msAbstractDirectedGraphTestCase::testCyclicGraph
1 assertion(s) passed.
0 msAbstractDirectedGraphTestCase::testEdgeLoadFailure
1 assertion(s) passed.
0 msAbstractDirectedGraphTestCase::testNonTreeGraph
1 assertion(s) passed.
0 msAbstractDirectedGraphTestCase::testNoncyclicGraph
1 assertion(s) passed.
View Full Test Results (1 Failed · 490 Passed · 62 Skipped)