Closed
Bug 1433912
Opened 6 years ago
Closed 6 years ago
Create lint tasks for the 'codespell' linter
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Tracking
(firefox60 fixed)
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: ahal, Assigned: ahal)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
We recently added two new linters, but don't have tasks for them yet. This is bad because it means someone could inadvertently add lint bustage to the tree if they don't have the hook installed/don't use mozreview, then other people will see that bustage on their patches. This is my fault, I should have made it a requirement when doing the reviews. To prevent this from happening in the future, I think we should create a 'misc' lint task that runs all linters that don't otherwise have an explicit task defined for them (or I could just be better at the reviews).
Comment 1•6 years ago
|
||
Bug 1432627 is now updated for a shellcheck CI job, thank you for the reminder.
Assignee | ||
Comment 2•6 years ago
|
||
Also, I didn't notice that the codespell linter doesn't actually pass everywhere it runs (I should have tested locally). This makes it a high priority to get fixed ASAP, otherwise people who modify those files will see unrelated lint errors. For now I propose we just run codespell on python/mozlint and tools/lint. We can take the time to enable it in more places once this is fixed.
Assignee | ||
Comment 3•6 years ago
|
||
(In reply to Simon Fraser [:sfraser] ⌚️GMT from comment #1) > Bug 1432627 is now updated for a shellcheck CI job, thank you for the > reminder. Ah, thanks for the patch! I'll just make this bug about fixing codespell then.
Assignee | ||
Updated•6 years ago
|
Summary: Create lint tasks for 'shellcheck' and 'codespell' linters → Create lint tasks for the 'codespell' linter
Comment 4•6 years ago
|
||
I still like the idea of a 'misc' lint task that acts as a catch-all. I wonder if, without explicit directories to examine, the linter could warn rather than fail a check-in with that scenario? Or is that too risky?
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 7•6 years ago
|
||
mozreview-review |
Comment on attachment 8946263 [details] Bug 1433912 - [lint] Only run codespell linter on python/mozlint and tools/lint for now, https://reviewboard.mozilla.org/r/216216/#review222028 Less typos \o/
Attachment #8946263 -
Flags: review?(sledru) → review+
Comment 8•6 years ago
|
||
mozreview-review |
Comment on attachment 8946264 [details] Bug 1433912 - [lint] Create a task for the codespell linter, https://reviewboard.mozilla.org/r/216218/#review222030 ::: taskcluster/ci/source-test/mozlint.yml:26 (Diff revision 1) > + treeherder: > + symbol: spell > + run: > + mach: lint -l codespell -f treeherder > + when: > + files-changed: I guess we don't have any other choice than duplication here?
Attachment #8946264 -
Flags: review?(sledru) → review+
Assignee | ||
Comment 9•6 years ago
|
||
mozreview-review-reply |
Comment on attachment 8946264 [details] Bug 1433912 - [lint] Create a task for the codespell linter, https://reviewboard.mozilla.org/r/216218/#review222030 > I guess we don't have any other choice than duplication here? I'll file a follow-up to get rid of this duplication. Though, I think we're going to be moving away from the 'when.files-changed' optimization in Taskcluster, so it might fix itself. But yeah, there's no "easy fix" at the moment, and I want to get this landed before developers start complaining about lint failures :).
Comment 10•6 years ago
|
||
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/399becfe083a [lint] Only run codespell linter on python/mozlint and tools/lint for now, r=sylvestre https://hg.mozilla.org/integration/autoland/rev/df92ffbb0d01 [lint] Create a task for the codespell linter, r=sylvestre
Assignee | ||
Comment 11•6 years ago
|
||
Here's a try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=76e18174a4fcb412a6e7063449dc650b5ed1fedd I'll also file a follow-up to re-enable this linter on more directories. As of this patch, it'll only be running on tools/lint and python/mozlint.
Comment 12•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/399becfe083a https://hg.mozilla.org/mozilla-central/rev/df92ffbb0d01
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Updated•6 years ago
|
Product: Testing → Firefox Build System
Updated•5 years ago
|
Version: Version 3 → 3 Branch
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
•