0
jscs: {
        src: ['<%= config.app %>/scripts/{,*/}*.js'],
        options: {
           config: '.jscsrc'
        },
        force: true

    },

This is my Grunt file config I am trying to use plugin described https://github.com/jscs-dev/grunt-jscs/

After loading the task it throws me an error

Running "jscs:files" (jscs) task
Warning: Object #<Object> has no method 'indexOf' Use --force to continue.

Resetting force:true allows me to continue, but i want the task to fail if anyone in the team avoids this. How can i fix this ?

gustavohenke
  • 40,997
  • 14
  • 121
  • 129
Sukhmeet Singh
  • 303
  • 2
  • 14
  • Hello @Sukhmeet. I'm one of the maintainers of that plugin. I'm afraid that's an issue of [multi-task configuration](http://gruntjs.com/configuring-tasks#task-configuration-and-targets). Those examples you posted, are the real ones? If so, could you post the plugin version you're using? – gustavohenke Apr 07 '15 at 12:15
  • Hey @gustavohenke , i am using version 1.12.0 You can find my full grunt file at https://www.dropbox.com/s/p4nthid1amumrvq/Gruntfile.js?dl=0 – Sukhmeet Singh Apr 08 '15 at 12:41

0 Answers0