Skip to content

False positive in "duplicate_imports" corner case #6098

@ptsochantaris

Description

@ptsochantaris

New Issue Checklist

Bug Description

SwiftLint produces a false positive in this case:

Image

Environment

  • SwiftLint version - 0.59.1
  • Xcode version - 16.4
  • Installation method used - Homebrew
  • Configuration file:
disabled_rules:
  - identifier_name
  - line_length
  - trailing_whitespace
  - force_cast
  - file_length
  - function_body_length
  - nesting
  - notification_center_detachment
  - unused_setter_value
  - cyclomatic_complexity
  - type_body_length
  - force_try
  - implicit_getter
  - large_tuple

excluded:
  - Pods

analyzer_rules:
  - unused_import

Metadata

Metadata

Assignees

Labels

enhancementIdeas for improvements of existing features and rules.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions