print({ fixes, results }) {
    if (!fixes) {
      fixes = {};
    }
    for (const type in results) {
      let modules = results[type];
      if (this.minimal) {
        modules = _.filter(
          modules,
          ({ error, errorIgnored }) => error && !errorIgnored
        );
      }
      if (modules.length === 0) {
        continue;
      }
      this.write(`${type}:`);
      for (const module of modules) {
        const fixed = _.includes(fixes[type], module.name);
        this.write(this.moduleOutput(module, fixed), 1);
      }
      this.write('');
    }
    if (!this.minimal || this.errorCount(results) !== 0) {
      this.write(this.summaryOutput(results));
    }
  }
// Prints the result to its stream
Prints the result to its stream
Prints the result to its stream
print({ fixes, results }) {
    if (!fixes) {
      fixes = {};
    }
    for (const type in results) {
      let modules = results[type];
      if (this.minimal) {
        modules = _.filter(
          modules,
          ({ error, errorIgnored }) => error && !errorIgnored
        );
      }
      if (modules.length === 0) {
        continue;
      }
      this.write(`${type}:`);
      for (const module of modules) {
        const fixed = _.includes(fixes[type], module.name);
        this.write(this.moduleOutput(module, fixed), 1);
      }
      this.write('');
    }
    if (!this.minimal || this.errorCount(results) !== 0) {
      this.write(this.summaryOutput(results));
    }
  }
print ( { fixes , results } ) { if ( ! fixes ) { fixes = { } ; } for ( const type in results ) { let modules = results [ type ] ; if ( this . minimal ) { modules = _ . filter ( modules , ( { error , errorIgnored } ) => error && ! errorIgnored ) ; } if ( modules . length === 0 ) { continue ; } this . write ( ` ${ type } ` ) ; for ( const module of modules ) { const fixed = _ . includes ( fixes [ type ] , module . name ) ; this . write ( this . moduleOutput ( module , fixed ) , 1 ) ; } this . write ( '' ) ; } if ( ! this . minimal || this . errorCount ( results ) !== 0 ) { this . write ( this . summaryOutput ( results ) ) ; } }
Prints the result to its stream
Prints the result to its stream