@@ -685,7 +685,7 @@ final class CustomRulesTests: SwiftLintTestCase {
685
685
XCTAssertEqual ( violations [ 1 ] . location. character, 18 )
686
686
}
687
687
688
- func testCustomRuleDefaultsToSwiftSyntaxWhenNoModeSpecified ( ) throws {
688
+ func testCustomRuleDefaultsToSourceKitWhenNoModeSpecified ( ) throws {
689
689
// When NO execution mode is specified (neither default nor per-rule), it should default to swiftsyntax
690
690
let customRules : [ String : Any ] = [
691
691
" no_foo " : [
@@ -713,8 +713,8 @@ final class CustomRulesTests: SwiftLintTestCase {
713
713
return
714
714
}
715
715
716
- XCTAssertTrue ( customRule. isEffectivelySourceKitFree,
717
- " Rule should be effectively SourceKit-free when defaulting to swiftsyntax " )
716
+ XCTAssertFalse ( customRule. isEffectivelySourceKitFree,
717
+ " Rule depends on SourceKit " )
718
718
}
719
719
720
720
func testCustomRuleWithMatchKindsUsesSwiftSyntaxWhenConfigured( ) throws {
@@ -740,8 +740,8 @@ final class CustomRulesTests: SwiftLintTestCase {
740
740
XCTAssertEqual ( violations [ 0 ] . location. character, 23 ) // Position of 'foo' in comment
741
741
}
742
742
743
- func testCustomRuleWithKindFilteringDefaultsToSwiftSyntax ( ) throws {
744
- // When using kind filtering without specifying mode, it should default to swiftsyntax
743
+ func testCustomRuleWithKindFilteringDefaultsToSourceKit ( ) throws {
744
+ // When using kind filtering without specifying mode, it should default to sourcekit
745
745
let customRules : [ String : Any ] = [
746
746
" no_keywords " : [
747
747
" regex " : " \\ b \\ w+ \\ b " ,
@@ -769,8 +769,8 @@ final class CustomRulesTests: SwiftLintTestCase {
769
769
return
770
770
}
771
771
772
- XCTAssertTrue ( customRule. isEffectivelySourceKitFree,
773
- " Rule with kind filtering should default to swiftsyntax mode " )
772
+ XCTAssertFalse ( customRule. isEffectivelySourceKitFree,
773
+ " Rule with kind filtering should default to sourcekit mode " )
774
774
}
775
775
776
776
func testCustomRuleWithExcludedMatchKindsUsesSwiftSyntaxWithDefaultMode( ) throws {
0 commit comments