21 lines
516 B
Plaintext
21 lines
516 B
Plaintext
@testable import SwiftLintBuiltInRules
|
|
@_spi(TestHelper)
|
|
@testable import SwiftLintCore
|
|
import SwiftLintTestHelpers
|
|
|
|
// swiftlint:disable:next blanket_disable_command
|
|
// swiftlint:disable file_length single_test_class type_name
|
|
|
|
{% for rule in types.structs %}
|
|
{% if rule.name|hasSuffix:"Rule" %}
|
|
class {{ rule.name }}GeneratedTests: SwiftLintTestCase {
|
|
func testWithDefaultConfiguration() {
|
|
verifyRule({{ rule.name }}.description)
|
|
}
|
|
}
|
|
{% if not forloop.last %}
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|