Ruby script to fix ember-cli-blanket lcov.info for code-climate
Replace <app name here>
with your ember-cli app name
I'm currently running this script as a post-build step during my CI process and it is working well.
My blanket-options
file has the cliOptions set to the following:
cliOptions: {
lcovOptions: {
outputFile: 'lcov.info'
},
reporters: ['lcov']
}
I did have to define a number of manual loaderExclusions in blanket-options.js
so code-climate accepted the lcov file. This seems to be due to the way ember-cli works. Some examples are:
'<app name>/initializers/export-application-global',
'<app name>/services/csrf',
'<app name>/controllers/object',
'<app name>/controllers/array',
'<app name>/config/environment'