Skip to content

Conversation

jpsim
Copy link
Collaborator

@jpsim jpsim commented Jun 21, 2025

To help migrate custom rules to SwiftSyntax. Not wired up yet, just the
configuration parsing and defaults. Wiring it up in #6129.

The diff looks big, but it's 500+ lines of tests, with ~45 lines of
actually new code.

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.
@SwiftLintBot
Copy link

SwiftLintBot commented Jun 21, 2025

2 Warnings
⚠️ Big PR
⚠️ If this is a user-facing change, please include a CHANGELOG entry to credit yourself!
You can find it at CHANGELOG.md.
18 Messages
📖 Building this branch resulted in a binary size of 25197.77 KiB vs 25176.15 KiB when built on main (0% larger).
📖 Linting Aerial with this PR took 1.61 s vs 1.03 s on main (56% slower).
📖 Linting Alamofire with this PR took 1.39 s vs 1.38 s on main (0% slower).
📖 Linting Brave with this PR took 9.63 s vs 9.69 s on main (0% faster).
📖 Linting DuckDuckGo with this PR took 24.76 s vs 24.74 s on main (0% slower).
📖 Linting Firefox with this PR took 11.84 s vs 11.87 s on main (0% faster).
📖 Linting Kickstarter with this PR took 10.86 s vs 10.9 s on main (0% faster).
📖 Linting Moya with this PR took 0.55 s vs 0.56 s on main (1% faster).
📖 Linting NetNewsWire with this PR took 3.18 s vs 3.17 s on main (0% slower).
📖 Linting Nimble with this PR took 0.84 s vs 0.84 s on main (0% slower).
📖 Linting PocketCasts with this PR took 9.1 s vs 9.02 s on main (0% slower).
📖 Linting Quick with this PR took 0.5 s vs 0.49 s on main (2% slower).
📖 Linting Realm with this PR took 4.81 s vs 4.79 s on main (0% slower).
📖 Linting Sourcery with this PR took 2.45 s vs 2.45 s on main (0% slower).
📖 Linting Swift with this PR took 5.56 s vs 5.6 s on main (0% faster).
📖 Linting VLC with this PR took 1.46 s vs 1.47 s on main (0% faster).
📖 Linting Wire with this PR took 22.22 s vs 22.24 s on main (0% faster).
📖 Linting WordPress with this PR took 12.83 s vs 12.84 s on main (0% faster).

Here's an example of your CHANGELOG entry:

* Add `RegexConfiguration.ExecutionMode`.  
  [jpsim](https://github.com/jpsim)
  [#issue_number](https://github.com/realm/SwiftLint/issues/issue_number)

note: There are two invisible spaces after the entry's text.

Generated by 🚫 Danger

- 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
@jpsim jpsim merged commit f6c9633 into main Jun 22, 2025
22 checks passed
@jpsim jpsim deleted the add-regexconfiguration.executionmode branch June 22, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants