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 ?


Passing Large String as arguments - unoptimized?

I am receiving some very large strings as a response of Ajax request which are used to generate views on the front end.

I know if its an object then a reference to the object is passed as a argument. But what's the case with String? Is it bad for optimization to pass very large string as arguments?

fetchData(empId, date1, date2).done(function(response) {
      //here response is a very large string
      ...
      ..
      createView(response);
      refreshCumulatives(response);
      ...
      ..
  }).fail(function(jqXHR, textStatus, errorThrown) {

  });
4

0 に答える 0