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)
Thu, Nov 28, 11:08 AM
Unknown Object (File)
Wed, Nov 27, 4:22 PM
Unknown Object (File)
Tue, Nov 26, 11:48 PM
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
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
Branch
ll5
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/workflow/ArcanistLintWorkflow.php:339XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 18537
Build 24969: Run Core Tests
Build 24968: arc lint + arc unit

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.