From 42d283237b7d8d30922484dff5287cbfbd6d6a64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Poulhi=C3=A8s?= Date: Tue, 11 Jul 2023 07:10:41 +0200 Subject: [PATCH] propcheck: skip local properties MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #5251 Signed-off-by: Marc Poulhiès --- etc/scripts/util/propscheck.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/scripts/util/propscheck.py b/etc/scripts/util/propscheck.py index 258c4bb24..7e9b242f3 100644 --- a/etc/scripts/util/propscheck.py +++ b/etc/scripts/util/propscheck.py @@ -29,7 +29,7 @@ import re import argparse parser = argparse.ArgumentParser(description='Checks for incorrect/suspicious properties.') -parser.add_argument ('--check-suspicious-in-local-prop', required=False, action="store_true") +parser.add_argument ('--check-suspicious-in-default-prop', required=False, action="store_true") parser.add_argument ('--config-dir', required=False, default="./etc/config") @@ -133,7 +133,7 @@ def process_file(file: str, args): duplicated_compiler_references = set() duplicated_group_references = set() - suspicious_check = args.check_suspicious_in_local_prop or not (file.endswith('.defaults.properties') or file.endswith('.local.properties')) + suspicious_check = args.check_suspicious_in_default_prop or not (file.endswith('.defaults.properties')) suspicious_path = set() seen_typo_compilers = set() @@ -258,6 +258,7 @@ def process_folder(folder: str, args): return [(f, process_file(join(folder, f), args)) for f in listdir(folder) if isfile(join(folder, f)) + and not f.endswith('.local.properties') and f.endswith('.properties')] def problems_found(file_result):