Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected] #3247

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions modules/swiftlint/0.57.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module(
name = "swiftlint",
version = "0.57.1",
compatibility_level = 1,
repo_name = "SwiftLint",
)

bazel_dep(name = "apple_support", version = "1.16.0", repo_name = "build_bazel_apple_support")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_apple", version = "3.8.0", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "rules_swift", version = "2.1.1", repo_name = "build_bazel_rules_swift")
bazel_dep(name = "sourcekitten", version = "0.36.0", repo_name = "com_github_jpsim_sourcekitten")
bazel_dep(name = "swift-syntax", version = "600.0.0", repo_name = "SwiftSyntax")
bazel_dep(name = "swift_argument_parser", version = "1.3.1.1", repo_name = "sourcekitten_com_github_apple_swift_argument_parser")
bazel_dep(name = "yams", version = "5.1.3", repo_name = "sourcekitten_com_github_jpsim_yams")

swiftlint_repos = use_extension("//bazel:repos.bzl", "swiftlint_repos_bzlmod")
use_repo(
swiftlint_repos,
"com_github_johnsundell_collectionconcurrencykit",
"com_github_krzyzanowskim_cryptoswift",
"swiftlint_com_github_scottrhoyt_swifty_text_table",
)

extra_rules = use_extension("//bazel:extensions.bzl", "extra_rules")
use_repo(extra_rules, "swiftlint_extra_rules")

apple_cc_configure = use_extension("@build_bazel_apple_support//crosstool:setup.bzl", "apple_cc_configure_extension")
use_repo(apple_cc_configure, "local_config_apple_cc")

# Dev Dependencies

bazel_dep(name = "rules_xcodeproj", version = "2.6.1", dev_dependency = True)
26 changes: 26 additions & 0 deletions modules/swiftlint/0.57.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
tasks:
verify_targets_linux:
name: Verify Targets (Linux)
platform: ubuntu2004
bazel: 7.x
environment:
CC: "clang"
SWIFT_VERSION: "5.10"
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION"
PATH: "$PATH:$SWIFT_HOME/usr/bin"
shell_commands:
- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME"
- "mkdir $SWIFT_HOME"
- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2004/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu20.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME"
build_flags:
- "--action_env=PATH"
build_targets:
- '@swiftlint//:swiftlint'
verify_targets_macos:
name: Verify Targets (macOS)
platform: macos
bazel: 7.x
build_targets:
- '@swiftlint//:swiftlint'
build_flags:
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1"
5 changes: 5 additions & 0 deletions modules/swiftlint/0.57.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"url": "https://github.com/realm/SwiftLint/releases/download/0.57.1/bazel.tar.gz",
"integrity": "sha256-ePmo39PLS2tf8XOJLH8nPK4LZ/Ogob2GUf4QApaT9fQ=",
"strip_prefix": ""
}
8 changes: 7 additions & 1 deletion modules/swiftlint/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"email": "[email protected]",
"github": "jpsim",
"name": "JP Simard"
},
{
"email": "[email protected]",
"github": "SimplyDanny",
"name": "Danny Mösch"
}
],
"repository": [
Expand All @@ -21,7 +26,8 @@
"0.55.1",
"0.55.1.1",
"0.56.2",
"0.57.0"
"0.57.0",
"0.57.1"
],
"yanked_versions": {}
}
Loading