12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- disabled_rules: # rule identifiers to exclude from running
- - identifier_name
- - function_body_length
- - nesting
- - function_parameter_count
- - private_over_fileprivate
- opt_in_rules: # some rules are only opt-in
- - control_statement
- - empty_count
- - trailing_newline
- - colon
- - comma
- included: # paths to include during linting. `--path` is ignored if present.
- - CutBox/CutBox
- - CutBox/CutBoxTests
- - CutBox/CutBoxUITests
- excluded: # paths to ignore during linting. Takes precedence over `included`.
- - CutBox/Pods
- # configurable rules can be customized from this configuration file
- # binary rules can set their severity level
- force_cast: warning # implicitly. Give warning only for force casting
- force_try: warning # explicitly. Give warning only for force try
- type_body_length:
- - 300 # warning
- - 400 # error
- # or they can set both explicitly
- file_length:
- warning: 500
- error: 800
- large_tuple: # warn user when using 3 values in tuple, give error if there are 4
- - 4
- - 5
- # naming rules can set warnings/errors for min_length and max_length
- # additionally they can set excluded names
- type_name:
- min_length: 2 # only warning
- max_length: # warning and error
- warning: 60
- error: 65
- excluded: iPhone # excluded via string
- allowed_symbols: "_"
- reporter: "xcode"
- empty_count:
- severity: warning
|