SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

When I use unused_declaration, static dependencies are not displayed

Open feixue299 opened this issue 3 years ago • 2 comments

New Issue Checklist

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 version to 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") }
    }
    ...
}

feixue299 avatar Oct 25 '22 06:10 feixue299

In your example, which static dependency in which context isn't displayed?

SimplyDanny avatar Oct 25 '22 17:10 SimplyDanny

In your example, which static dependency in which context isn't displayed?

L10n. AccountSettings. account this static var is not in unused_declaration list

feixue299 avatar Oct 26 '22 03:10 feixue299