Page MenuHomePhabricator

Allow lint results to be outputted as JSON in realtime
AbandonedPublic

Authored by hach-que on Feb 5 2015, 11:32 AM.
Tags
None
Referenced Files
F18984802: D11691.id.diff
Nov 17 2025, 12:45 PM
F18854514: D11691.diff
Nov 1 2025, 12:21 AM
F18750207: D11691.id28133.diff
Oct 4 2025, 6:54 AM
F18741893: D11691.id.diff
Oct 2 2025, 4:29 PM
F18739637: D11691.diff
Oct 1 2025, 10:23 PM
Unknown Object (File)
May 3 2025, 8:37 PM
Unknown Object (File)
Apr 22 2025, 11:05 PM
Unknown Object (File)
Mar 25 2025, 4:51 PM

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Summary

This provides a machine-consumable way to get lint results as they occur. With the json-realtime option, each lint result is outputted on it's own line as "ugly" JSON, prefixed with an ##arc-lint## string.

Mostly this is to allow Harbormaster to parse lint results as they are run, rather than parsing all the results at the end.

As per D11690, the ##arc-lint## string is an identifier so we know what lines of output are lint results.

Test Plan

Ran arc lint --everything --output json-realtime and saw the expected results.

Diff Detail

Repository
rARC Arcanist
Branch
arc-lint-realtime
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 4348
Build 4361: [Placeholder Plan] Wait for 30 Seconds

Unit TestsFailed

TimeTest
236 msArcanistXMLLinterTestCase::testLinter
19 msArcanistChmodLinterTestCase::testLinter
0 msArcanistClosureLinterTestCase::testVersion
15 msArcanistCommitLinterTestCase::testLinter
0 msArcanistCpplintLinterTestCase::testVersion
View Full Test Results (1 Failed · 20 Passed · 30 Skipped)

Event Timeline

hach-que retitled this revision from to Allow lint results to be outputted as JSON in realtime.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added a reviewer: epriestley.
epriestley edited edge metadata.

See D11690.

This revision now requires changes to proceed.Aug 8 2015, 6:43 PM

To be implemented completely differently.