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

    this._inspector = inspector;
    this._found = 0;
    this._truncate = (opts.truncate === 0) ? 0 : (opts.truncate || 100);
    this._writableStream = opts.writableStream || process.stdout;
    this._registerListener();

    inspector.on('end', () => {
      if (this._writableStream === process.stdout) return;
      // give the reporter a chance to write its last chunk by
      // deferring end to the next tick
      process.nextTick(() => this._writableStream.end());
    });
  }
A base reporter from which all others inherit. Registers a listener on the
passed inspector instance for tracking the number of matches found.

@constructor

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