Skip to content

Commit

Permalink
Build with warnings as errors excluding SourceKitten (#5818)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny authored Oct 6, 2024
1 parent 88c2e4c commit d22a719
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ config_setting(
)

copts = [
"-warnings-as-errors",
"-enable-upcoming-feature",
"ExistentialAny",
"-enable-upcoming-feature",
Expand Down Expand Up @@ -90,7 +91,7 @@ swift_library(
"@SwiftSyntax//:SwiftParserDiagnostics_opt",
"@SwiftSyntax//:SwiftSyntaxBuilder_opt",
"@SwiftSyntax//:SwiftSyntax_opt",
"@com_github_jpsim_sourcekitten//:SourceKittenFramework",
":SourceKittenFramework.wrapper",
"@sourcekitten_com_github_jpsim_yams//:Yams",
"@swiftlint_com_github_scottrhoyt_swifty_text_table//:SwiftyTextTable",
] + select({
Expand All @@ -99,6 +100,16 @@ swift_library(
}),
)

swift_library(
name = "SourceKittenFramework.wrapper",
srcs = ["Source/SourceKittenFrameworkWrapper/Empty.swift"],
module_name = "SourceKittenFrameworkWrapper",
visibility = ["//visibility:public"],
deps = [
"@com_github_jpsim_sourcekitten//:SourceKittenFramework",
],
)

swift_library(
name = "SwiftLintBuiltInRules",
package_name = "SwiftLint",
Expand Down
Empty file.

0 comments on commit d22a719

Please sign in to comment.