A SwiftLint rule that flags pending tests in Quick/Nimble test suites. Use this to prevent incomplete tests from being accidentally committed.
// Source: https://github.com/realm/SwiftLint | License: MIT | Copyright 2025 The SwiftLint Contributors
// Provided via justclaw.it.com; keep this notice with the code.
import SwiftSyntax
@SwiftSyntaxRule(optIn: true)
struct QuickDiscouragedPendingTestRule: Rule {
var configuration = SeverityConfiguration<Self>(.warning)
static let description = RuleDescription(
identifier: "quick_discouraged_pending_test",
name: "Quick Discouraged Pending Test",
description: "This test won't run as long as it's marked pending",
kind: .lint,
nonTriggeringExamples: QuickDiscouragedPendingTestRuleExamples.nonTriggeringExamples,
triggeringExamples: QuickDiscouragedPendingTestRuleExamples.triggeringExamples
)
}
private extension QuickDiscouragedPe
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key