Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-5908

Codechecker does not respect eslint configuration comments

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: Coding style
    • Labels:
      None

      Description

      When you run codechecker on JS file (this is permitted), eslint configuration comments do not pass "Inline Comments" sniff.

      The examples of configuration comments are shown here though it is more common to see them used for disabling certain checks:

              // Only pre-load the configuration when the competency is using this rule.
              if (self._competency.ruletype == self.getType()) {
                  try {
                      config = JSON.parse(self._competency.ruleconfig);
                  } catch (e) {
                      // eslint-disable-line no-empty
                  }
              }
      

       

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: