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
Unknown Object (File)
Thu, Jan 23, 11:44 PM
Unknown Object (File)
Thu, Jan 23, 11:44 PM
Unknown Object (File)
Thu, Jan 23, 11:44 PM
Unknown Object (File)
Sun, Jan 12, 7:54 PM
Unknown Object (File)
Dec 26 2024, 5:26 PM
Unknown Object (File)
Dec 26 2024, 5:16 PM
Unknown Object (File)
Dec 21 2024, 4:18 PM
Unknown Object (File)
Nov 27 2024, 9:26 AM

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.