.swiftlint.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. disabled_rules: # rule identifiers to exclude from running
  2. - function_body_length
  3. - function_parameter_count
  4. - identifier_name
  5. - nesting
  6. - private_over_fileprivate
  7. opt_in_rules: # some rules are only opt-in
  8. - control_statement
  9. - empty_count
  10. - trailing_newline
  11. - colon
  12. - comma
  13. included: # paths to include during linting. `--path` is ignored if present.
  14. - CutBox/CutBox/Source
  15. - Source
  16. - CutBoxUnitTests
  17. excluded: # paths to ignore during linting. Takes precedence over `included`.
  18. - Pods
  19. # configurable rules can be customized from this configuration file
  20. # binary rules can set their severity level
  21. force_cast: warning # implicitly. Give warning only for force casting
  22. force_try: warning # explicitly. Give warning only for force try
  23. type_body_length:
  24. - 800 # warning
  25. - 1000 # error
  26. file_length:
  27. warning: 800
  28. error: 1000
  29. large_tuple: # warn user when using 5 values in tuple, give error if there are 8
  30. - 5
  31. - 8
  32. # naming rules can set warnings/errors for min_length and max_length
  33. # additionally they can set excluded names
  34. type_name:
  35. min_length: 2 # only warning
  36. max_length: # warning and error
  37. warning: 80
  38. error: 120
  39. excluded: iPhone # excluded via string
  40. allowed_symbols: "_"
  41. reporter: "xcode"
  42. empty_count:
  43. severity: warning