Closed Bug 1370240 Opened 9 years ago Closed 9 years ago

Enable the ESLint no-control-regex rule across mozilla-central

Categories

(Developer Infrastructure :: Lint and Formatting, enhancement)

3 Branch
enhancement
Not set
normal

Tracking

(firefox55 fixed)

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file)

no-control-regex is already enabled for a few subdirectories, there's only one instance in the tree currently - that should be there. So I think we should enable it across the tree, and if we do need to break it, then it'll be obvious & intentional. From: http://eslint.org/docs/rules/no-control-regex Control characters are special, invisible characters in the ASCII range 0-31. These characters are rarely used in JavaScript strings so a regular expression containing these characters is most likely a mistake.
Comment on attachment 8874449 [details] Bug 1370240 - Enable the ESLint no-control-regex rule across mozilla-central. https://reviewboard.mozilla.org/r/145820/#review149780
Attachment #8874449 - Flags: review?(dtownsend) → review+
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f9eddc0d3345 Enable the ESLint no-control-regex rule across mozilla-central. r=mossop
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Product: Testing → Firefox Build System
Version: Version 3 → 3 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: