realm/SwiftLint

`generic_type_name` triggers incorrectly for integer generic parameters

クローズ

#6,213 opened on 2025/08/30

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Swift (2,295 件のフォーク)batch import
enhancementgood first issue

Repository metrics

Stars
 (19,570 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Bug Description

SE-0452 introduced integer generic parameters, which are placed alongside other generic parameters, but, in contrast to "normal" (type) generic parameters, are spelled like variables, ie starting with a lowercase identifier. SwiftLint current;y doesn

// This triggers a violation:
struct Foo<let count: Int> {}

Mention the command or other SwiftLint integration method that caused the issue. Include stack traces or command output.

$ swiftlint

Environment

  • SwiftLint version: 0.59.1 (Homebrew)
  • Xcode version: Xcode 26.0 (17A5305f)
  • Configuration file: default configurations

コントリビューターガイド