Page MenuHomePhabricator

Remove "--lintall" and "--only-new" flags to "arc diff"
ClosedPublic

Authored by epriestley on May 30 2020, 9:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 4:32 PM
Unknown Object (File)
Sun, Dec 8, 1:39 PM
Unknown Object (File)
Thu, Dec 5, 12:08 AM
Unknown Object (File)
Thu, Nov 28, 5:12 PM
Unknown Object (File)
Sat, Nov 23, 10:37 PM
Unknown Object (File)
Nov 22 2024, 5:24 AM
Unknown Object (File)
Nov 15 2024, 2:47 PM
Unknown Object (File)
Nov 11 2024, 3:01 AM
Subscribers
None

Details

Summary

Ref T13544. These flags change the behavior of the "arc lint" subprocess.

I believe there is no reason to ever use "arc diff --lintall". If you want to find extra warnings to fix, you can use "arc lint --lintall" to express this intent.

Use of "arc diff --only-new" almost certainly means your linters are raising messages at "error" severity which should instead be raised at "warning" severity. If you only care about fixing a particular type of error in changed code, it should be raised as a "warning". The correct remedy is to adjust the severity, not use "--only-new", which is a very broad, slow, complicated hammer.

Test Plan

Searched for "lintall" and "only-new" in this workflow. These flags still exist in "arc lint", but may be changed in the future. Generated this change.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jun 5 2020, 8:24 PM
This revision was automatically updated to reflect the committed changes.