.swiftlint.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. included:
  2. - Realm/ObjectServerTests
  3. - RealmSwift
  4. - Realm/Swift
  5. - examples/installation/watchos/swift
  6. - examples/installation/osx/swift
  7. - examples/installation/ios/swift
  8. - examples/ios/swift
  9. - examples/tvos/swift
  10. identifier_name:
  11. min_length: # not possible to disable this partial rule, so set it to zero
  12. warning: 0
  13. error: 0
  14. excluded:
  15. - _nilValue()
  16. - _nsError
  17. - _nsErrorDomain
  18. - _observe(_:)
  19. - _realmColumnNames()
  20. - _realmObjectName()
  21. - _rlmArray()
  22. - id
  23. - pk
  24. - to
  25. disabled_rules:
  26. - block_based_kvo
  27. # SwiftLint considers 'Realm' and 'Realm.Private' to be duplicate imports
  28. # because we're using submodules in an unsual way, and normally the parent
  29. # module re-exports all of its children.
  30. - duplicate_imports
  31. - file_length
  32. - force_cast
  33. - force_try
  34. - function_body_length
  35. - line_length
  36. - nesting
  37. - syntactic_sugar
  38. - todo
  39. - type_body_length
  40. - vertical_whitespace
  41. # swiftlint complains about superfluous disable commands when the violation
  42. # occurs in an inactive #if and doesn't support conditionally disabling it
  43. - cyclomatic_complexity