瀏覽代碼

Removed function_body_length from .swiftlint.yml and disabled it in the only test file that breaks the default 40 line limit

Andrea Bizzotto 8 年之前
父節點
當前提交
c76269c4c2
共有 2 個文件被更改,包括 3 次插入4 次删除
  1. 1 4
      .swiftlint.yml
  2. 2 0
      SwiftyStoreKitTests/PaymentQueueControllerTests.swift

+ 1 - 4
.swiftlint.yml

@@ -5,9 +5,6 @@
 disabled_rules:
 - line_length
 
-
-
 # configurable rules can be customized from this configuration file
 line_length: 250
-function_body_length:
-  warning: 50
+

+ 2 - 0
SwiftyStoreKitTests/PaymentQueueControllerTests.swift

@@ -22,6 +22,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+// swiftlint:disable function_body_length
+
 import XCTest
 import StoreKit
 @testable import SwiftyStoreKit