Closed
Bug 1377049
Opened 7 years ago
Closed 7 years ago
Add pre-push and pre-commit version control hooks
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Developer Infrastructure
Lint and Formatting
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1361972
People
(Reporter: ahal, Assigned: ahal)
Details
Attachments
(1 obsolete file)
There are currently some hooks for eslint hanging around the tree. But it would be nice if there were generic mozlint hooks that ran all the linters. I'd also like to provide some pre-push hooks as an alternative to pre-commit.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
This patch obsoletes the eslintvalidate hooks, though if we want to remove them we'll need some kind of error message that includes the upgrade path. Also by design, ./mach lint --workdir lints both staged and unstaged files in git. Maybe it needs some kind of mode that only lints the staged files? I also haven't really tested the pre-push git hook as I don't feel like setting up cinnabar on my laptop. I'll do some testing when I get back from the work week (though it looks like it should work).
Assignee | ||
Updated•7 years ago
|
Summary: [mozlint] Add pre-push and pre-commit version control hooks → Add pre-push and pre-commit version control hooks
Assignee | ||
Updated•7 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•7 years ago
|
Attachment #8882084 -
Attachment is obsolete: true
Updated•6 years ago
|
Product: Testing → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•