Remove unnecessary rule disabling

This commit is contained in:
Cihat Gündüz
2017-06-15 06:04:23 +02:00
parent 52ab08c3ae
commit 314da3dc8e
2 changed files with 3 additions and 5 deletions
+3 -2
View File
@@ -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