.swiftlint.yml 979 B

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