Re-export SwiftLintCore import in SwiftLintFramework

Because the core functionality is always useful when building rules, I'm
opting to import SwiftLintCore in SwiftLintFramework as `@_exported` so
that it's implicitly available to all files in SwiftLintFramework
without needing to import it directly.
This commit is contained in:
JP Simard 2023-04-26 11:59:52 -04:00
parent 711d92e26f
commit 39a05f2c35
2 changed files with 4 additions and 1 deletions

View File

@ -62,8 +62,9 @@ number_separator:
minimum_length: 5
file_name:
excluded:
- SwiftSyntax+SwiftLint.swift
- Exports.swift
- GeneratedTests.swift
- SwiftSyntax+SwiftLint.swift
- TestHelpers.swift
balanced_xctest_lifecycle: &unit_test_configuration
@ -101,3 +102,4 @@ custom_rules:
unused_import:
always_keep_imports:
- SwiftSyntaxBuilder # we can't detect uses of string interpolation of swift syntax nodes
- SwiftLintFramework # now that this is a wrapper around other modules, don't treat as unused

View File

@ -0,0 +1 @@
@_exported import SwiftLintCore