Skip to content

Commit

Permalink
bump: add cpplint 2.0.0 (#3431)
Browse files Browse the repository at this point in the history
@bazel-io skip_check unstable_url

---------

Co-authored-by: Daisuke Nishimatsu <[email protected]>
  • Loading branch information
TendTo and wep21 authored Dec 16, 2024
1 parent b895437 commit 65e9dcd
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 1 deletion.
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": {}
}

0 comments on commit 65e9dcd

Please sign in to comment.