Skip to content

Commit 78bfccb

Browse files
committed
Cleanup
1 parent f32bc34 commit 78bfccb

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

example/MODULE.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ register_toolchains("@ruby_toolchains//:all")
181181
# Download cppcheck premium tar files for different platforms
182182
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
183183

184+
# Even though cppcheckpremium is downloaded, it behaves like the free version, if we do not
185+
# provide a cppcheck.cfg file (see cppcheck.BUILD file) and license key.
184186
http_archive(
185187
name = "cppcheck_linux",
186188
build_file = "//tools/lint:cppcheck.BUILD",

example/test/lint_test.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ EOF
2929
# PMD
3030
echo <<"EOF" | assert_output --partial
3131
* file: src/Foo.java
32-
src: Foo.java:9:9
32+
src: Foo.jav fa:9:9
3333
rule: FinalizeOverloaded
3434
msg: Finalize methods should not be overloaded
3535
code: protected void finalize(int a) {}

example/tools/lint/cppcheck.BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# BUILD file for cppcheck premium external repository
1+
# BUILD file for cppcheck external repository
22

33
package(default_visibility = ["//visibility:public"])
44

example/tools/lint/cppcheck_wrapper.sh.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SCRIPT_DIR="$(dirname "$0")"
66
RUNFILES_DIR="$SCRIPT_DIR/cppcheck.runfiles"
77

88
# Find the cppcheck binary in the runfiles directory
9-
# It will be under one of the cppcheck_premium_* directories
9+
# It will be under one of the cppcheck_* directories
1010
# Note: cppcheck may be a symlink, so don't use -type f
1111
CPPCHECK_BINARY=$(find "$RUNFILES_DIR" -name "cppcheck" \( -type f -o -type l \) 2>/dev/null | head -n1)
1212

lint/cppcheck.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def lint_cppcheck_aspect(binary, verbose = False):
158158
```bash
159159
#!/bin/bash
160160
161-
~/.local/bin/cppcheckpremium/cppcheck \
161+
~/.local/bin/cppcheck/cppcheck \
162162
--check-level=exhaustive \
163163
--enable=warning,style,performance,portability,information \
164164
"$@"

0 commit comments

Comments
 (0)