Skip to content

explicit_type_interface not applied within guard statements #6968

Open

Description

@F1248

New Issue Checklist

Bug Description

The explicit_type_interface rule is not applied within guard statements.

guard let x = (nil as Bool?) else { // doesn't trigger a violation
    fatalError()
}
$ swiftlint lint --only-rule explicit_type_interface path/to/file.swift 

Environment

  • SwiftLint version: 0.65.1

Activity

  1. IgorBaranov92 commented on Nov 18, 2026

    @IgorBaranov92

    hello, i made little fix, can i open PR?

  2. added
    bug
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions