forked from realm/realm-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
67 lines (67 loc) · 1.8 KB
/
.swiftlint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
included:
- Realm/ObjectServerTests
- RealmSwift
- Realm/Swift
- examples/installation/watchos/swift
- examples/installation/osx/swift
- examples/installation/ios/swift
- examples/ios/swift
- examples/tvos/swift
identifier_name:
min_length: # not possible to disable this partial rule, so set it to zero
warning: 0
error: 0
excluded:
- _id
- _nilValue()
- _name(for:)
- _nsError
- _nsErrorDomain
- _observe(_:)
- _observe(_:_:)
- _observe(_:_:_:)
- _observe(_:on:_:)
- _realmColumnNames()
- _realmObjectName()
- _rlmCollection
- _rlmCollection()
- _rlmDefaultValue(_:)
- _rlmFromRawValue(_:)
- _rlmGetProperty(_:_:)
- _rlmGetPropertyOptional(_:_:)
- _rlmKeyPathRecorder(with:)
- _rlmOptional
- _rlmPopulateProperty(_:)
- _rlmRequireObjc
- _rlmRequiresCaching
- _rlmSetAccessor(_:)
- _rlmSetProperty(_:_:_:)
- _rlmToRawValue(_:)
- _rlmType
- id
- pk
- to
disabled_rules:
- block_based_kvo
# SwiftLint expects a space following a double slash comment: "//".
# examples/ios/swift/GettingStarted.playground/Contents.swift includes "//:", which is inentional.
- comment_spacing
# SwiftLint considers 'Realm' and 'Realm.Private' to be duplicate imports
# because we're using submodules in an unsual way, and normally the parent
# module re-exports all of its children.
- duplicate_imports
- file_length
- force_cast
- force_try
- function_body_length
- function_parameter_count
- line_length
- nesting
- syntactic_sugar
- todo
- trailing_comma
- type_body_length
- vertical_whitespace
# swiftlint complains about superfluous disable commands when the violation
# occurs in an inactive #if and doesn't support conditionally disabling it
- cyclomatic_complexity