bundles/org.eclipse.orion.client.javascript/web/eslint/lib/eslint.js
function createStubRule(message) {

		/**
		 * Creates a fake rule object
		 * @param {object} context context object for each rule
		 * @returns {object} collection of node to listen on
		 */
		function createRuleModule(context) {
			return {
				Program: function(node) {
					context.report(node, message);
				}
			};
		}

		if (message) {
			return createRuleModule;
		} else {
			throw new Error("No message passed to stub rule");
		}
	}
function createStubRule(message) {

		/**
		 * Creates a fake rule object
		 * @param {object} context context object for each rule
		 * @returns {object} collection of node to listen on
		 */
		function createRuleModule(context) {
			return {
				Program: function(node) {
					context.report(node, message);
				}
			};
		}

		if (message) {
			return createRuleModule;
		} else {
			throw new Error("No message passed to stub rule");
		}
	}
function createStubRule ( message ) { /**
		 * Creates a fake rule object
		 * @param {object} context context object for each rule
		 * @returns {object} collection of node to listen on
		 */ function createRuleModule ( context ) { return { Program : function ( node ) { context . report ( node , message ) ; } } ; } if ( message ) { return createRuleModule ; } else { throw new Error ( "No message passed to stub rule" ) ; } }
Provide a stub rule with a given message
@param  {string} message The message to be displayed for the rule
@returns {Function}      Stub rule function
Provide a stub rule with a given message