We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4afef78 commit a04885cCopy full SHA for a04885c
wpiformat/wpiformat/lint.py
@@ -53,12 +53,11 @@ def run_batch(config_file, names):
53
basename = os.path.basename(pattern)
54
header_exts.append(basename[basename.rfind(".") + 1 :].rstrip("$"))
55
56
- sys.argv = [
57
- "cpplint.py",
58
- "--filter=-" + ",-".join(exclusion_filters),
59
- "--headers=" + ",".join(header_exts) if header_exts else "",
60
- "--quiet",
61
- ] + names
+ args = ["cpplint.py", "--filter=-" + ",-".join(exclusion_filters)]
+ if header_exts:
+ args.append("--headers=" + ",".join(header_exts))
+ args.append("--quiet")
+ sys.argv = args + names
62
63
# Run cpplint.py
64
try:
0 commit comments