mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
pre-commit: auto add license headers for all YAML files (#12069)
Fix and standardize one license header
This commit is contained in:
parent
4ed86a2627
commit
aa18188d30
@ -71,6 +71,16 @@ repos:
|
|||||||
- --license-filepath
|
- --license-filepath
|
||||||
- .github/workflows/license-templates/LICENSE.txt
|
- .github/workflows/license-templates/LICENSE.txt
|
||||||
- --fuzzy-match-generates-todo
|
- --fuzzy-match-generates-todo
|
||||||
|
- id: insert-license
|
||||||
|
name: add license for all YAML files
|
||||||
|
description: automatically adds a licence header to all YAML files that don't have a license header
|
||||||
|
files: \.ya?ml$
|
||||||
|
args:
|
||||||
|
- --comment-style
|
||||||
|
- '|#|'
|
||||||
|
- --license-filepath
|
||||||
|
- .github/workflows/license-templates/LICENSE.txt
|
||||||
|
- --fuzzy-match-generates-todo
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v6.0.0
|
rev: v6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
@ -5,9 +5,9 @@
|
|||||||
# 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user