mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
e63e8cad0f
This PR adds a new `unused_declaration` analyzer rule to lint for unused declarations. By default, detects unused `fileprivate`, `private` and `internal` declarations. Configure the rule with `include_public_and_open: true` to also detect unused `public` and `open` declarations. Completely remove the `unused_private_declaration` rule. This is built on the work enabling collecting rule infrastructure in https://github.com/realm/SwiftLint/pull/2714.