SwiftLint
SwiftLint copied to clipboard
When I use unused_declaration, static dependencies are not displayed
New Issue Checklist
- [x] Updated SwiftLint to the latest version
- [x] I searched for existing GitHub issues
Describe the bug
A clear and concise description of what the bug is.
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint analyze --compiler-log-path xcodebuild.log
Environment
- SwiftLint version (run
swiftlint versionto be sure)? - 0.50.0-rc.2
- Installation method used (Homebrew, CocoaPods, building from source, etc)?
- portable_swiftlint
- Paste your configuration file:
analyzer_rules:
- unused_declaration
- Are you using nested configurations? If so, paste their relative paths and respective contents.
- Which Xcode version are you using (check
xcodebuild -version)? - Xcode 14.0.1
- Build version 14A400
public enum L10n {
public enum AccountSettings {
public static var account: String { return L10n.tr("App", "account_settings.account") }
}
...
}
In your example, which static dependency in which context isn't displayed?
In your example, which static dependency in which context isn't displayed?
L10n. AccountSettings. account this static var is not in unused_declaration list