Danny Mösch
792032480e
Support SwiftLint on Windows ( #6636 )
...
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org >
Co-authored-by: Roman Lavrov <roman.lavrov@thebrowser.company >
2026-05-27 22:02:06 +02:00
Danny Mösch
1dbc15a239
Support Swift version 6.4 ( #6637 )
2026-05-14 14:14:48 -04:00
Rodion Ivashkov
5a5888e588
Support Swift version 6.3.2 ( #6635 )
2026-05-13 08:11:32 +02:00
Copilot
a6198b7c17
Add support for Swift 6.3.1 ( #6627 )
...
Co-authored-by: SimplyDanny <16365760+SimplyDanny@users.noreply.github.com >
2026-05-03 13:13:52 +00:00
theamodhshetty
6dc566b7a5
Add underscore-prefixed option to unused_parameter rule ( #6509 )
2026-03-05 16:46:53 -05:00
Danny Mösch
b4a04b6ed6
Support Swift version 6.2.4 ( #6520 )
2026-02-28 09:11:27 +00:00
Danny Mösch
8978ae2ccb
Add --disable-sourcekit flag to disable SourceKit ( #6439 )
2026-01-15 20:30:52 +01:00
Danny Mösch
e6b9643965
Support Swift version 6.3 ( #6428 )
2026-01-11 18:52:10 +01:00
Danny Mösch
2e78f40e54
Use directory enumerator to collect and exclude files at the same time ( #6366 )
2025-12-17 19:47:21 +01:00
Brett Best
5b1b83812a
Support Swift version 6.2.3 ( #6375 )
2025-12-13 09:15:47 +00:00
Danny Mösch
66d4818cd3
Support Swift version 6.2.2 ( #6373 )
2025-12-10 21:10:39 +00:00
Danny Mösch
32c33c2588
Re-enable redundant_self rule ( #6368 )
2025-12-07 08:11:08 -05:00
Danny Mösch
2e87be0398
Infer name of parent rule in configurations ( #6363 )
2025-12-01 14:15:00 -05:00
Danny Mösch
f59f41b36e
Support Swift version 6.2.1 ( #6338 )
2025-11-09 13:37:43 +01:00
Danny Mösch
9e5a526483
Enable unneeded_throws_rethrows rule ( #6335 )
2025-11-03 20:24:57 +01:00
Danny Mösch
ede316d453
Use SwiftSyntax 6.3 pre-release 2025-10-30 ( #6330 )
2025-11-01 13:34:08 +01:00
Copilot
038135e14d
Enable prefer_key_path rule ( #6331 )
...
Co-authored-by: SimplyDanny <16365760+SimplyDanny@users.noreply.github.com >
2025-10-31 16:58:41 +00:00
Nandhini Subramani
6619ca9c10
Add isolation parameter to modifier_order rule ( #6316 )
2025-10-22 09:40:45 +02:00
Nandhini Subramani
2c2ca671ed
Add ignores_literals option to trailing_whitespace rule ( #6309 )
2025-10-18 04:31:52 -04:00
Danny Mösch
4065fc8437
Enable upcoming feature MemberImportVisibility ( #6286 )
2025-10-08 08:12:05 +02:00
Danny Mösch
e9718145cb
Rewrite modifier_order rule with SwiftSyntax ( #6279 )
2025-10-04 16:39:17 +02:00
Danny Mösch
ad793d1c5b
Add new test module for tests requiring file system access ( #6276 )
...
These tests can especially not run in parallel.
2025-10-03 23:05:15 +02:00
Danny Mösch
58be16cd0e
Use task-local parser diagnostic toggle ( #6273 )
2025-10-03 22:34:32 +02:00
Martin Redington
13c0c235eb
only rule should work for individual custom rules ( #6057 )
2025-09-18 10:21:47 +01:00
Danny Mösch
087278c052
Introduce new CoreTests module ( #6233 )
...
It's supposed to test code from SwiftLintCore.
2025-09-04 20:56:51 +02:00
Danny Mösch
b97f63a89d
Properly detect comment-only lines ( #6230 )
2025-09-03 23:42:04 +02:00
Danny Mösch
ba500d31a2
Remove unused code ( #6208 )
...
All the code has a relation to former SourceKit-based rules.
2025-08-30 14:09:07 +02:00
Danny Mösch
7624586c18
Maintain SourceKit-mode as long as custom rules don't support SwiftSyntax ( #6212 )
2025-08-30 09:42:52 +02:00
Danny Mösch
aac32899c3
Exclude variable from concurrency analysis ( #6170 )
...
The variable is only used in `setUp` and `tearDown` and so access is not concurrent.
2025-07-30 12:57:35 +00:00
Danny Mösch
a321566c05
Support protocols and extensions in type body length checking ( #6143 )
2025-07-11 22:27:47 +02:00
Danny Mösch
092d0c3b62
Keep severity levels unchanged when no options are configured ( #6160 )
2025-07-11 04:18:28 -04:00
Danny Mösch
599e51a5a2
Format code ( #6151 )
2025-07-02 17:50:53 -04:00
Danny Mösch
fa61ea704c
Fix test expectation ( #6147 )
2025-07-01 07:49:23 +00:00
JP Simard
f6c9633087
Add RegexConfiguration.ExecutionMode ( #6128 )
...
* Add `RegexConfiguration.ExecutionMode`
To help migrate custom rules to SwiftSyntax. Not wired up yet, just the
configuration parsing and defaults. Will wire it up in the next PR.
The diff looks big, but it's 500+ lines of tests, with ~45 lines of
actually new code.
* Docs
* Address PR feedback
- Add `default` case to ExecutionMode enum instead of using optional
- Change configuration key from `mode` to `execution_mode` for consistency
- Move default execution mode logic to runtime instead of configuration time
- Refactor test functions to use throws instead of do-catch
2025-06-22 10:19:14 -04:00
JP Simard
3a922d41f9
Add ConditionallySourceKitFree to migrate custom rules to SwiftSyntax ( #6127 )
...
The protocol will be used to tag rules that may or may not require
SourceKit depending on its configuration. I only expect this to be used
for custom rules as utility to help transition to a fully SwiftSyntax
based approach.
2025-06-21 15:54:56 -04:00
JP Simard
d22e7335ab
Add SwiftSyntaxKindBridge to help migrate custom rules to SwiftSyntax ( #6126 )
...
This provides an alternative to getting syntax kinds from SourceKit. The
mappings aren't 100% equivalent, but this should serve as a useful
compatibility layer.
2025-06-21 15:27:21 -04:00
JP Simard
81474e36d0
Enforce SourceKitFreeRule contract with fatal error ( #6107 )
2025-06-20 07:25:01 -04:00
Danny Mösch
614c0026df
Prepare for Swift 6.2 ( #6115 )
2025-06-20 09:25:59 +00:00
Danny Mösch
125dd161cf
Support latest Swift versions
2025-06-15 19:08:16 +02:00
Martin Redington
3ed7579fd2
Allow magic numbers to be configured ( #6051 )
2025-04-13 21:08:42 +01:00
Danny Mösch
47335d7f95
Remove tracking of correction positions ( #5950 )
...
Report number of corrections per file instead.
2025-04-05 06:04:37 -04:00
Danny Mösch
904538487c
Support Swift version 6.1 ( #6040 )
2025-03-31 23:25:25 +02:00
Danny Mösch
22e0f42ae1
Fix crash when disable command is preceded by unicode character ( #5976 )
2025-03-15 23:33:11 +01:00
Danny Mösch
82fd3e4058
Ensure that content is complete using an awaitable stream ( #5986 )
2025-02-10 22:59:43 +01:00
Keith Bauer
0460a6c1c6
Avoid reading files before checking the cache ( #5973 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2025-01-29 15:53:13 -05:00
Danny Mösch
fcdc98a52d
Revert "Improve performance of excluded files filter" ( #5962 )
...
This reverts commit 152355e36f from #5157 .
# Conflicts:
# tools/oss-check
2025-01-15 19:15:44 +01:00
Danny Mösch
f045130e3e
Remove unused protocol CollectingCorrectableRule ( #5951 )
2025-01-13 09:43:17 +01:00
Danny Mösch
f796fee241
Enable strict concurrency checks in test code ( #5943 )
2025-01-07 22:19:25 +01:00
Danny Mösch
15b285527a
Separate built-in rule tests from framework tests ( #5924 )
...
* Short names for test modules
* Lint plugins and `Package.swift` in integration tests
* Simplify and merge file groups in Bazel
* Move common functions to `TestHelpers`
2024-12-30 12:26:46 +01:00