Page MenuHomePhabricator

Remove "arc lint --only-changed"
ClosedPublic

Authored by epriestley on Sep 25 2017, 6:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 5:56 AM
Unknown Object (File)
Sat, Nov 9, 2:42 PM
Unknown Object (File)
Sat, Nov 9, 2:42 PM
Unknown Object (File)
Sat, Nov 9, 2:42 PM
Unknown Object (File)
Wed, Nov 6, 12:06 AM
Unknown Object (File)
Oct 17 2024, 2:11 PM
Unknown Object (File)
Oct 17 2024, 1:26 PM
Unknown Object (File)
Oct 15 2024, 5:34 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.