commit | 7f255778814c02851724b2c88743f94bdd1f7121 | [log] [tgz] |
---|---|---|
author | Scott Lee <ddoman@chromium.org> | Fri Oct 04 22:19:43 2024 +0000 |
committer | Pdfium LUCI CQ <pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 04 22:19:43 2024 +0000 |
tree | 6c33fee72c8e748a3824657d24cd0b0c1a63b800 | |
parent | 573d1da8ced74f57792ea3756b4758b35e723700 [diff] |
Add checks for non-inclusive words in PRESUBMIT.py:ChecksCommon() pdfium runs the checks with Tricium via pdfium_analysis. - https://source.chromium.org/chromium/infra/infra_superproject/+/main:build/recipes/recipes/pdfium_analysis.py;l=60 However, Tricium is going to be deprecated by EOY 2024. This CL adds the equivalent checks to the PRESUBMIT.py so that the Tricium analyzer can be removed from pdfium_analysis. - https://source.chromium.org/chromium/chromium/tools/depot_tools/+/main:presubmit_canned_checks.py;l=2518-2536;drc=0bc7c4832e4f2d453e4826c9a2e1197e11bd6ec7 Change-Id: I7d60c8b68dd54effd452c44735e471f2638b1c36 Bug: 369701326 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/124870 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 58cc45e..ed1e99f 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py
@@ -537,6 +537,8 @@ project_name='PDFium', source_file_filter=lambda x: input_api.FilterSourceFile( x, files_to_check=files_to_check))) + results.extend( + input_api.canned_checks.CheckInclusiveLanguage(input_api, output_api)) return results
diff --git a/infra/inclusive_language_presubmit_exempt_dirs.txt b/infra/inclusive_language_presubmit_exempt_dirs.txt new file mode 100644 index 0000000..cb9e423 --- /dev/null +++ b/infra/inclusive_language_presubmit_exempt_dirs.txt
@@ -0,0 +1,4 @@ +# List of directories exempt from the inclusive language checks in PRESUBMIT.py. +# +# Note: Subdirectories are NOT included in the exemption. Only files directly +# within these directories will be skipped.