function registerValidator( rulePath, context ) {
		var validator;
		var create;
		var keys;
		var i;

		create = require( rulePath ); // eslint-disable-line stdlib/no-dynamic-require
		validator = create( context );
		keys = objectKeys( validator );
		for ( i = 0; i < keys.length; i++ ) {
			if ( hasOwnProp( validators, keys[ i ] ) ) {
				validators[ keys[ i ] ].push({
					'id': context.id,
					'validate': validator[ keys[ i ] ]
				});
			}
		}
	}
Registers validators for specified `repl.txt` lint rules.

@private
@param {string} rulePath - path to rule
@param {RuleContext} context - rule context