OSDN Git Service

swiftlint 'opening_brace'の警告を修正
[kcd/KCD.git] / .swiftlint.yml
index df01bad..6eaa89a 100644 (file)
@@ -1,61 +1,27 @@
 
 disabled_rules:
-    - variable_name
-    - shorthand_operator
-    - force_cast
-    - force_try
     - leading_whitespace
     - vertical_whitespace
-    - legacy_constructor
     - cyclomatic_complexity
-    - legacy_nsgeometry_functions
-    - class_delegate_protocol
-    - weak_delegate
-    - redundant_optional_initialization
-    - large_tuple
     - trailing_comma
     - function_parameter_count
-    - opening_brace
-    - operator_whitespace
-    - return_arrow_whitespace
-    - statement_position
     - todo
     - trailing_whitespace
-
-
-
 file_length:
     warning: 500
-
-line_length: 500
-
 variable_name:
   max_length:
-    warning: 100
-    error: 200
-  min_length:
-    warning: 1
-    error: 2
-
-type_name:
-  max_length:
-    warning: 55
+    warning: 40
     error: 60
   min_length:
-    error: 3
-
-type_body_length:
-    warning: 300
-    error: 900
-
+    warning: 1
 function_body_length:
-    warning: 100
-    error: 1000
-
+    warning: 40
+    error: 100
 function_parameter_count:
     warning: 6
     error: 8
-
+large_tuple: 3
 cyclomatic_complexity:
     warning: 20
     error: 20