-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.swiftlint.yml
42 lines (41 loc) · 1.13 KB
/
.swiftlint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# document: https://github.com/realm/SwiftLint
disabled_rules:
- line_length
- file_length
- type_body_length
- function_body_length
- identifier_name
- cyclomatic_complexity
- large_tuple
- function_parameter_count
- nesting
- redundant_string_enum_value # Codableの適合性で利用されるため、明示的にしたい
opt_in_rules:
- unused_import
- unused_declaration
- unused_capture_list
- implicit_return # implicit returnを推奨
- sorted_imports # importをsortする
- anyobject_protocol # AnyObjectをclassよりも推奨
- array_init # Array()を推奨
- conditional_returns_on_newline
- empty_string # 同上
- explicit_init # explicitに.initを書かない
- first_where # .filter { }.firstよりも.first(where:)を用いる.
- operator_usage_whitespace # 演算子の左右に空白を
- redundant_nil_coalescing # ?? nilを禁止
- reduce_into # reduce(into:)を推奨
- toggle_bool # .toggleを推奨
included:
- MainApp
- Keyboard
- Shared
- azooKeyTests
- AzooKeyCore
- DictionaryDebugger
excluded:
- AzooKeyCore/.build
type_name:
excluded:
- ID
- 行