SwiftLint/bazel
JP Simard 0ff0fc9c5c
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-01-27 15:01:16 -05:00
..
BUILD Move TSan Runs CI job to Buildkite (#4457) 2022-10-23 13:05:28 -04:00
CollectionConcurrencyKit.BUILD Replace incrementer dispatch queue with an actor (#4073) 2022-08-09 13:06:08 +00:00
CryptoSwift.BUILD Add support for building with Bazel (#4038) 2022-07-26 07:09:02 -04:00
IndexStore.BUILD Add `dead-code` command 2023-01-27 15:01:16 -05:00
StaticIndexStore.BUILD Add `dead-code` command 2023-01-27 15:01:16 -05:00
SwiftSyntax.BUILD Update SwiftSyntax (#4673) 2023-01-06 11:12:17 -05:00
SwiftyTextTable.BUILD Add support for building with Bazel (#4038) 2022-07-26 07:09:02 -04:00
deps.bzl Split SwiftLintFramework into multiple modules 2023-01-27 14:40:26 -05:00
extensions.bzl Add support for bzlmod (#4704) 2023-01-19 17:04:21 -05:00
opt_wrapper.bzl [bazel] For SwiftSyntax to compile with optimizations (#4311) 2022-10-06 15:54:41 -04:00
repos.bzl Add `dead-code` command 2023-01-27 15:01:16 -05:00