lib/pre-commit/pre-commit-base.js
function loadFileCheckerPlugins() {
	var checkers = {};
	try {
		fs.readdirSync(path.join(process.cwd(), ".git-hooks/pre-commit-plugins/plugins"))
			.forEach(function(file) {
				var check = file.replace(/\.js$/, "");
				if (!(/\.js$/).test(file)) {
					return;
				}
				checkers[check] = require(path.join(process.cwd(), ".git-hooks/pre-commit-plugins/plugins", file));
			});
	} catch (e) {
		// empty
	}
	return checkers;
}
function loadFileCheckerPlugins() {
	var checkers = {};
	try {
		fs.readdirSync(path.join(process.cwd(), ".git-hooks/pre-commit-plugins/plugins"))
			.forEach(function(file) {
				var check = file.replace(/\.js$/, "");
				if (!(/\.js$/).test(file)) {
					return;
				}
				checkers[check] = require(path.join(process.cwd(), ".git-hooks/pre-commit-plugins/plugins", file));
			});
	} catch (e) {
		// empty
	}
	return checkers;
}
function loadFileCheckerPlugins ( ) { var checkers = { } ; try { fs . readdirSync ( path . join ( process . cwd ( ) , ".git-hooks/pre-commit-plugins/plugins" ) ) . forEach ( function ( file ) { var check = file . replace ( / \.js$ / , "" ) ; if ( ! ( / \.js$ / ) . test ( file ) ) { return ; } checkers [ check ] = require ( path . join ( process . cwd ( ) , ".git-hooks/pre-commit-plugins/plugins" , file ) ) ; } ) ; } catch ( e ) { // empty } return checkers ; }
Load all file checking plugins
@returns {Object}
Load all file checking plugins