jmendiara/grunt-gjslint

Warning: Task "gjslint:all" failed

valnub opened this issue · 1 comments

We use gjslinter with Grunt to lint all the js files in our project.

The configuration in Gruntfile.js looks like this:

gjslint: {
    options: {
        flags: ['--disable 220,110,200'],
        reporter: {
            name: 'gjslint_xml',
            dest: '<%= pkg.docs %>/gjslint/gjslint.xml'
        }
    },
    all: {
        src: ['<%= pkg.src %>/assets/js/modules/**', '<%= pkg.src %>/assets/js/lib/jquery/plugins/jquery-hse/**']
    }
}

But when I start the linting it fails:

$ grunt gjslint Running "gjslint:all" (gjslint) task
Warning: Task "gjslint:all" failed. Use --force to continue.

Aborted due to warnings.

Why? Paths should be correct. There are no more error messages or reports. How can I debug this?

Ok, I fixed it. Seemed like there were to many errors during linting which caused gjslint to abort and not write a report.

Thus, changing the reporter option to console made the problems visible so I could fix em:

reporter: {
    name: 'console' //report to console
}