Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 1 | disabled_rules: # rule identifiers to exclude from running |
Thibault Wittemberg | d28b748 | 2017-07-06 17:58:30 -0400 | [diff] [blame] | 2 | - todo |
Raphaël Brulé | 41f8498 | 2020-08-14 15:34:57 -0400 | [diff] [blame] | 3 | - closure_parameter_position |
Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 4 | |
| 5 | opt_in_rules: # some rules are only opt-in |
Raphaël Brulé | c1e7b37 | 2020-08-13 17:00:42 -0400 | [diff] [blame] | 6 | - 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 |
Raphaël Brulé | c36d663 | 2020-08-18 16:32:45 -0400 | [diff] [blame] | 15 | - multiline_function_chains |
Raphaël Brulé | 41f8498 | 2020-08-14 15:34:57 -0400 | [diff] [blame] | 16 | - closing_brace_spacing |
Raphaël Brulé | c36d663 | 2020-08-18 16:32:45 -0400 | [diff] [blame] | 17 | - closure_body_length |
Raphaël Brulé | 41f8498 | 2020-08-14 15:34:57 -0400 | [diff] [blame] | 18 | - unused_declaration |
| 19 | - vertical_parameter_alignment_on_call |
| 20 | - collection_alignment |
| 21 | - identical_operands |
| 22 | - let_var_whitespace |
Raphaël Brulé | a926550 | 2020-08-19 09:24:05 -0400 | [diff] [blame] | 23 | - attributes |
| 24 | - lower_acl_than_parent |
Raphaël Brulé | 41f8498 | 2020-08-14 15:34:57 -0400 | [diff] [blame] | 25 | - strict_fileprivate |
Raphaël Brulé | a926550 | 2020-08-19 09:24:05 -0400 | [diff] [blame] | 26 | - overridden_super_call |
Raphaël Brulé | fdc30a0 | 2020-08-19 16:04:56 -0400 | [diff] [blame] | 27 | - unowned_variable_capture |
Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 28 | |
| 29 | excluded: # paths to ignore during linting. Takes precedence over `included`. |
| 30 | - Carthage |
| 31 | - Pods |
Kateryna Kostiuk | 8fe122e | 2017-09-13 17:09:51 -0400 | [diff] [blame] | 32 | - Ring/Constants |
Raphaël Brulé | 8413fde | 2020-07-13 10:03:52 -0400 | [diff] [blame] | 33 | - WhirlyGlobeMaply |
Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 34 | |
| 35 | force_cast: warning # implicitly |
| 36 | force_try: |
| 37 | severity: warning # explicitly |
| 38 | |
Raphaël Brulé | c36d663 | 2020-08-18 16:32:45 -0400 | [diff] [blame] | 39 | closure_body_length: |
| 40 | - 60 # warning |
Raphaël Brulé | a926550 | 2020-08-19 09:24:05 -0400 | [diff] [blame] | 41 | - 80 # error |
Raphaël Brulé | c1e7b37 | 2020-08-13 17:00:42 -0400 | [diff] [blame] | 42 | |
Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 43 | type_body_length: |
| 44 | - 300 # warning |
| 45 | - 400 # error |
| 46 | |
| 47 | type_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 | |
| 54 | identifier_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 | |
| 62 | reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji) |
| 63 | |
| 64 | function_body_length: |
| 65 | - 75 |
| 66 | - 100 |
| 67 | |
| 68 | file_length: |
| 69 | warning: 600 |
| 70 | error: 1200 |
| 71 | |
| 72 | line_length: |
| 73 | warning: 200 |
| 74 | error: 250 |