This repository has been archived by the owner on Jun 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 305
/
.swiftlint.yml
67 lines (59 loc) · 1.44 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
57
58
59
60
61
62
63
64
65
66
67
disabled_rules:
- file_length
- type_body_length
- function_body_length
- trailing_whitespace
- empty_enum_arguments
- function_parameter_count
- identifier_name
- type_name
- nesting
- large_tuple
opt_in_rules:
- private_action
- private_outlet
- prefixed_toplevel_constant
- overridden_super_call
- file_header
- weak_delegate
- collection_alignment
- empty_count
- empty_string
- fatal_error_message
- function_default_parameter_at_end
- last_where
- legacy_random
- multiline_function_chains
- multiline_literal_brackets
- multiline_parameters
- override_in_extension
- sorted_first_last
- toggle_bool
- unused_optional_binding
- vertical_parameter_alignment_on_call
- yoda_condition
excluded:
- Package.swift
- Pods
- PagingLayoutSamples/SampleProject.bundle/SampleProject
- Samples/Pods
- Samples/PagingLayoutSamples/SampleProject.bundle/SampleProject
- CollectionViewPagingLayoutTests
# adjusting rules
vertical_whitespace:
max_empty_lines: 2
line_length:
warning: 180
error: 200
file_header:
required_pattern: |
\/\/
\/\/ .*?\.swift
\/\/ .*
\/\/
\/\/ (Created by .*? on .*?)
\/\/ Copyright © \d{4} Amir Khorsandi. All rights reserved\.
\/\/
reporter: "xcode"
cyclomatic_complexity:
ignores_case_statements: true