Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-6143

jshint comment lines should be ignored.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 3.0.2
    • Local: Code checker
    • None
    • 2.5.1
    • MOODLE_30_STABLE

      When checking JavaScript files any instructional comments to jshint such as:

      // jshint ignore:line
      

      produce the warnings:

      107 | WARNING | [ ] Inline comments must start with a capital letter, digit or 3-dots sequence
      107 | WARNING | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
      

      As seen via TravisCI - e.g: https://travis-ci.org/gjb2048/moodle-theme_essential/jobs/109150375#L356-L357

      Such comment lines are needed and should be ignored.

            moodle.com Moodle HQ
            gb2048 Gareth J Barnard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.