Skip to content

[SwiftLintFile] Remove lock in favor of UUID#3347

Merged
jpsim merged 1 commit into
masterfrom
swiftlintfile-remove-lock-in-favor-of-uuid
Sep 17, 2020
Merged

[SwiftLintFile] Remove lock in favor of UUID#3347
jpsim merged 1 commit into
masterfrom
swiftlintfile-remove-lock-in-favor-of-uuid

Conversation

@jpsim

@jpsim jpsim commented Sep 17, 2020

Copy link
Copy Markdown
Collaborator

We were using this lock to guarantee a new ID for every file, but we can get that benefit by using values that are guaranteed to be unique without the need for locks, such as a UUID.

We were using this lock to guarantee a new ID for every file, but we can
get that benefit by using values that are guaranteed to be unique
without the need for locks, such as a UUID.
@SwiftLintBot

Copy link
Copy Markdown
12 Messages
📖 Linting Aerial with this PR took 1.91s vs 1.89s on master (1% slower)
📖 Linting Alamofire with this PR took 2.66s vs 2.68s on master (0% faster)
📖 Linting Firefox with this PR took 9.1s vs 9.11s on master (0% faster)
📖 Linting Kickstarter with this PR took 15.17s vs 15.25s on master (0% faster)
📖 Linting Moya with this PR took 1.3s vs 1.32s on master (1% faster)
📖 Linting Nimble with this PR took 1.34s vs 1.36s on master (1% faster)
📖 Linting Quick with this PR took 0.63s vs 0.64s on master (1% faster)
📖 Linting Realm with this PR took 2.59s vs 2.66s on master (2% faster)
📖 Linting SourceKitten with this PR took 1.03s vs 1.05s on master (1% faster)
📖 Linting Sourcery with this PR took 7.06s vs 7.11s on master (0% faster)
📖 Linting Swift with this PR took 10.74s vs 10.94s on master (1% faster)
📖 Linting WordPress with this PR took 16.85s vs 16.87s on master (0% faster)

Generated by 🚫 Danger

@codecov-commenter

codecov-commenter commented Sep 17, 2020

Copy link
Copy Markdown

Codecov Report

Merging #3347 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3347      +/-   ##
==========================================
- Coverage   90.55%   90.54%   -0.01%     
==========================================
  Files         416      416              
  Lines       20415    20410       -5     
==========================================
- Hits        18486    18481       -5     
  Misses       1929     1929              
Impacted Files Coverage Δ
...LintFramework/Extensions/SwiftLintFile+Cache.swift 88.52% <ø> (ø)
...urce/SwiftLintFramework/Models/SwiftLintFile.swift 100.00% <100.00%> (ø)
...tFramework/Rules/Lint/ValidIBInspectableRule.swift 98.64% <0.00%> (-1.36%) ⬇️
...ftLintFramework/Rules/Lint/PrivateOutletRule.swift 100.00% <0.00%> (+3.84%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea311ba...77c40d1. Read the comment docs.

@jpsim jpsim marked this pull request as ready for review September 17, 2020 14:32
@jpsim jpsim merged commit 9b93b3e into master Sep 17, 2020
@jpsim jpsim deleted the swiftlintfile-remove-lock-in-favor-of-uuid branch September 17, 2020 14:35
optionalendeavors added a commit to optionalendeavors/SwiftLint that referenced this pull request Oct 4, 2020
* master-upstream: (98 commits)
  Fix some false positives in rule `explicit_self` (realm#3368)
  Update SourceKitten to 0.30.1 (realm#3367)
  Fix issues with analyzer rules, Xcode 12 & SwiftUI (realm#3366)
  Add empty changelog section
  release 0.40.3
  Fix false positives for 'multiple_closures_with_trailing_closure' (realm#3353)
  [UnusedDeclarationRule] Work around SR-11985 (realm#3363)
  Revert "Fix finding the nested config when a single file path is passed (realm#3342)" (realm#3362)
  [CONTRIBUTING] Add building & running tips (realm#3360)
  Fix finding the nested config when a single file path is passed (realm#3342)
  Include Linux zip in list of GitHub release binaries (realm#3350)
  [UnusedDeclarationRule] Add more tests (realm#3359)
  Test CI with official Swift 5.3 release (realm#3356)
  Don't mark `@NSApplicationMain` or `@UIApplicationMain` classes as unused (realm#3355)
  [Fix] `UnusedCaptureListRule`: implicit self in @escaping closures (realm#3352)
  Skip correcting files with parser diagnostics (realm#3349)
  [SwiftLintFile] Remove lock in favor of UUID (realm#3347)
  [UnusedDeclarationRule] Speed up and detect more dead code (realm#3340)
  Add empty changelog section
  release 0.40.2
  ...

# Conflicts:
#	Source/swiftlint/Helpers/LintableFilesVisitor.swift
optionalendeavors added a commit to optionalendeavors/SwiftLint that referenced this pull request Oct 4, 2020
* master: (98 commits)
  Fix some false positives in rule `explicit_self` (realm#3368)
  Update SourceKitten to 0.30.1 (realm#3367)
  Fix issues with analyzer rules, Xcode 12 & SwiftUI (realm#3366)
  Add empty changelog section
  release 0.40.3
  Fix false positives for 'multiple_closures_with_trailing_closure' (realm#3353)
  [UnusedDeclarationRule] Work around SR-11985 (realm#3363)
  Revert "Fix finding the nested config when a single file path is passed (realm#3342)" (realm#3362)
  [CONTRIBUTING] Add building & running tips (realm#3360)
  Fix finding the nested config when a single file path is passed (realm#3342)
  Include Linux zip in list of GitHub release binaries (realm#3350)
  [UnusedDeclarationRule] Add more tests (realm#3359)
  Test CI with official Swift 5.3 release (realm#3356)
  Don't mark `@NSApplicationMain` or `@UIApplicationMain` classes as unused (realm#3355)
  [Fix] `UnusedCaptureListRule`: implicit self in @escaping closures (realm#3352)
  Skip correcting files with parser diagnostics (realm#3349)
  [SwiftLintFile] Remove lock in favor of UUID (realm#3347)
  [UnusedDeclarationRule] Speed up and detect more dead code (realm#3340)
  Add empty changelog section
  release 0.40.2
  ...
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