OSDN Git Service

swiftlint 'syntactic_sugar'の警告を修正
[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     - legacy_constructor
12     - cyclomatic_complexity
13     - legacy_nsgeometry_functions
14     - class_delegate_protocol
15     - weak_delegate
16     - redundant_optional_initialization
17     - large_tuple
18     - trailing_comma
19     - empty_parentheses_with_trailing_closure
20     - function_parameter_count
21     - opening_brace
22     - operator_whitespace
23     - return_arrow_whitespace
24     - statement_position
25     - todo
26     - trailing_newline
27     - trailing_semicolon
28     - trailing_whitespace
29
30
31
32 file_length:
33     warning: 500
34
35 line_length: 500
36
37 variable_name:
38   max_length:
39     warning: 100
40     error: 200
41   min_length:
42     warning: 1
43     error: 2
44
45 type_name:
46   max_length:
47     warning: 55
48     error: 60
49   min_length:
50     error: 3
51
52 type_body_length:
53     warning: 300
54     error: 900
55
56 function_body_length:
57     warning: 100
58     error: 1000
59
60 function_parameter_count:
61     warning: 6
62     error: 8
63
64 cyclomatic_complexity:
65     warning: 20
66     error: 20