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

bump: add cpplint 2.0.0 #3431

Merged
merged 2 commits into from
Dec 16, 2024
Merged
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
3 changes: 3 additions & 0 deletions modules/cpplint/2.0.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module(name = "cpplint", version = "2.0.0")

bazel_dep(name = "rules_python", version = "1.0.0")
16 changes: 16 additions & 0 deletions modules/cpplint/2.0.0/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,13 @@
+load("@rules_python//python:defs.bzl", "py_binary")
+
+package(default_visibility = ["//visibility:public"])
+
+licenses(["notice"])
+
+py_binary(
+ name = "cpplint",
+ srcs = ["cpplint.py"],
+ imports = ["cpplint"],
+ main = "cpplint.py",
+ visibility = ["//visibility:public"],
+)
6 changes: 6 additions & 0 deletions modules/cpplint/2.0.0/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,3 @@
+module(name = "cpplint", version = "2.0.0")
+
+bazel_dep(name = "rules_python", version = "1.0.0")
18 changes: 18 additions & 0 deletions modules/cpplint/2.0.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
bazel:
- 7.x
- 8.x
- rolling
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@cpplint'
10 changes: 10 additions & 0 deletions modules/cpplint/2.0.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/cpplint/cpplint/archive/refs/tags/2.0.0.tar.gz",
"integrity": "sha256-i7uhV5cHm4L3M6F7SPnaDAbTKM2vFL4S03oKV4LXvho=",
"strip_prefix": "cpplint-2.0.0",
"patches": {
"add_build_file.patch": "sha256-0+qq8dQ0JFaAya2k8dAAm0PMz0IpEHmlzPbodNphp0g=",
"module_dot_bazel.patch": "sha256-178ZpSc3UJDniDhr7jL6fVD7OqOXwfG3OXS69d1tzKM="
},
"patch_strip": 0
}
3 changes: 2 additions & 1 deletion modules/cpplint/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"github:cpplint/cpplint"
],
"versions": [
"1.6.1"
"1.6.1",
"2.0.0"
],
"yanked_versions": {}
}
Loading