mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
Standardize and auto add license headers for SQL files with pre-commit (#12071)
This commit is contained in:
parent
ac3b18095a
commit
86ae1fee7f
@ -62,6 +62,15 @@ 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 SQL files
|
||||||
|
files: \.sql$
|
||||||
|
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:
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
-- 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 compliances
|
-- "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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user