bundles/org.eclipse.orion.client.javascript/web/eslint/lib/eslint.js
function disableReporting(reportingConfig, start, rulesToDisable) {

		if (rulesToDisable.length) {
			rulesToDisable.forEach(function(rule) {
				reportingConfig.push({
					start: start,
					end: null,
					rule: rule
				});
			});
		} else {
			reportingConfig.push({
				start: start,
				end: null,
				rule: null
			});
		}
	}
function disableReporting(reportingConfig, start, rulesToDisable) {

		if (rulesToDisable.length) {
			rulesToDisable.forEach(function(rule) {
				reportingConfig.push({
					start: start,
					end: null,
					rule: rule
				});
			});
		} else {
			reportingConfig.push({
				start: start,
				end: null,
				rule: null
			});
		}
	}
function disableReporting ( reportingConfig , start , rulesToDisable ) { if ( rulesToDisable . length ) { rulesToDisable . forEach ( function ( rule ) { reportingConfig . push ( { start : start , end : null , rule : rule } ) ; } ) ; } else { reportingConfig . push ( { start : start , end : null , rule : null } ) ; } }
Add data to reporting configuration to disable reporting for list of rules
starting from start location
@param  {Object[]} reportingConfig Current reporting configuration
@param  {Object} start Position to start
@param  {string[]} rulesToDisable List of rules
@returns {void}
Add data to reporting configuration to disable reporting for list of rules starting from start location