diff --git a/CHANGELOG.md b/CHANGELOG.md index c8814b5e8..07556e346 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,7 @@ parameters are vertically aligned on a method call. [Marcelo Fabri](https://github.com/marcelofabri) [#1037](https://github.com/realm/SwiftLint/issues/1037) + * Add `code_literal` and `image_literal` boolean configuration options to `object_literal` rule. They allow to only check for one or the other literal type instead of both together. @@ -134,12 +135,12 @@ [Samuel Susla](https://github.com/sammy-SC) [Jeremy David Giesbrecht](https://github.com/SDGGiesbrecht) [#1326](https://github.com/realm/SwiftLint/issues/1326) - + * Added `no_extension_access_modifier` opt-in rule to disallow access modifiers completely, à la SE-0119. [Jose Cheyo Jimenez](https://github.com/masters3d) [#1457](https://github.com/realm/SwiftLint/issues/1457) - + * Add lowercase and missing colon checks to the `mark` rule. [Jason Moore](https://github.com/xinsight) diff --git a/Tests/SwiftLintFrameworkTests/ObjectLiteralRuleTests.swift b/Tests/SwiftLintFrameworkTests/ObjectLiteralRuleTests.swift index abb41c287..c6f2ee5ef 100644 --- a/Tests/SwiftLintFrameworkTests/ObjectLiteralRuleTests.swift +++ b/Tests/SwiftLintFrameworkTests/ObjectLiteralRuleTests.swift @@ -38,7 +38,6 @@ class ObjectLiteralRuleTests: XCTestCase { verifyRule(ObjectLiteralRule.description) } - // swiftlint:disable:next function_body_length func testObjectLiteralWithImageLiteral() { // Verify ObjectLiteral rule for when image_literal is true. let baseDescription = ObjectLiteralRule.description @@ -57,7 +56,6 @@ class ObjectLiteralRuleTests: XCTestCase { verifyRule(description, ruleConfiguration: ["image_literal": true, "color_literal": false]) } - // swiftlint:disable:next function_body_length func testObjectLiteralWithColorLiteral() { // Verify ObjectLiteral rule for when color_literal is true. let baseDescription = ObjectLiteralRule.description @@ -76,7 +74,6 @@ class ObjectLiteralRuleTests: XCTestCase { verifyRule(description, ruleConfiguration: ["image_literal": false, "color_literal": true]) } - // swiftlint:disable:next function_body_length func testObjectLiteralWithImageAndColorLiteral() { // Verify ObjectLiteral rule for when image_literal & color_literal are true. let baseDescription = ObjectLiteralRule.description