aboutsummaryrefslogtreecommitdiffstats
path: root/tools/cpp_style_checker/__main__.py
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2024-11-20 11:14:58 +0000
committerAlexander Smirnov <alex@ydb.tech>2024-11-20 11:14:58 +0000
commit31773f157bf8164364649b5f470f52dece0a4317 (patch)
tree33d0f7eef45303ab68cf08ab381ce5e5e36c5240 /tools/cpp_style_checker/__main__.py
parent2c7938962d8689e175574fc1e817c05049f27905 (diff)
parenteff600952d5dfe17942f38f510a8ac2b203bb3a5 (diff)
downloadydb-31773f157bf8164364649b5f470f52dece0a4317.tar.gz
Merge branch 'rightlib' into mergelibs-241120-1113
Diffstat (limited to 'tools/cpp_style_checker/__main__.py')
-rw-r--r--tools/cpp_style_checker/__main__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/cpp_style_checker/__main__.py b/tools/cpp_style_checker/__main__.py
index f318bb4417..abaa32ee19 100644
--- a/tools/cpp_style_checker/__main__.py
+++ b/tools/cpp_style_checker/__main__.py
@@ -1,9 +1,11 @@
import difflib
import json
+import os
import subprocess
import time
import yaml
+from build.plugins.lib.test_const import CLANG_FORMAT_RESOURCE
from library.python.testing.custom_linter_util import linter_params, reporter
from library.python.testing.style import rules
@@ -11,7 +13,7 @@ from library.python.testing.style import rules
def main():
params = linter_params.get_params()
- clang_format_binary = params.depends["contrib/libs/clang16/tools/clang-format/clang-format"]
+ clang_format_binary = os.path.join(params.global_resources[CLANG_FORMAT_RESOURCE], 'clang-format')
style_config_path = params.configs[0]
with open(style_config_path) as f: