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 |
Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 3 | |
| 4 | opt_in_rules: # some rules are only opt-in |
| 5 | - empty_count |
| 6 | |
| 7 | excluded: # paths to ignore during linting. Takes precedence over `included`. |
| 8 | - Carthage |
| 9 | - Pods |
| 10 | |
| 11 | force_cast: warning # implicitly |
| 12 | force_try: |
| 13 | severity: warning # explicitly |
| 14 | |
| 15 | type_body_length: |
| 16 | - 300 # warning |
| 17 | - 400 # error |
| 18 | |
| 19 | type_name: |
| 20 | min_length: 4 # only warning |
| 21 | max_length: # warning and error |
| 22 | warning: 40 |
| 23 | error: 50 |
| 24 | excluded: iPhone # excluded via string |
| 25 | |
| 26 | identifier_name: |
| 27 | min_length: # only min_length |
| 28 | error: 3 # only error |
| 29 | excluded: # excluded via string array |
| 30 | - id |
| 31 | - URL |
| 32 | - GlobalAPIKey |
| 33 | |
| 34 | reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji) |
| 35 | |
| 36 | function_body_length: |
| 37 | - 75 |
| 38 | - 100 |
| 39 | |
| 40 | file_length: |
| 41 | warning: 600 |
| 42 | error: 1200 |
| 43 | |
| 44 | line_length: |
| 45 | warning: 200 |
| 46 | error: 250 |