Standardize and auto add license headers to properties files (#12231)

This commit is contained in:
John Bampton 2026-01-08 20:26:40 +10:00 committed by GitHub
parent e47d7bc6ff
commit fd1c67f473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 69 additions and 40 deletions

View File

@ -62,6 +62,16 @@ repos:
- .github/workflows/license-templates/LICENSE.txt - .github/workflows/license-templates/LICENSE.txt
- --fuzzy-match-generates-todo - --fuzzy-match-generates-todo
exclude: ^(CHANGES|ISSUE_TEMPLATE|PULL_REQUEST_TEMPLATE)\.md$|^ui/docs/(full|smoke)-test-plan\.template\.md$ exclude: ^(CHANGES|ISSUE_TEMPLATE|PULL_REQUEST_TEMPLATE)\.md$|^ui/docs/(full|smoke)-test-plan\.template\.md$
- id: insert-license
name: add license for all properties files
description: automatically adds a licence header to all properties files that don't have a license header
files: \.properties$
args:
- --comment-style
- '|#|'
- --license-filepath
- .github/workflows/license-templates/LICENSE.txt
- --fuzzy-match-generates-todo
- id: insert-license - id: insert-license
name: add license for all Shell files name: add license for all Shell files
description: automatically adds a licence header to all Shell files that don't have a license header description: automatically adds a licence header to all Shell files that don't have a license header

View File

@ -1,19 +1,19 @@
#Licensed to the Apache Software Foundation (ASF) under one # Licensed to the Apache Software Foundation (ASF) under one
#or more contributor license agreements. See the NOTICE file # or more contributor license agreements. See the NOTICE file
#distributed with this work for additional information # distributed with this work for additional information
#regarding copyright ownership. The ASF licenses this file # regarding copyright ownership. The ASF licenses this file
#to you under the Apache License, Version 2.0 (the # to you under the Apache License, Version 2.0 (the
#"License"); you may not use this file except in compliance # "License"); you may not use this file except in compliance
#with the License. You may obtain a copy of the License at # with the License. You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
#Unless required by applicable law or agreed to in writing, # Unless required by applicable law or agreed to in writing,
#software distributed under the License is distributed on an # software distributed under the License is distributed on an
#"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#KIND, either express or implied. See the License for the # KIND, either express or implied. See the License for the
#specific language governing permissions and limitations # specific language governing permissions and limitations
#under the License. # under the License.
# Required metadata # Required metadata
sonar.projectKey=cloud-plugin-hypervisor-ovm3 sonar.projectKey=cloud-plugin-hypervisor-ovm3

View File

@ -1,19 +1,19 @@
#Licensed to the Apache Software Foundation (ASF) under one # Licensed to the Apache Software Foundation (ASF) under one
#or more contributor license agreements. See the NOTICE file # or more contributor license agreements. See the NOTICE file
#distributed with this work for additional information # distributed with this work for additional information
#regarding copyright ownership. The ASF licenses this file # regarding copyright ownership. The ASF licenses this file
#to you under the Apache License, Version 2.0 (the # to you under the Apache License, Version 2.0 (the
#"License"); you may not use this file except in compliance # "License"); you may not use this file except in compliance
#with the License. You may obtain a copy of the License at # with the License. You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
#Unless required by applicable law or agreed to in writing, # Unless required by applicable law or agreed to in writing,
#software distributed under the License is distributed on an # software distributed under the License is distributed on an
#"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#KIND, either express or implied. See the License for the # KIND, either express or implied. See the License for the
#specific language governing permissions and limitations # specific language governing permissions and limitations
#under the License. # under the License.
# Root logger option # Root logger option
log4j.rootLogger=DEBUG, stdout log4j.rootLogger=DEBUG, stdout

View File

@ -1,17 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one
# contributor license agreements. See the NOTICE file distributed with # or more contributor license agreements. See the NOTICE file
# this work for additional information regarding copyright ownership. # distributed with this work for additional information
# The ASF licenses this file to You under the Apache License, Version 2.0 # regarding copyright ownership. The ASF licenses this file
# (the "License"); you may not use this file except in compliance with # to you under the Apache License, Version 2.0 (the
# the License. You may obtain a copy of the License at # "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 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing,
# distributed under the License is distributed on an "AS IS" BASIS, # software distributed under the License is distributed on an
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# See the License for the specific language governing permissions and # KIND, either express or implied. See the License for the
# limitations under the License. # specific language governing permissions and limitations
# under the License.
# Define the root logger with appender file # Define the root logger with appender file
#log = /var/log/log4j #log = /var/log/log4j

View File

@ -1,2 +1,19 @@
# 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.
paths.script=../../scripts/storage/secondary/ paths.script=../../scripts/storage/secondary/
paths.pid=. paths.pid=.