This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 5aa2c5b7e0 Check CMakeLists.txt files in RAT (#9955)
5aa2c5b7e0 is described below

commit 5aa2c5b7e0606e0cea55d4626c292bd3107051b0
Author: JosiahWI <[email protected]>
AuthorDate: Wed Jul 5 15:03:13 2023 -0500

    Check CMakeLists.txt files in RAT (#9955)
    
    This uses a negative lookbehind to exclude CMakeLists.txt from the
    sweeping .txt exclusion in RAT.
---
 ci/rat-regex.txt                   |  2 +-
 plugins/esi/CMakeLists.txt         | 17 +++++++++++++++++
 plugins/esi/common/CMakeLists.txt  | 17 +++++++++++++++++
 plugins/esi/fetcher/CMakeLists.txt | 17 +++++++++++++++++
 plugins/esi/lib/CMakeLists.txt     | 17 +++++++++++++++++
 plugins/esi/test/CMakeLists.txt    | 17 +++++++++++++++++
 6 files changed, 86 insertions(+), 1 deletion(-)

diff --git a/ci/rat-regex.txt b/ci/rat-regex.txt
index 240a25a5bc..a8405fef37 100644
--- a/ci/rat-regex.txt
+++ b/ci/rat-regex.txt
@@ -9,7 +9,7 @@
 ^libtool$
 ^blib$
 ^stamp-h1$
-.*\.txt$
+.*(?<!CMakeLists)\.txt$
 .*\.cfg$
 .*\.in$
 .*\.dot$
diff --git a/plugins/esi/CMakeLists.txt b/plugins/esi/CMakeLists.txt
index e2510a451e..63bffa3cf4 100644
--- a/plugins/esi/CMakeLists.txt
+++ b/plugins/esi/CMakeLists.txt
@@ -1,3 +1,20 @@
+#######################
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license
+#  agreements.  See the NOTICE file distributed with this work for additional 
information regarding
+#  copyright ownership.  The ASF licenses this file to you under the Apache 
License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with the 
License.  You may obtain
+#  a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software 
distributed under the License
+#  is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
KIND, either express
+#  or implied. See the License for the specific language governing permissions 
and limitations under
+#  the License.
+#
+#######################
+
 add_subdirectory(common)
 add_subdirectory(fetcher)
 add_subdirectory(lib)
diff --git a/plugins/esi/common/CMakeLists.txt 
b/plugins/esi/common/CMakeLists.txt
index 1debd6fb84..1e75a85b61 100644
--- a/plugins/esi/common/CMakeLists.txt
+++ b/plugins/esi/common/CMakeLists.txt
@@ -1,3 +1,20 @@
+#######################
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license
+#  agreements.  See the NOTICE file distributed with this work for additional 
information regarding
+#  copyright ownership.  The ASF licenses this file to you under the Apache 
License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with the 
License.  You may obtain
+#  a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software 
distributed under the License
+#  is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
KIND, either express
+#  or implied. See the License for the specific language governing permissions 
and limitations under
+#  the License.
+#
+#######################
+
 add_library(esi-common DocNode.cc gzip.cc Utils.cc)
 target_link_libraries(esi-common PRIVATE ZLIB::ZLIB)
 target_include_directories(esi-common PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
diff --git a/plugins/esi/fetcher/CMakeLists.txt 
b/plugins/esi/fetcher/CMakeLists.txt
index 2c540810cf..b65c681537 100644
--- a/plugins/esi/fetcher/CMakeLists.txt
+++ b/plugins/esi/fetcher/CMakeLists.txt
@@ -1,3 +1,20 @@
+#######################
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license
+#  agreements.  See the NOTICE file distributed with this work for additional 
information regarding
+#  copyright ownership.  The ASF licenses this file to you under the Apache 
License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with the 
License.  You may obtain
+#  a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software 
distributed under the License
+#  is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
KIND, either express
+#  or implied. See the License for the specific language governing permissions 
and limitations under
+#  the License.
+#
+#######################
+
 add_library(fetcher HttpDataFetcherImpl.cc)
 target_link_libraries(fetcher PUBLIC esi-common)
 target_include_directories(fetcher PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
diff --git a/plugins/esi/lib/CMakeLists.txt b/plugins/esi/lib/CMakeLists.txt
index b2ab79ed85..29ac6be1ce 100644
--- a/plugins/esi/lib/CMakeLists.txt
+++ b/plugins/esi/lib/CMakeLists.txt
@@ -1,3 +1,20 @@
+#######################
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license
+#  agreements.  See the NOTICE file distributed with this work for additional 
information regarding
+#  copyright ownership.  The ASF licenses this file to you under the Apache 
License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with the 
License.  You may obtain
+#  a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software 
distributed under the License
+#  is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
KIND, either express
+#  or implied. See the License for the specific language governing permissions 
and limitations under
+#  the License.
+#
+#######################
+
 add_library(esicore
         EsiGunzip.cc
         EsiGzip.cc
diff --git a/plugins/esi/test/CMakeLists.txt b/plugins/esi/test/CMakeLists.txt
index c8078e2fe5..cf75e36a6f 100644
--- a/plugins/esi/test/CMakeLists.txt
+++ b/plugins/esi/test/CMakeLists.txt
@@ -1,3 +1,20 @@
+#######################
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license
+#  agreements.  See the NOTICE file distributed with this work for additional 
information regarding
+#  copyright ownership.  The ASF licenses this file to you under the Apache 
License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with the 
License.  You may obtain
+#  a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software 
distributed under the License
+#  is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
KIND, either express
+#  or implied. See the License for the specific language governing permissions 
and limitations under
+#  the License.
+#
+#######################
+
 add_library(esitest
     print_funcs.cc
     HandlerMap.cc

Reply via email to