forked from thomaschristensen/Pantomime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
executable file
·55 lines (42 loc) · 1 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
# https://github.com/realm/SwiftLint
#
# run on CLI (or as build phase):
#
# swiftlint rules / autocorrect / lint (default)
#
#
disabled_rules: # rule identifiers to exclude from running
- valid_docs # /// is valid and used by Xcode
- cyclomatic_complexity
- variable_name
opt_in_rules: # some rules are only opt-in
- empty_count
#- missing_docs
# Find all the available rules by running:
# swiftlint rules
included: # paths to include during linting. `--path` is ignored if present.
- sources
- SwiftyBeaver
- SwiftyBeaverTests
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
line_length: 121
function_parameter_count:
warning: 10
error: 15
function_body_length:
warning: 80
error: 100
type_body_length:
warning: 700
error: 1000
file_length:
warning: 1200
error: 1500
variable_name:
min_length: 2
excluded:
- translatesAutoresizingMaskIntoConstraints
type_name:
min_length: 2
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)