grunt tasks for execution of codevalidation
npm install @sap/di.code-validation.gruntnpm install di.code-validation.grunt --save-dev
``javascript
var fs = require('fs');
var path = require('path');
module.exports = function (grunt) {
"use strict";
var pkg = grunt.file.readJSON('package.json');
// Project configuration.
grunt.initConfig({
// Task configuration.
pkg: pkg,
codevalidation: {
options: {
projectPath: '
pathPrefix: '
ignoredPaths: [
reporter: "problems_reporter",
reporterOptions: {outputFile: path.join(__dirname , "code-validation-test.log")}
}
}
});
grunt.loadNpmTasks('di.code-validation.grunt');
grunt.registerTask('validate', ['codevalidation']);
};
``