constructor(inspector, opts) {
    opts = opts || {};
    super(inspector, opts);

    var enabled = chalk.enabled;

    inspector.on('start', () => {
      chalk.enabled = false;
      this._writableStream.write(
        '<?xml version="1.0" encoding="utf-8"?>\n' +
        '<pmd-cpd>\n'
      );
    });

    inspector.on('end', () => {
      chalk.enabled = enabled;
      this._writableStream.write('</pmd-cpd>\n');
    });
  }
A PMD CPD XML reporter, which tries to fit jsinspect's output to something
CI tools might expect from PMD.

@constructor

@param {Inspector} inspector Instance on which to register its listeners
@param {object}    opts      Options to set for the reporter