Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21982

JSLint reports bitwise issues even though default is to allow them

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • jslint-plugin
    • None
    • Host OS is Ubuntu 12.04 Server. Slave is Win7

      The default mode, according the the jslint documentation, is that bitwise operators are tolerated. Even though this is the case, we are still getting:

      Unexpected use of '<<'.
      Unexpected use of '|'.
      Unexpected use of '&'.

      We tried adding an explicit include of -Dbitwise=true (and even tried false), but that did not help.

      Sample code that this is being reported on:

      this.id = newCtx << 28 | newP | newD << 8 | newI;

          [JENKINS-21982] JSLint reports bitwise issues even though default is to allow them

          Shannon Kerr added a comment -

          Any update on this?

          Shannon Kerr added a comment - Any update on this?

            gavd Gavin Davies
            kerrhome Shannon Kerr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: