summaryrefslogtreecommitdiff
path: root/lint
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-10-31 13:06:09 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-10-31 13:56:00 +0100
commit197a35703d1ced53f71d6137b9133d2558d888d4 (patch)
tree2319e20e9a5c5b2f12f42001bd64e870b46320b8 /lint
parentee06e3ec3b3deb0a9bf43165ba477e54f4ccbcc5 (diff)
downloadrules-cc-197a35703d1ced53f71d6137b9133d2558d888d4.tar.gz
["lint", "targets"]: support TMPDIR
Diffstat (limited to 'lint')
-rw-r--r--lint/RULES2
-rwxr-xr-xlint/call_lint2
2 files changed, 4 insertions, 0 deletions
diff --git a/lint/RULES b/lint/RULES
index 04ad230..e1000d9 100644
--- a/lint/RULES
+++ b/lint/RULES
@@ -67,6 +67,8 @@
, " - at key \"direct deps artifact names\" a list of all input"
, " artifacts that come from the target itself or are runfiles of a"
, " direct dependency."
+ , "- TMPDIR pointing to a directory location that can be used to"
+ , " create additional temporary files."
, "It is supposed to indicate by the exit code whether the file to lint"
, "complies with the given linting policy, with 0 meaning"
, "compliant."
diff --git a/lint/call_lint b/lint/call_lint
index ca7e4ef..fd2a244 100755
--- a/lint/call_lint
+++ b/lint/call_lint
@@ -24,6 +24,8 @@ export OUT="$(pwd)/out"
mkdir -p config
export CONFIG="$(pwd)/config"
export META="$(pwd)/meta.json"
+mkdir scratch
+export TMPDIR=$(realpath scratch)
cd work