Page MenuHomePhabricator

Upgrade C# linter to support linting multiple files at a time
ClosedPublic

Authored by hach-que on Nov 18 2013, 8:08 AM.
Tags
None
Referenced Files
F14018023: D7599.id.diff
Tue, Nov 5, 3:18 AM
F14012253: D7599.id17150.diff
Fri, Nov 1, 9:51 AM
F13967914: D7599.id17144.diff
Wed, Oct 16, 5:02 PM
Unknown Object (File)
Sep 1 2024, 10:24 AM
Unknown Object (File)
Aug 27 2024, 5:47 AM
Unknown Object (File)
Aug 5 2024, 6:16 AM
Unknown Object (File)
Jul 30 2024, 8:42 AM
Unknown Object (File)
Jul 25 2024, 12:16 AM

Details

Summary

This upgrades cslint to support linting multiple files at a time. As this required a backwards-incompatible to cslint, I've added a SUPPORTED_VERSION constant which can be used to detect these kinds of breaking changes in the future (and prompt users to upgrade the cslint they have in their repository).

The reason for this upgrade is mainly around running arc lint --everything, where there are significant performance benefits gained when bulk linting lots of files per command execution.

Test Plan

Upgraded cslint in the Tychaia repository and ran arc lint --everything --trace. Saw a substantially less number of executions happening for linting and all of the results came through as expected.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

hach-que updated this revision to Unknown Object (????).Nov 18 2013, 8:11 AM

Removed debug code

I'm just averting my eyes from everything in this revision.

src/lint/linter/ArcanistCSharpLinter.php
122–126

We could probably just ignore this, it seems unlikely that future versions will casually break basic backward compatibility?