Uploaded image for project: 'SonarHTML'
  1. SonarHTML
  2. SONARHTML-113

Support Vue.js attribute binding

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2
    • Component/s: Rules
    • Labels:
      None

      Description

      With SONARHTML-83 we added support of analyzing Vue.js files. Vue.js has special syntax for attribute binding. We need to recognize this syntax in order to not raise false positives for missing attributes.

      https://vuejs.org/v2/guide/syntax.html#v-bind-Shorthand

      Vue.js has a mechanism for binding the attributes to js properties. We should recognize such attributes and not raised issues of missing attributes

      Following should not raise an issue for missing alt attribute RSPEC-1077

      <img v-bind:src="notification.data.avatar" v-bind:alt="notification.data.name" />

      there is also shorthand syntax which doesn't include v-bind

        Attachments

          Activity

            People

            Assignee:
            yassin.kammoun Yassin Kammoun
            Reporter:
            tibor.blenessy Tibor Blenessy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: