Skip to content

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

Merged
jpsim merged 15 commits into
masterfrom
jp-byte-apis
Jan 16, 2020
Merged

jpsim merged 15 commits into
masterfrom
jp-byte-apis

Conversation

@jpsim

@jpsim jpsim commented Jan 14, 2020 •

Copy link
Copy Markdown
Collaborator

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.

@jpsim
jpsim requested a review from PaulTaykalo January 14, 2020 06:06
@SwiftLintBot

SwiftLintBot commented Jan 14, 2020 •

Copy link
Copy Markdown
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

jpsim commented Jan 14, 2020

Copy link
Copy Markdown
Collaborator Author

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 done
@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