[wp-trac] [WordPress Trac] #27567: grunt jshint task for individual files does not work

WordPress Trac noreply at wordpress.org
Fri Mar 28 05:55:17 UTC 2014


#27567: grunt jshint task for individual files does not work
------------------------------+-----------------------------
 Reporter:  netweb            |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Based on the inline
 [https://core.trac.wordpress.org/browser/trunk/Gruntfile.js#L238 docs] in
 `Gruntfile.js` we should be able to run the grunt task `jshint` on a
 single file using eg `grunt jshint:core --file=Gruntfile.js`

 {{{
 #!bash
 ~/develop.wp.nw [trunk ~2 ?2]> grunt jshint:core --file=Gruntfile.js
 Running "jshint:core" (jshint) task
 >> 0 files linted. Please check your ignored files.

 Done, without errors.
 ~/develop.wp.nw [trunk ~2 ?2]>
 }}}

 Expected result should be that file is checked and if no linting is
 required to return the results similar to that of running `grunt
 jshint:grunt`

 {{{
 #!bash
 ~/develop.wp.nw [trunk ~2 ?2]> grunt jshint:grunt
 Running "jshint:grunt" (jshint) task
 >> 1 file lint free.

 Done, without errors.
 ~/develop.wp.nw [trunk ~2 ?2]>
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27567>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list