.swiftlint.yml 920 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. opt_in_rules: # some rules are turned off by default, so you need to opt-in
  2. - empty_collection_literal
  3. - empty_string
  4. - explicit_init
  5. - unneeded_parentheses_in_closure_argument
  6. - operator_usage_whitespace
  7. line_length:
  8. warning: 1000
  9. error: 5000
  10. function_body_length:
  11. warning: 400
  12. type_body_length:
  13. warning: 2000
  14. error: 2500
  15. file_length:
  16. warning: 2000
  17. error: 2500
  18. ignore_comment_only_lines: true
  19. identifier_name:
  20. min_length: 0
  21. max_length: 100
  22. disabled_rules:
  23. - unused_setter_value
  24. - large_tuple
  25. - function_parameter_count
  26. - multiple_closures_with_trailing_closure
  27. - for_where
  28. - cyclomatic_complexity
  29. - nesting
  30. - shorthand_operator
  31. - type_name
  32. - void_function_in_ternary
  33. - switch_case_alignment
  34. excluded:
  35. - Carthage
  36. - Pods
  37. - Tests
  38. - Brand/NCBrand.swift
  39. - iOSClient/NCGlobal.swift
  40. - iOSClient/Utility/NCLivePhoto.swift
  41. - DerivedData
  42. reporter: "xcode"