wbuchwalter / tslint-loader

tslint loader for webpack
193 stars 65 forks source link

Bundle all errors as tslint.report.xml #93

Closed JonWallsten closed 6 years ago

JonWallsten commented 6 years ago

Not sure if I'm doing something wrong. Is it possible to get a single tslint.report.xml file instead of a folder structure with each file that fails. I need a singe file for Jenkins.

sextos3 commented 6 years ago

Shouldn't really be needed. For example:

loader: 'tslint-loader',
options: {
  typeCheck: false,
  formatter: 'checkstyle',
  formattersDirectory: 'node_modules/tslint/lib/formatters',
  fileOutput: {
    dir: 'reports',
    ext: 'xml'
  }
}

With Jenkins check style plugin, all you have to do is point to the wildcard location for these files: reports/app/**/**.xml, and it'll report across all of the issues.

JonWallsten commented 6 years ago

Ah, perfect! Thanks!