Page MenuHomePhabricator

Remove "arc lint --only-changed"
ClosedPublic

Authored by epriestley on Sep 25 2017, 6:39 PM.
Tags
None
Referenced Files
F13089743: D18644.diff
Thu, Apr 25, 1:59 AM
Unknown Object (File)
Sat, Mar 30, 5:12 AM
Unknown Object (File)
Mar 11 2024, 2:23 AM
Unknown Object (File)
Mar 9 2024, 1:36 PM
Unknown Object (File)
Feb 8 2024, 12:48 PM
Unknown Object (File)
Jan 18 2024, 11:22 PM
Unknown Object (File)
Jan 13 2024, 7:41 AM
Unknown Object (File)
Jan 6 2024, 9:43 AM
Subscribers
None

Details

Summary

Ref T12996. See also T9749. This option is the opposite of --lintall, and means "don't show warnings on changed lines".

However, it's confusing (and I think no one uses it), and we can reasonably infer what you mean if you give us --rev. Simplify this logic a bit and choose the "all / only changed" behavior based on the only sensible thing we can reasonably do given the flags.

As with all the other cruft here, I'm pretty sure this came from FB.

Test Plan

Grepped for only-changed, lintAll, created this revision.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

amckinley added inline comments.
src/workflow/ArcanistLintWorkflow.php
172–176

I personally prefer the Boy Scout Motto style of lint enforcement, but this is a reasonable default.

This revision is now accepted and ready to land.Sep 25 2017, 7:56 PM
This revision was automatically updated to reflect the committed changes.
src/workflow/ArcanistLintWorkflow.php
209

This condition got flipped and I didn't catch it in my initial poking, but D18651 has a fix for it.