.swiftlint.yml 777 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. opt_in_rules:
  2. - empty_count
  3. - empty_string
  4. disabled_rules:
  5. - trailing_comma
  6. - large_tuple
  7. - todo
  8. - trailing_whitespace
  9. excluded:
  10. - Carthage
  11. - Pods
  12. - SwiftLint/Common/3rdPartyLib
  13. force_cast:
  14. warning
  15. identifier_name:
  16. min_length:
  17. warning: 1
  18. error: 0
  19. max_length: 40
  20. line_length:
  21. warning: 160
  22. error: 200
  23. ignores_function_declarations: true
  24. ignores_comments: true
  25. ignores_urls: true
  26. vertical_whitespace:
  27. max_empty_lines: 2
  28. function_body_length:
  29. warning: 300
  30. error: 500
  31. function_parameter_count:
  32. warning: 6
  33. error: 8
  34. type_body_length:
  35. warning: 600
  36. error: 800
  37. file_length:
  38. warning: 1000
  39. error: 1500
  40. ignore_comment_only_lines: true
  41. cyclomatic_complexity:
  42. warning: 20
  43. error: 25
  44. ignores_case_statements: true
  45. reporter: "xcode"