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

Swift 5 support #2720

Merged
merged 17 commits into from
Apr 29, 2019
Merged

Swift 5 support #2720

merged 17 commits into from
Apr 29, 2019

Conversation

marcelofabri
Copy link
Collaborator

@marcelofabri marcelofabri commented Apr 15, 2019

For now, this only allows building with Xcode 10.2.

Some tests are failing:

Captura de Tela 2019-04-14 às 21 54 43

@SwiftLintBot
Copy link

SwiftLintBot commented Apr 15, 2019

6 Warnings
⚠️ This PR introduced a violation in Swift: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Swift/stdlib/public/core/RandomAccessCollection.swift:147:17: warning: Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports. (attributes)
⚠️ This PR introduced a violation in Swift: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Swift/stdlib/public/core/RandomAccessCollection.swift:189:17: warning: Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports. (attributes)
⚠️ This PR introduced a violation in Swift: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Swift/stdlib/public/core/RandomAccessCollection.swift:207:17: warning: Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports. (attributes)
⚠️ This PR introduced a violation in Swift: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Swift/stdlib/public/core/BidirectionalCollection.swift:103:17: warning: Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports. (attributes)
⚠️ This PR introduced a violation in Swift: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Swift/stdlib/public/core/BidirectionalCollection.swift:147:17: warning: Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports. (attributes)
⚠️ This PR introduced a violation in Swift: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Swift/stdlib/public/core/BidirectionalCollection.swift:167:17: warning: Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports. (attributes)
6495 Messages
📖 Linting Aerial with this PR took 3.24s vs 3.11s on master (4% slower)
📖 Linting Alamofire with this PR took 5.2s vs 5.06s on master (2% slower)
📖 Linting Firefox with this PR took 16.02s vs 15.15s on master (5% slower)
📖 Linting Kickstarter with this PR took 31.46s vs 27.3s on master (15% slower)
📖 Linting Moya with this PR took 2.75s vs 2.47s on master (11% slower)
📖 Linting Nimble with this PR took 2.55s vs 2.24s on master (13% slower)
📖 Linting Quick with this PR took 0.95s vs 0.83s on master (14% slower)
📖 Linting Realm with this PR took 3.96s vs 3.78s on master (4% slower)
📖 Linting SourceKitten with this PR took 1.52s vs 1.51s on master (0% slower)
📖 Linting Sourcery with this PR took 4.93s vs 4.98s on master (1% faster)
📖 Linting Swift with this PR took 39.06s vs 38.43s on master (1% slower)
📖 Linting WordPress with this PR took 29.73s vs 29.79s on master (0% faster)
📖 This PR fixed a violation in Aerial: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Aerial/Aerial/Source/Models/Extensions/AVPlayerViewExtension.swift:13:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Aerial: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Aerial/Aerial/Source/Models/Extensions/AVPlayerViewExtension.swift:13:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Aerial: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Aerial/Aerial/Source/Models/Time/Solar.swift:216:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Aerial: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Aerial/Aerial/Source/Models/Time/Solar.swift:216:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Aerial: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:93:13: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Aerial: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:95:13: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Aerial: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:96:13: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Aerial: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:2245:9: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Aerial: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:2246:9: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Example/Source/DetailViewController.swift:145:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Example/Source/DetailViewController.swift:177:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Example/Source/DetailViewController.swift:145:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Example/Source/DetailViewController.swift:177:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/RequestInterceptor.swift:47:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/RequestInterceptor.swift:89:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/RequestInterceptor.swift:47:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/RequestInterceptor.swift:89:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFResult.swift:31:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFResult.swift:31:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:28:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:28:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/OperationQueue+Alamofire.swift:27:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/OperationQueue+Alamofire.swift:27:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/DispatchQueue+Alamofire.swift:28:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/DispatchQueue+Alamofire.swift:28:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoding.swift:329:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoding.swift:329:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoder.swift:489:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoder.swift:555:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoder.swift:664:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoder.swift:789:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoder.swift:795:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoder.swift:489:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoder.swift:555:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoder.swift:664:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoder.swift:789:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ParameterEncoder.swift:795:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/URLConvertible+URLRequestConvertible.swift:77:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/URLConvertible+URLRequestConvertible.swift:89:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/URLConvertible+URLRequestConvertible.swift:77:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/URLConvertible+URLRequestConvertible.swift:89:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Notifications.swift:49:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Notifications.swift:65:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Notifications.swift:77:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Notifications.swift:49:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Notifications.swift:65:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Notifications.swift:77:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:204:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:213:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:296:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:358:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:365:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:372:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:397:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:418:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:430:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:481:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:492:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:503:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:542:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:565:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:588:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:204:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:213:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:296:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:358:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:365:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:372:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:397:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:418:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:430:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:481:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:492:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:503:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:542:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:565:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/AFError.swift:588:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Validation.swift:37:9: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Validation.swift:38:9: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Validation.swift:40:9: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Validation.swift:42:9: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Validation.swift:58:9: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Validation.swift:27:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Validation.swift:146:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Validation.swift:196:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Validation.swift:27:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Validation.swift:146:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Validation.swift:196:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Protector.swift:92:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Protector.swift:121:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Protector.swift:132:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Protector.swift:92:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Protector.swift:121:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Protector.swift:132:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Response.swift:119:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Response.swift:307:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Response.swift:119:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/Response.swift:307:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:215:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:306:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:316:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:324:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:403:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:414:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:422:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:429:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:215:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:306:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:316:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:324:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:403:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:414:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:422:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/HTTPHeaders.swift:429:1: warning: Explicit Top Level ACL Violation: Top-level declarations should specify Access Control Level keywords explicitly. (explicit_top_level_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ResponseSerialization.swift:53:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ResponseSerialization.swift:103:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ResponseSerialization.swift:200:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ResponseSerialization.swift:307:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ResponseSerialization.swift:362:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ResponseSerialization.swift:441:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ResponseSerialization.swift:460:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
📖 This PR fixed a violation in Alamofire: /Users/vsts/agent/2.150.0/work/1/s/osscheck/Alamofire/Source/ResponseSerialization.swift:531:1: warning: Explicit ACL Violation: All declarations should specify Access Control Level keywords explicitly. (explicit_acl)
⚠️ Danger found 6495 violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to 134.

Generated by 🚫 Danger

Package.resolved Outdated Show resolved Hide resolved
@marcelofabri
Copy link
Collaborator Author

marcelofabri commented Apr 15, 2019

SwiftLint/Source/SwiftLintFramework/Rules/Lint/MarkRule.swift:8: error: -[SwiftLintFrameworkTests.IntegrationTests testSwiftLintLints] : failed - Let and var should be separated from other statements by a blank line.

This one is fun:

Running with Xcode 10.1 selected

$ sourcekitten structure --file Source/SwiftLintFramework/Rules/Lint/MarkRule.swift | grep nonSpaceOrTwoOrMoreSpaceOrNewline
      "key.name" : "nonSpaceOrTwoOrMoreSpaceOrNewline",

With Xcode 10.2:

$ sourcekitten structure --file Source/SwiftLintFramework/Rules/Lint/MarkRule.swift | grep nonSpaceOrTwoOrMoreSpaceOrNewline

Filled SR-10486 to track this.

Package.swift Outdated
.package(url: "https://github.com/jpsim/Yams.git", from: "1.0.1"),
.package(url: "https://github.com/scottrhoyt/SwiftyTextTable.git", from: "0.8.2"),
] + (addCryptoSwift ? [.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "0.13.0")] : []),
.package(url: "https://github.com/Carthage/Commandant.git", from: "0.16.0"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to use .upToNextMinor instead of e5535ae:

Suggested change
.package(url: "https://github.com/Carthage/Commandant.git", from: "0.16.0"),
.package(url: "https://github.com/Carthage/Commandant.git", .upToNextMinor(from: "0.16.0")),

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @norio-nomura! BTW, do you know why is testSimulateHomebrewTest failing?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing in Tsan job can be reproduced locally:

Test Case '-[SwiftLintFrameworkTests.IntegrationTests testSimulateHomebrewTest]' started.
/Users/vsts/agent/2.149.2/work/1/s/Tests/SwiftLintFrameworkTests/IntegrationTests.swift:65: error: -[SwiftLintFrameworkTests.IntegrationTests testSimulateHomebrewTest] : XCTAssertEqual failed: ("6") is not equal to ("11") - It is expected to crash.
/Users/vsts/agent/2.149.2/work/1/s/Tests/SwiftLintFrameworkTests/IntegrationTests.swift:67: error: -[SwiftLintFrameworkTests.IntegrationTests testSimulateHomebrewTest] : XCTAssertEqual failed: ("Linting Swift files at paths 
Linting 'Test.swift' (1/1)
ThreadSanitizer:DEADLYSIGNAL
==3480==ERROR: ThreadSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fff6755d85c bp 0x7e80000fe830 sp 0x7e80000fe7e8 T19765)
==3480==The signal is caused by a READ memory access.
==3480==Hint: address points to the zero page.
    #0 xpc_get_type <null>:1040528 (libxpc.dylib:x86_64+0x285b)

==3480==Register values:
rax = 0x0000000000000001  rbx = 0x00007b3000007380  rcx = 0x00007b3000007408  rdx = 0x0000000000000001  
rdi = 0x0000000000000000  rsi = 0x00007b3000007380  rbp = 0x00007e80000fe830  rsp = 0x00007e80000fe7e8  
 r8 = 0x0000000000000000   r9 = 0x0000000000000000  r10 = 0x00007b240000ba30  r11 = 0x00007fff675656d1  
r12 = 0x00007b0c00000600  r13 = 0x00007e80000fee48  r14 = 0x00007b3000007500  r15 = 0x0000000000000000  
ThreadSanitizer can not provide additional info.
SUMMARY: ThreadSanitizer: SEGV (libxpc.dylib:x86_64+0x285b) in xpc_get_type
==3480==ABORTING
") is not equal to ("Linting Swift files at paths 
Linting 'Test.swift' (1/1)
")
Test Case '-[SwiftLintFrameworkTests.IntegrationTests testSimulateHomebrewTest]' failed (1.408 seconds).

It seems to needs workaround for Tsan job.

Failing in SwiftPM xcode102 job can not be reproduced locally. 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing in Tsan job has been addressed by 8c56724.
Let's check failing in SwiftPM xcode102 job again if it occurs next time.

norio-nomura and others added 3 commits April 16, 2019 09:59
…ewTest()`

Because TSAN makes `swiflint` to produce additional output on crashing.
Workaround to failing `testSimulateHomebrewTest()` on macOS 10.14
@marcelofabri marcelofabri changed the title [WIP] Swift 5 support Swift 5 support Apr 16, 2019
private func validate(file: File, kind: SwiftDeclarationKind,
dictionary: [String: SourceKitRepresentable],
parentDictionary: [String: SourceKitRepresentable]?) -> [StyleViolation] {
let aclAttributes: Set<SwiftDeclarationAttributeKind> = [.private, .fileprivate, .internal, .public, .open]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would love some 👀 on this change

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if the changes to violations reported by OSSCheck are from this change or Swift 5 or both.

@jpsim
Copy link
Collaborator

jpsim commented Apr 29, 2019

OSSCheck results analysis: All good! ✅

  • The 6 newly introduced violations are all valid. They're for the attributes rule, and all for newly considered attributes (@_nonoverride and @_effects) which were previously ignored, so previously didn't trigger violations.
  • The 6,483 fixed violations are all valid. In master, we're incorrectly considering extension scopes in the explicit_top_level_acl and explicit_acl rules. This isn't appropriate for the reasons outlined in explicit_acl and explicit_top_level_acl conflict with no_extension_access_modifier #2694. Marcelo fixed this in e7b2c25.

In my local testing of this branch, I noticed that Sourcery wasn't picking up some MarkRule declarations because of SR-10486, so I pushed 8ed47c0 that works around that by moving the private constants in MarkRule.swift to the bottom of the file.


Otherwise everything looks great, thanks @marcelofabri, @norio-nomura and anyone else who pitched in or helped review this.

@jpsim
Copy link
Collaborator

jpsim commented Apr 29, 2019

Cleared this with @marcelofabri offline. Will merge and release 🚀

@jpsim jpsim merged commit 3a36212 into master Apr 29, 2019
@jpsim jpsim deleted the marcelo/xcode-10.2 branch April 29, 2019 04:10
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.

4 participants