blob: d557f7c96034933cc38f3abf953ae31daa68cbda [file] [log] [blame]
Thibault Wittemberg14b092a2017-07-04 18:13:26 -04001disabled_rules: # rule identifiers to exclude from running
Thibault Wittembergd28b7482017-07-06 17:58:30 -04002 - todo
Raphaël Brulé41f84982020-08-14 15:34:57 -04003 - closure_parameter_position
Thibault Wittemberg14b092a2017-07-04 18:13:26 -04004
5opt_in_rules: # some rules are only opt-in
Raphaël Bruléc1e7b372020-08-13 17:00:42 -04006 - closure_spacing # can be autocorrected
7 - closure_end_indentation
8 - literal_expression_end_indentation
9 - operator_usage_whitespace
10 - unused_import
11 - explicit_self
12 - modifier_order
13 - toggle_bool
14 - empty_count # can't be autocorrected
15 #- multiline_function_chains
Raphaël Brulé41f84982020-08-14 15:34:57 -040016 - closing_brace_spacing
Raphaël Bruléc1e7b372020-08-13 17:00:42 -040017 #- closure_body_length
Raphaël Brulé41f84982020-08-14 15:34:57 -040018 - unused_declaration
19 - vertical_parameter_alignment_on_call
20 - collection_alignment
21 - identical_operands
22 - let_var_whitespace
Raphaël Bruléc1e7b372020-08-13 17:00:42 -040023 #- attributes
24 #- lower_acl_than_parent
Raphaël Brulé41f84982020-08-14 15:34:57 -040025 - strict_fileprivate
Raphaël Bruléc1e7b372020-08-13 17:00:42 -040026 #- overridden_super_call
27 #- unowned_variable_capture
Thibault Wittemberg14b092a2017-07-04 18:13:26 -040028
29excluded: # paths to ignore during linting. Takes precedence over `included`.
30 - Carthage
31 - Pods
Kateryna Kostiuk8fe122e2017-09-13 17:09:51 -040032 - Ring/Constants
Raphaël Brulé8413fde2020-07-13 10:03:52 -040033 - WhirlyGlobeMaply
Thibault Wittemberg14b092a2017-07-04 18:13:26 -040034
35force_cast: warning # implicitly
36force_try:
37 severity: warning # explicitly
38
Raphaël Bruléc1e7b372020-08-13 17:00:42 -040039#closure_body_length:
40 #- 60 # warning
41 #- 287 # error
42
Thibault Wittemberg14b092a2017-07-04 18:13:26 -040043type_body_length:
44 - 300 # warning
45 - 400 # error
46
47type_name:
48 min_length: 4 # only warning
49 max_length: # warning and error
50 warning: 40
51 error: 50
52 excluded: iPhone # excluded via string
53
54identifier_name:
55 min_length: # only min_length
56 error: 3 # only error
57 excluded: # excluded via string array
58 - id
59 - URL
60 - GlobalAPIKey
61
62reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji)
63
64function_body_length:
65 - 75
66 - 100
67
68file_length:
69 warning: 600
70 error: 1200
71
72line_length:
73 warning: 200
74 error: 250