diff options
author | Maxim Yurchuk <maxim-yurchuk@ydb.tech> | 2024-11-20 17:37:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-20 17:37:57 +0000 |
commit | f76323e9b295c15751e51e3443aa47a36bee8023 (patch) | |
tree | 4113c8cad473a33e0f746966e0cf087252fa1d7a /tools/cpp_style_checker/__main__.py | |
parent | 753ecb8d410a4cb459c26f3a0082fb2d1724fe63 (diff) | |
parent | a7b9a6afea2a9d7a7bfac4c5eb4c1a8e60adb9e6 (diff) | |
download | ydb-f76323e9b295c15751e51e3443aa47a36bee8023.tar.gz |
Merge pull request #11788 from ydb-platform/mergelibs-241120-1113
Library import 241120-1113
Diffstat (limited to 'tools/cpp_style_checker/__main__.py')
-rw-r--r-- | tools/cpp_style_checker/__main__.py | 4 |
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: |