From b441885d3009f4f2bff3e68386d7a350863ce5ca Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 16 Sep 2023 17:56:46 +0900 Subject: [PATCH] tidy: Update tools/tidy.sh and add SPDX-License-Identifier --- tools/.tidy-check-license-headers | 2 +- tools/codegen/src/main.rs | 2 ++ tools/tidy.sh | 17 ++++++++++------- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/tools/.tidy-check-license-headers b/tools/.tidy-check-license-headers index 3c5d9a0c..46c7417c 100644 --- a/tools/.tidy-check-license-headers +++ b/tools/.tidy-check-license-headers @@ -1 +1 @@ -git ls-files '*.sh' # TODO: check more files +git ls-files diff --git a/tools/codegen/src/main.rs b/tools/codegen/src/main.rs index 17366d99..0d1cc1f5 100644 --- a/tools/codegen/src/main.rs +++ b/tools/codegen/src/main.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + use anyhow::{bail, Context as _, Result}; use fs_err as fs; use serde::{Deserialize, Serialize}; diff --git a/tools/tidy.sh b/tools/tidy.sh index 4442e1dc..3e33ddca 100755 --- a/tools/tidy.sh +++ b/tools/tidy.sh @@ -250,19 +250,22 @@ if [[ -f tools/.tidy-check-license-headers ]]; then info "checking license headers (experimental)" failed_files='' for p in $(eval $(