Skip to content

SonarQube 10.6 emits a warning about using getStringArray to read file suffixes #35

@testworksau

Description

@testworksau

We are seeing this message in our scans since upgrading to SonarQube 10.6:

WARN: Property 'sonar.ps.file.suffixes' is not declared as multi-values/property set 
but was read using 'getStringArray' method. The SonarQube plugin declaring this 
property should be updated.

It looks like this is the line that triggers the warning:

final String[] suffixes = this.settings.getStringArray(Constants.FILE_SUFFIXES);

We are not sure if 10.6 introduced the problem; it could just be a coincidence that we noticed it after our upgrade.

This PR should fix the problem:
#33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions