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

Migrate to use SourceKitten's new ByteCount/ByteRange types #3037

Merged
merged 15 commits into from
Jan 16, 2020
Merged

Conversation

jpsim
Copy link
Collaborator

@jpsim jpsim commented Jan 14, 2020

New APIs were introduced in SourceKitten to allow for a more typesafe distinction between integers meaning NSString-based distances and byte-based distances.

This PR migrates SwiftLint's use of those APIs.

@SwiftLintBot
Copy link

SwiftLintBot commented Jan 14, 2020

2 Warnings
⚠️ Big PR
⚠️ This PR may need tests.
12 Messages
📖 Linting Aerial with this PR took 1.2s vs 1.18s on master (1% slower)
📖 Linting Alamofire with this PR took 2.2s vs 2.16s on master (1% slower)
📖 Linting Firefox with this PR took 9.04s vs 8.92s on master (1% slower)
📖 Linting Kickstarter with this PR took 14.78s vs 14.6s on master (1% slower)
📖 Linting Moya with this PR took 1.16s vs 1.2s on master (3% faster)
📖 Linting Nimble with this PR took 1.36s vs 1.35s on master (0% slower)
📖 Linting Quick with this PR took 0.55s vs 0.66s on master (16% faster)
📖 Linting Realm with this PR took 2.4s vs 2.33s on master (3% slower)
📖 Linting SourceKitten with this PR took 1.06s vs 1.0s on master (6% slower)
📖 Linting Sourcery with this PR took 6.71s vs 6.65s on master (0% slower)
📖 Linting Swift with this PR took 12.34s vs 12.31s on master (0% slower)
📖 Linting WordPress with this PR took 14.86s vs 14.91s on master (0% faster)

Generated by 🚫 Danger

@jpsim
Copy link
Collaborator Author

jpsim commented Jan 14, 2020

According to OSSCheck, it looks like we're now counting line length differently somehow? It doesn't look like any other rules behave differently.

@jpsim jpsim mentioned this pull request Jan 15, 2020
7 tasks
@jpsim jpsim marked this pull request as ready for review January 16, 2020 22:56
@jpsim jpsim merged commit fe5baca into master Jan 16, 2020
@jpsim jpsim deleted the jp-byte-apis branch January 16, 2020 23:18
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