mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Remove unnecessary rule disabling
This commit is contained in:
+3
-2
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user