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

jshint comment lines should be ignored.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.0.2
    • Fix Version/s: None
    • Component/s: Local: Code checker
    • Labels:
      None
    • Plugin Version:
      2.5.1
    • Affected Branches:
      MOODLE_30_STABLE

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            moodle.com moodle.com
            Reporter:
            gb2048 Gareth J Barnard
            Participants:
            Component watchers:
            moodle.com, Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: