From cce520a5deb0afc55a2c4e13dba6999a379ded8d Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 16 Mar 2017 22:47:05 -0700 Subject: tools: ignore URLs in line length linting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Joyee Cheung --- lib/_http_incoming.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/_http_incoming.js') 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) { -- cgit v1.2.3