-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
56 lines (56 loc) · 1.33 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
included:
- Sources
- Plugins
excluded:
- Demo
- DemoWithPackage
- Tests
- Package.swift
- Dangerfile.swift
allow_zero_lintable_files: true
opt_in_rules: [all]
analyzer_rules: [all]
disabled_rules:
- anonymous_argument_in_multiline_closure
- explicit_acl
- explicit_enum_raw_value
- explicit_top_level_acl
- explicit_type_interface
- file_header
- file_name
- file_types_order
- force_unwrapping
- function_default_parameter_at_end
- indentation_width # https://github.com/realm/SwiftLint/issues/3046
- let_var_whitespace # https://github.com/realm/SwiftLint/issues/2980
- missing_docs
- multiline_arguments_brackets
- no_extension_access_modifier
- no_grouping_extension
- one_declaration_per_file
- prefixed_toplevel_constant
- required_deinit
- shorthand_argument
- sorted_enum_cases
- strict_fileprivate
- switch_case_on_newline
- vertical_whitespace_between_cases
attributes:
always_on_same_line:
- '@Environment'
conditional_returns_on_newline:
if_only: true
identifier_name:
min_length: 2
line_length:
warning: 180
ignores_urls: true
ignores_function_declarations: true
ignores_comments: true
ignores_interpolated_strings: true
file_length:
ignore_comment_only_lines: true
cyclomatic_complexity:
ignores_case_statements: true
trailing_comma:
mandatory_comma: true