Revert "Expose only SwiftLintCore in SPM and Bazel (#6021)"

This reverts commit 850eb7e214.
This commit is contained in:
Danny Mösch
2025-03-16 19:23:39 +01:00
parent 850eb7e214
commit 0004642abf
3 changed files with 11 additions and 5 deletions
+3 -3
View File
@@ -55,7 +55,7 @@ swift_library(
srcs = glob(["Source/SwiftLintCoreMacros/*.swift"]),
copts = copts + strict_concurrency_copts,
module_name = "SwiftLintCoreMacros",
visibility = ["//:__subpackages__"],
visibility = ["//visibility:public"],
deps = [
"@SwiftSyntax//:SwiftCompilerPlugin_opt",
"@SwiftSyntax//:SwiftSyntaxMacros_opt",
@@ -110,7 +110,7 @@ swift_library(
srcs = glob(["Source/SwiftLintBuiltInRules/**/*.swift"]),
copts = copts + strict_concurrency_copts,
module_name = "SwiftLintBuiltInRules",
visibility = ["//:__subpackages__"],
visibility = ["//visibility:public"],
deps = [
":SwiftLintCore",
],
@@ -139,7 +139,7 @@ swift_library(
),
copts = copts + targeted_concurrency_copts,
module_name = "SwiftLintFramework",
visibility = ["//:__subpackages__"],
visibility = ["//visibility:public"],
deps = [
":SwiftLintBuiltInRules",
":SwiftLintCore",
+1 -1
View File
@@ -27,7 +27,7 @@ let package = Package(
platforms: [.macOS(.v12)],
products: [
.executable(name: "swiftlint", targets: ["swiftlint"]),
.library(name: "SwiftLintCore", targets: ["SwiftLintCore"]),
.library(name: "SwiftLintFramework", targets: ["SwiftLintFramework"]),
.plugin(name: "SwiftLintBuildToolPlugin", targets: ["SwiftLintBuildToolPlugin"]),
.plugin(name: "SwiftLintCommandPlugin", targets: ["SwiftLintCommandPlugin"]),
],
+7 -1
View File
@@ -41,6 +41,7 @@ swift_library(
swift_test(
name = "CLITests",
visibility = ["//visibility:public"],
deps = [":CLITests.library"],
)
@@ -60,6 +61,7 @@ swift_library(
swift_test(
name = "MacroTests",
visibility = ["//visibility:public"],
deps = [":MacroTests.library"],
)
@@ -106,6 +108,7 @@ swift_test(
# Bazel doesn't support paths with spaces in them
exclude = ["BuiltInRulesTests/Resources/FileNameNoSpaceRuleFixtures/**"],
),
visibility = ["//visibility:public"],
deps = [":BuiltInRulesTests.library"],
)
@@ -133,6 +136,7 @@ swift_test(
data = glob(
["FrameworkTests/Resources/**"],
),
visibility = ["//visibility:public"],
deps = [":FrameworkTests.library"],
)
@@ -152,6 +156,7 @@ swift_library(
swift_test(
name = "GeneratedTests",
visibility = ["//visibility:public"],
deps = [":GeneratedTests.library"],
)
@@ -163,7 +168,7 @@ filegroup(
["**/*.swift"],
exclude = ["**/Resources/**"],
),
visibility = ["//:__pkg__"],
visibility = ["//visibility:public"],
)
swift_library(
@@ -184,6 +189,7 @@ swift_test(
"//:LintInputs",
"IntegrationTests/default_rule_configurations.yml"
],
visibility = ["//visibility:public"],
deps = [":IntegrationTests.library"],
)