.swiftlint.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. disabled_rules: # rule identifiers to exclude from running
  2. - identifier_name
  3. - function_body_length
  4. - nesting
  5. - function_parameter_count
  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
  15. - CutBox/CutBoxTests
  16. - CutBox/CutBoxUITests
  17. excluded: # paths to ignore during linting. Takes precedence over `included`.
  18. - CutBox/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. - 300 # warning
  25. - 400 # error
  26. # or they can set both explicitly
  27. file_length:
  28. warning: 500
  29. error: 800
  30. large_tuple: # warn user when using 3 values in tuple, give error if there are 4
  31. - 4
  32. - 5
  33. # naming rules can set warnings/errors for min_length and max_length
  34. # additionally they can set excluded names
  35. type_name:
  36. min_length: 2 # only warning
  37. max_length: # warning and error
  38. warning: 60
  39. error: 65
  40. excluded: iPhone # excluded via string
  41. allowed_symbols: "_"
  42. reporter: "xcode"
  43. empty_count:
  44. severity: warning