Skip to content

Rule Request: Redundant final for actors #6407

Closed

Description

@akuzminskyi

New Issue Checklist

New Rule Request

actors in Swift already final by default. but developers still sometimes write it as final actor and it doesn't produce any compiler warnings. But basically final is redundant in this case. similar to internal ACL.

I don't see any configuration for the rule. and I think it should be enabled by default as it doesn't change "logic".

final actor DataStorage {

->

actor DataStorage {

https://github.com/swiftlang/swift-evolution/blob/main/proposals/0306-actors.md#actors-2

hey are reference types like classes, but do not support inheritance, and therefore do not have (or need) features such as required and convenience initializers, overriding, or class members, open and final.

Activity

  1. added
    good first issue
    rule-request
    on Jan 3, 2026
  2. added a commit that references this issue on Apr 12, 2026
    a20ce90
  3. added a commit that references this issue on Apr 15, 2026
    678ef11
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

    good first issuerule-request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions