SonarQube JavaScript
  1. SonarQube JavaScript
  2. SONARJS-23

Cannot define multiple predefined variables

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.3
    • Fix Version/s: 0.4
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 2003, Sonar 2.7
    • Number of attachments :
      0

      Description

      I try to define in the predef variable a list as:
      dojo,dijit

      and when looking at the debug execution I see:

      [DEBUG] Project/global setting name retrieved from global parameter: maxerr with value null
      [DEBUG] Project/global setting name retrieved from global parameter: predef with value dojo
      [DEBUG] Adding JSLint option from project/global settings: predef[The names of predefined global variables.] with value: dojo
      [DEBUG] Adding Options Specified As Rule Parameters

      So it seems that the system is not taking into account multiple values comma separated. This is valid if I define the setting at the global level or at the project level.

        Activity

        Hide
        Eriks Nukis added a comment -

        Thanks for reporting this, seems that commas are threated as value delimiters. As workaround you can for now escape "," with "\,", for instance "dojo\,dijit"

        Show
        Eriks Nukis added a comment - Thanks for reporting this, seems that commas are threated as value delimiters . As workaround you can for now escape "," with "\,", for instance "dojo\,dijit"
        Hide
        Eriks Nukis added a comment -

        Fixed in r4594

        Show
        Eriks Nukis added a comment - Fixed in r4594

          People

          • Assignee:
            Unassigned
            Reporter:
            Anonymous
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: