From 0ef900047ed15140b1452d77367550b17a559e79 Mon Sep 17 00:00:00 2001 From: mlevesquedion Date: Wed, 21 Feb 2024 15:22:18 -0800 Subject: [PATCH] Ignore all files that shouldn't have licenses (#2031) Unblocks #2029 I ran the license checker with `find` as input instead of `git diff` to find all the relevant files and exempted the files that don't already have licenses. --- build_tools/github_actions/lint_check_license.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build_tools/github_actions/lint_check_license.sh b/build_tools/github_actions/lint_check_license.sh index 1eaa68e3d9c..e6f740c1c96 100755 --- a/build_tools/github_actions/lint_check_license.sh +++ b/build_tools/github_actions/lint_check_license.sh @@ -45,10 +45,19 @@ $(printf "%s\n" "${CHANGED_FILES[@]}")" echo SKIPPED_SUFFIXES=( - MODULE.bazel.lock + .bazelversion + .clang-format + .gitignore + .markdownlint.yaml + .md .mlir .mlir.bc - .md + .png + .svg + LICENSE + MODULE.bazel.lock + WORKSPACE.bazel + llvm_version.txt ) UNLICENSED_FILES=()