SwiftLint/Source/SwiftLintCore/Models
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
..
AccessControlLevel.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
Command.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
Configuration.swift Open ConfigurationError up to be used more broadly (#5005) 2023-05-14 20:00:46 +02:00
ConfigurationRuleWrapper.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
Correction.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
CustomRuleTimer.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
Example.swift [SwiftLintCore] Make `focused()` public (#4959) 2023-05-04 15:07:37 +00:00
HashableConfigurationRuleWrapperWrapper.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
Issue.swift Open ConfigurationError up to be used more broadly (#5005) 2023-05-14 20:00:46 +02:00
Linter.swift Prepend `warning: ` to error messages (#4927) 2023-05-01 18:26:25 +02:00
LinterCache.swift Add `dead-code` command 2023-05-16 09:45:49 -04:00
Location.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
Region.swift Add `dead-code` command 2023-05-16 09:45:49 -04:00
ReportersList.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
RuleDescription.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
RuleIdentifier.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
RuleKind.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
RuleList.swift Prepend `warning: ` to error messages (#4927) 2023-05-01 18:26:25 +02:00
RuleParameter.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
RuleRegistry.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
RuleStorage.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
SeverityConfiguration.swift Open ConfigurationError up to be used more broadly (#5005) 2023-05-14 20:00:46 +02:00
StyleViolation.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
SwiftExpressionKind.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
SwiftLintFile.swift Make id and isVirtual public in SwiftLintFile (#4994) 2023-05-11 13:33:48 -04:00
SwiftLintSyntaxMap.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
SwiftLintSyntaxToken.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
SwiftVersion.swift Add `dead-code` command 2023-05-16 09:45:49 -04:00
Version.swift release 0.52.2 2023-05-12 11:02:03 -04:00
ViolationSeverity.swift Move core SwiftLint functionality to new SwiftLintCore module 2023-04-26 21:10:19 -04:00
YamlParser.swift Open ConfigurationError up to be used more broadly (#5005) 2023-05-14 20:00:46 +02:00