OSDN Git Service

swiftlint 'comma' の警告を修正
[kcd/KCD.git] / .swiftlint.yml
1
2 disabled_rules:
3     - variable_name
4     - closing_brace
5     - control_statement
6     - shorthand_operator
7     - force_cast
8     - force_try
9     - leading_whitespace
10     - vertical_whitespace
11     - unused_closure_parameter
12     - legacy_constructor
13     - cyclomatic_complexity
14     - legacy_nsgeometry_functions
15     - class_delegate_protocol
16     - weak_delegate
17     - redundant_optional_initialization
18     - large_tuple
19     - syntactic_sugar
20     - trailing_comma
21     - empty_parentheses_with_trailing_closure
22     - function_parameter_count
23     - nesting
24     - opening_brace
25     - operator_whitespace
26     - return_arrow_whitespace
27     - statement_position
28     - todo
29     - trailing_newline
30     - trailing_semicolon
31     - trailing_whitespace
32     - valid_docs
33
34
35
36 file_length:
37     warning: 500
38
39 line_length: 500
40
41 variable_name:
42   max_length:
43     warning: 100
44     error: 200
45   min_length:
46     warning: 1
47     error: 2
48
49 type_name:
50   max_length:
51     warning: 55
52     error: 60
53   min_length:
54     error: 3
55
56 type_body_length:
57     warning: 300
58     error: 900
59
60 function_body_length:
61     warning: 100
62     error: 1000
63
64 function_parameter_count:
65     warning: 6
66     error: 8
67
68 cyclomatic_complexity:
69     warning: 20
70     error: 20