@@ -79,6 +79,7 @@ Underscores (except at the beginning of an identifier) are disallowed.
79
79
80
80
This rule does not apply to test code, defined as code which:
81
81
* Contains the line ` import XCTest `
82
+ * The function is marked with ` @Test ` attribute
82
83
83
84
Lint: If an identifier contains underscores or begins with a capital letter, a lint error is
84
85
raised.
@@ -188,6 +189,7 @@ Force-unwraps are strongly discouraged and must be documented.
188
189
189
190
This rule does not apply to test code, defined as code which:
190
191
* Contains the line ` import XCTest `
192
+ * The function is marked with ` @Test ` attribute
191
193
192
194
Lint: If a force unwrap is used, a lint warning is raised.
193
195
@@ -199,6 +201,7 @@ Force-try (`try!`) is forbidden.
199
201
200
202
This rule does not apply to test code, defined as code which:
201
203
* Contains the line ` import XCTest `
204
+ * The function is marked with ` @Test ` attribute
202
205
203
206
Lint: Using ` try! ` results in a lint error.
204
207
@@ -214,6 +217,7 @@ Certain properties (e.g. `@IBOutlet`) tied to the UI lifecycle are ignored.
214
217
215
218
This rule does not apply to test code, defined as code which:
216
219
* Contains the line ` import XCTest `
220
+ * The function is marked with ` @Test ` attribute
217
221
218
222
TODO: Create exceptions for other UI elements (ex: viewDidLoad)
219
223
0 commit comments