Skip to content

Commit

Permalink
chore: update format and lint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu-xiaowei committed Jul 19, 2024
1 parent c34f633 commit 86c9a95
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
--enable semicolons
--semicolons never
--disable sortedImports
--disable sortImports
--importgrouping testable-bottom
--enable spaceAroundOperators
--operatorfunc spaced
Expand Down
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ opt_in_rules:

disabled_rules:
- opening_brace
- non_optional_string_data_conversion

# configurable rules can be customized from this configuration file
closing_brace: error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ extension AWSClickstreamPlugin {
}

func registerGlobalProperties(_ properties: AnalyticsProperties) {
properties.forEach { key, value in
for (key, value) in properties {
analyticsClient.addGlobalAttribute(value, forKey: key)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@testable import Clickstream
import Foundation
import XCTest

class ClickstreamEventTest: XCTestCase {
let testAppId = "testAppId"
let storage = ClickstreamContextStorage(userDefaults: UserDefaults.standard)
Expand Down
2 changes: 1 addition & 1 deletion Tests/ClickstreamTests/Clickstream/EventRecorderTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class EventRecorderTest: XCTestCase {
XCTAssertEqual(85.5, (userAttributes["score"] as! JsonObject)["value"] as! Double)
XCTAssertEqual("carl", (userAttributes["_user_name"] as! JsonObject)["value"] as! String)
}

func testModifyGlobalUserAttributesWillNotAffectTheEventUserAttributes() throws {
var userInfo = JsonObject()
let currentTimeStamp = Date().millisecondsSince1970
Expand Down

0 comments on commit 86c9a95

Please sign in to comment.