mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
4ecae5b252
Convert LineLengthRule to use SwiftSyntax instead of SourceKit for improved performance and better detection accuracy. The SwiftSyntax implementation: - Uses ViolationsSyntaxVisitor pattern with line-based validation - Pre-computes ignored lines using helper visitors for efficiency - Implements pure SwiftSyntax comment detection without SourceKit - Correctly handles function declarations, multiline strings - Maintains all configuration options including URL stripping - Preserves exact line position reporting for violations