We have a number of overcommit hooks defined, and overcommit runs lint for us. I'd like to delegate linting to it, capture those results via arc and push them up to Differential so that they are visible on revisions. The problem I'm running into is that overcommit manages which files to run on; and it doesn't take a filename argument, which means I can't use the script-and-regex linter to wrap it. Is there a way to do this better?
Description
Status | Assigned | Task | ||
---|---|---|---|---|
Open | epriestley | T13098 Plans: Arcanist toolsets and extensions | ||
Open | epriestley | T10038 Plan the mid-term pathway for unit-test/linter bindings | ||
Wontfix | epriestley | T11397 Overcommit -> arc lint |
Event Timeline
Does overcommit emit patches? I'm reading through the docs, and not clear what the benefit specifically is over arcanist. If it's ease of distribution, we're actively working on that.
Not claiming it's better (it seems to do a lot of what arc lint does, minus the ability to amend), just that we already have linting set up through it and have custom linters implemented in that framework.
I'm just going to close this in favor of T10038. The short answer is: write bindings.
Bindings are kind of hard to write right now, and very hard to update/distribute in many cases. T5055 will make bindings easier to distribute/update, then T10038 will make bindings easier to write. The links in T10038 have a number of examples of how to write bindings today (see all the linked patches) but I don't plan to bring any more bindings upstream (instead, they'll be distributed as packages via T5055 in the future).