Optional TipKit parameters trigger a redundant_optional_initialization
violation
#5884
Open
2 tasks done
Labels
enhancement
Ideas for improvements of existing features and rules.
good first issue
Issue to be taken up by new contributors yet unfamiliar with the project.
New Issue Checklist
Bug Description
TipKit
@Parameter
s are defined as follows:This code triggers the
redundant_optional_initialization
rule. However, the initial value cannot be omitted here, otherwise@Parameter
(which is a Swift macro) generates a build error: "Unable to expand due to missing identifier pattern.", so I have to disable the rule.Environment
swiftlint.yml
The text was updated successfully, but these errors were encountered: