Uploaded image for project: 'SonarQube Scanner API'
  1. SonarQube Scanner API
  2. SCANNERAPI-64

Replace setUnmaskedPackages by a more flexible mechanism

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: None
    • Labels:
      None

      Description

      EmbeddedRunner.setUnmaskedPackages is not flexible enough for the needs of the Maven plugin.
      We need to register an ordered list of includes/excludes for class name prefix. First matching include/exclude prefix will be used.
      Example:

      EmbeddedRunner.create()
        .unmask("org.slf4j.Logger") // Include slf4j Logger
        .mask("org.slf4j.") // Exclude other slf4j classes
        .mask("ch.qos.logback.") // Exclude logback
        .unmask("") // Include everything else
      

      By default and to keep backward compatibility, latest implicit rule will be to mask everything.

        Attachments

          Activity

            People

            Assignee:
            henryju OLD - Julien HENRY
            Reporter:
            henryju OLD - Julien HENRY
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: