OSDN Git Service

Doutakuを導入
[kcd/KCD.git] / .swiftlint.yml
index 5cea4ab..d9d50c3 100644 (file)
@@ -1,23 +1,57 @@
-
+excluded:
+    - Carthage
 disabled_rules:
     - leading_whitespace
     - vertical_whitespace
-    - cyclomatic_complexity
-    - trailing_comma
+    - unused_optional_binding
+    - discarded_notification_center_observer
     - todo
-    - trailing_whitespace
+    - block_based_kvo
+
+trailing_whitespace:
+    ignores_empty_lines: true
+    ignores_comments: true
+
+vertical_whitespace:
+    max_empty_lines: 2
+
 file_length:
-    warning: 500
-variable_name:
+    warning: 1500
+    error: 3000
+
+line_length:
+    warning: 300
+    error: 500
+    ignores_function_declarations: true
+    ignores_comments: true
+
+type_body_length:
+    warning: 600
+    error: 1000
+
+function_body_length:
+    warning: 100
+    error: 200
+
+identifier_name:
   max_length:
     warning: 40
     error: 60
   min_length:
     warning: 1
-function_body_length:
-    warning: 40
-    error: 100
+
 large_tuple: 3
+
 cyclomatic_complexity:
-    warning: 20
-    error: 20
+    warning: 25
+    error: 60
+
+
+custom_rules:
+        use_nsmanagedobjectcontext:
+                excluded: "ServerDataStore|ResourceHistoryDataStore|LocalDataStore|TemporaryDataStore|BookmarkDataStore|CoreDataManager|CoreDataCore|MOCGenerator"
+                name: "Positive using NSManagedObjectContext"
+                regex: "NSManagedObjectContext\\s"
+                severity: error
+        private_iboutlet:
+                regex: "@IBOutlet\\s+(?!private[(\\s])"
\ No newline at end of file