/**
 * @fileoverview Analyze and refactor JavaScript codebases with auto-generated
 * Class-Responsibility-Collaboration models.
 * @author Greg Swindle <greg@swindle.net>
 */
'use strict';

//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const requireIndex = require('requireindex');

//------------------------------------------------------------------------------
// Plugin Definition
//------------------------------------------------------------------------------

// import all rules in lib/rules
module.exports.rules = requireIndex(__dirname + '/rules');

// import processors
module.exports.processors = {

  // add your processors here
};

@@ -362,16 +362,46 @@
 -------%0A
+const path = require('path');%0A
 const re
@@ -692,16 +692,29 @@
 reIndex(
+path.resolve(
 __dirnam
@@ -718,20 +718,19 @@
 name
- +
+,
  '
-/
 rules')
+)
 ;%0A%0A/

use path to resolve file location