summaryrefslogtreecommitdiff
path: root/lib/_http_incoming.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-03-16 22:47:05 -0700
committerRich Trott <rtrott@gmail.com>2017-03-20 18:28:40 -0700
commitcce520a5deb0afc55a2c4e13dba6999a379ded8d (patch)
treee8ed22c6fb73ea95f5e8173a3a501b7ebd056ea9 /lib/_http_incoming.js
parent74c1e0264296d9dbd9bff9dae63ba9c81cae45d4 (diff)
downloadandroid-node-v8-cce520a5deb0afc55a2c4e13dba6999a379ded8d.tar.gz
android-node-v8-cce520a5deb0afc55a2c4e13dba6999a379ded8d.tar.bz2
android-node-v8-cce520a5deb0afc55a2c4e13dba6999a379ded8d.zip
tools: ignore URLs in line length linting
Where inclusion of a lengthy URL causes a line to exceed 80 characters in our code base, do not report the line length as a linting error. PR-URL: https://github.com/nodejs/node/pull/11890 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'lib/_http_incoming.js')
-rw-r--r--lib/_http_incoming.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/_http_incoming.js b/lib/_http_incoming.js
index be724da310..9151836ad8 100644
--- a/lib/_http_incoming.js
+++ b/lib/_http_incoming.js
@@ -144,10 +144,9 @@ function _addHeaderLines(headers, n) {
// TODO: perhaps http_parser could be returning both raw and lowercased versions
// of known header names to avoid us having to call toLowerCase() for those
// headers.
-/* eslint-disable max-len */
+
// 'array' header list is taken from:
// https://mxr.mozilla.org/mozilla/source/netwerk/protocol/http/src/nsHttpHeaderArray.cpp
-/* eslint-enable max-len */
function matchKnownFields(field) {
var low = false;
while (true) {