code: function (file) {
          if (file.tslint) {
              // Version 5.0.0 of tslint no longer has a failureCount member
              // It was renamed to errorCount. See tslint issue #2439
              var failureCount = file.tslint.errorCount;
              if (!options.allowWarnings) {
                  failureCount += file.tslint.warningCount;
              }
              if (failureCount > 0) {
                  errorFiles.push(file);
                  Array.prototype.push.apply(allFailures, file.tslint.failures);
                  if (options.reportLimit <= 0 || (options.reportLimit && options.reportLimit > totalReported)) {
                      if (file.tslint.output !== undefined) {
                          // If any errors were found, print all warnings and errors
                          console.log(file.tslint.output);
                      }
                      totalReported += failureCount;
                      if (options.reportLimit > 0 &&
                          options.reportLimit <= totalReported) {
                          log("More than " + options.reportLimit
                              + " failures reported. Turning off reporter.");
                      }
                  }
              }
              else if (options.allowWarnings && file.tslint.warningCount > 0) {
                  // Íf only warnings were emitted, format and print them
                  // Figure out which formatter the user requested in `tslintPlugin()` and construct one
                  var formatterConstructor = TSLint.findFormatter(tslintPlugin.pluginOptions.formatter);
                  var formatter = new formatterConstructor();
                  // Get just the warnings
                  var warnings = file.tslint.failures.filter(function (failure) { return failure.getRuleSeverity() === "warning"; });
                  // Print the output of those
                  console.log(formatter.format(warnings));
              }
          }
          // Pass file
          this.emit("data", file);
      }
docs: Log formatted output for each file individually