소스 검색

fix lint errors

B. Petersen 5 년 전
부모
커밋
476b99f262
2개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 4
      .swiftlint.yml
  2. 0 2
      deltachat-ios/Helper/Constants.swift

+ 1 - 4
.swiftlint.yml

@@ -7,6 +7,7 @@ disabled_rules:
 - large_tuple
 - large_tuple
 - todo
 - todo
 - trailing_whitespace
 - trailing_whitespace
+- type_body_length
 
 
 excluded:
 excluded:
 - Carthage
 - Carthage
@@ -40,10 +41,6 @@ function_parameter_count:
   warning: 6
   warning: 6
   error: 8
   error: 8
 
 
-type_body_length:
-  warning: 600
-  error: 800
-
 file_length:
 file_length:
   warning: 1000
   warning: 1000
   error: 1500
   error: 1500

+ 0 - 2
deltachat-ios/Helper/Constants.swift

@@ -11,8 +11,6 @@ struct Constants {
         static let deltachatImapPasswordKey = "__DELTACHAT_IMAP_PASSWORD_KEY__"
         static let deltachatImapPasswordKey = "__DELTACHAT_IMAP_PASSWORD_KEY__"
     }
     }
 
 
-
-
     static let defaultShadow = UIImage(color: UIColor(hexString: "ff2b82"), size: CGSize(width: 1, height: 1))
     static let defaultShadow = UIImage(color: UIColor(hexString: "ff2b82"), size: CGSize(width: 1, height: 1))
     static let onlineShadow = UIImage(color: UIColor(hexString: "3ed67e"), size: CGSize(width: 1, height: 1))
     static let onlineShadow = UIImage(color: UIColor(hexString: "3ed67e"), size: CGSize(width: 1, height: 1))