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)
Mon, Mar 11, 2:23 AM
Unknown Object (File)
Sat, Mar 9, 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
Unknown Object (File)
Dec 28 2023, 6:57 PM
Unknown Object (File)
Dec 27 2023, 12:12 PM
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.