-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
discussionTopics that cannot be categorized as bugs or enhancements yet. They require further discussions.Topics that cannot be categorized as bugs or enhancements yet. They require further discussions.
Description
New Issue Checklist
- I've Updated SwiftLint to the latest version.
- I've searched for existing GitHub issues.
Bug Description
It should not report for cases where the parameter is used for its type and not value.
extension Data {
func jsonDecoded<T: Decodable>(ofType type: T.Type) throws -> T {
try JSONDecoder().decode(T.self, from: self)
}
}Here the type parameter decides the return type.
Environment
- SwiftLint version: 0.56.0
- Xcode version: Xcode 15.4, Build version 15F31d
- Installation method used: Installer
- Configuration file:
only_rules:
- unused_parameterMetadata
Metadata
Assignees
Labels
discussionTopics that cannot be categorized as bugs or enhancements yet. They require further discussions.Topics that cannot be categorized as bugs or enhancements yet. They require further discussions.