Skip to content

UnnecessaryImportRule - check also the usage in static imports #136

@komasztania

Description

@komasztania

Describe the bug
When the imported class is used as the element of the static import, there is the issue.
It is false.

To Reproduce
Sample file attached: SampleAttributeEnhancement.gsx

Expected behavior
When the class is also used in the static imports, there should be no issue.

Screenshots
Screenshot 2024-01-30 at 20 59 58

Software Versions

  • SonarScanner Version: 4.7.0.2747
  • SonarQube Version: 8.9.10
  • Plugin Version: sonar-communitygosu-plugin-1.2.2.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions