Closed Bug 1342764 Opened 8 years ago Closed 8 years ago

Add a pre-commit hook to prevent new versioned scripts from sneaking in

Categories

(Developer Services :: Mercurial: hg.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: emk, Unassigned)

References

Details

We should ban "/javascript;version=" from new commits once bug 1342144 has been fixed.
Some new versioned scripts are seaking in, as expected.
This should be a lint check in CI, not a VCS hook. Probably the easiest way to add this check is to teach `mach lint` to do the check then add a TaskCluster task in https://hg.mozilla.org/mozilla-central/file/tip/taskcluster/ci/source-test/mozlint.yml. See also other .yml files in that directory for similar lint-like CI tasks.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
OK, filed bug 1349901.
You need to log in before you can comment on or make changes to this bug.