{"size": 679, "ext": "js", "max_stars_repo_path": "gulp/tasks/jshint.js", "max_stars_repo_name": "kevinsimard/cordova-app", "max_stars_repo_stars_event_min_datetime": "2015-04-24T19:07:54.000Z", "max_stars_repo_stars_event_max_datetime": "2015-04-24T19:07:54.000Z", "max_issues_repo_path": "gulp/tasks/jshint.js", "max_issues_repo_name": "kevinsimard/cordova-app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gulp/tasks/jshint.js", "max_forks_repo_name": "kevinsimard/cordova-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.4137931034, "max_line_length": 58, "alphanum_fraction": 0.4904270987}
(function (require) {
    "use strict";

    var gulp = require("gulp"),
        argv = require("yargs").argv,
        plugins = require("gulp-load-plugins")(),
        jshintStylish = require("jshint-stylish");

    gulp.task("jshint:validate", function () {
        task();

        if (!! argv.watch) {
            plugins.watch("dev/app/**/*.js", task);
        }
    });

    function task() {
        var sources = [
            "dev/app/**/*.js",
            "!dev/app/constants.js",
            "!dev/app/templates.js"
        ];

        gulp.src(sources)
            .pipe(plugins.jshint())
            .pipe(plugins.jshint.reporter(jshintStylish));
    }
})(require);
