Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use alternate implementation of glob with globstar support #3892

Merged

Conversation

jpsim
Copy link
Collaborator

@jpsim jpsim commented Mar 11, 2022

Adapted from https://gist.github.com/efirestone/ce01ae109e08772647eb061b3bb387c3

The implementation from Pathos seems buggy.

Fixes #3891

@jpsim jpsim mentioned this pull request Mar 11, 2022
2 tasks
@jpsim
Copy link
Collaborator Author

jpsim commented Mar 11, 2022

FYI @funzin

@realm realm deleted a comment from SwiftLintBot Mar 11, 2022
@SwiftLintBot
Copy link

SwiftLintBot commented Mar 11, 2022

12 Messages
📖 Linting Aerial with this PR took 0.93s vs 0.94s on master (1% faster)
📖 Linting Alamofire with this PR took 1.06s vs 1.06s on master (0% slower)
📖 Linting Firefox with this PR took 3.87s vs 3.89s on master (0% faster)
📖 Linting Kickstarter with this PR took 7.05s vs 7.04s on master (0% slower)
📖 Linting Moya with this PR took 4.35s vs 4.38s on master (0% faster)
📖 Linting Nimble with this PR took 0.38s vs 0.38s on master (0% slower)
📖 Linting Quick with this PR took 0.16s vs 0.16s on master (0% slower)
📖 Linting Realm with this PR took 5.95s vs 5.98s on master (0% faster)
📖 Linting SourceKitten with this PR took 0.32s vs 0.32s on master (0% slower)
📖 Linting Sourcery with this PR took 1.83s vs 1.83s on master (0% slower)
📖 Linting Swift with this PR took 3.05s vs 3.04s on master (0% slower)
📖 Linting WordPress with this PR took 7.14s vs 7.14s on master (0% slower)

Generated by 🚫 Danger

@jpsim jpsim marked this pull request as ready for review March 11, 2022 16:43
@codecov-commenter
Copy link

Codecov Report

Merging #3892 (83a20b1) into master (2ae22d0) will increase coverage by 0.00%.
The diff coverage is 90.14%.

@@           Coverage Diff           @@
##           master    #3892   +/-   ##
=======================================
  Coverage   91.96%   91.97%           
=======================================
  Files         435      435           
  Lines       22073    22126   +53     
=======================================
+ Hits        20300    20350   +50     
- Misses       1773     1776    +3     
Impacted Files Coverage Δ
Source/SwiftLintFramework/Helpers/Glob.swift 87.09% <87.50%> (+14.36%) ⬆️
...s/SwiftLintFrameworkTests/ConfigurationTests.swift 95.96% <100.00%> (ø)
Tests/SwiftLintFrameworkTests/GlobTests.swift 100.00% <100.00%> (ø)
...iftLintFramework/Extensions/String+SwiftLint.swift 89.39% <0.00%> (-1.52%) ⬇️
Source/SwiftLintFramework/Models/Linter.swift 80.79% <0.00%> (+1.69%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

This isn't thread-safe.
@jpsim jpsim merged commit 1abc503 into master Mar 11, 2022
@jpsim jpsim deleted the use-alternate-implementation-of-glob-with-globstar-support branch March 11, 2022 18:24
jpsim added a commit that referenced this pull request Mar 16, 2022
coffmark pushed a commit to coffmark/SwiftLint that referenced this pull request Apr 11, 2022
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.

Recursive glob still doesn't work
4 participants