Copy .jscsrc and .jshintrc file on your project, which contain all the code analysis rules.
Install jshint and jscs locally on your project.
And also install jshint-stylish reporter for formatted output.
$ npm install --save-dev jshint-stylish
Run your task
gulp codenalysis-task