SwiftLint/Source
JP Simard db0a681dd2
Add `dead-code` command
This command should be considered experimental because there's only
partial integration with the rest of SwiftLint's infrastructure, and the
command is very likely to change in the near future.

This can effectively replace the `unused_declaration` analyzer rule and
in fact re-uses the same rule identifier to simplify migrations.

However, instead of using SourceKit requests, this parses the index
store generated by the Swift compiler, in addition to SwiftSyntax, which
means it runs it can run in seconds instead of hours when analyzing
projects with tens of thousands of Swift files.

In addition to Swift, this also catches dead C, C++, Objective-C
declarations, mostly by accident. There's no way to disable the rule for
those files at the moment.
2023-05-16 09:45:49 -04:00
..
DyldWarningWorkaround Workaround dyld warning about SwiftSyntax classes (#4901) 2023-04-17 19:55:33 -04:00
SwiftLintAnalyzerRules/DeadCode Add `dead-code` command 2023-05-16 09:45:49 -04:00
SwiftLintBuiltInRules Add `dead-code` command 2023-05-16 09:45:49 -04:00
SwiftLintCore Add `dead-code` command 2023-05-16 09:45:49 -04:00
SwiftLintExtraRules Move extra rules into its own module (#4949) 2023-04-27 10:37:30 -04:00
SwiftLintFramework Move built-in rules to new SwiftLintBuiltInRules module (#4950) 2023-04-27 11:16:01 -04:00
swiftlint Add `dead-code` command 2023-05-16 09:45:49 -04:00