Skip to content

Commit 04c2fdf

Browse files
committed
[pre-commit] Add license header hook for XML files (closes #1994)
1 parent 9f0bcc4 commit 04c2fdf

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
1817
---
1918
# https://pre-commit.com/#installation
2019
default_stages: [pre-commit, pre-push]
@@ -70,6 +69,15 @@ repos:
7069
- --license-filepath
7170
- .github/workflows/license-templates/LICENSE.txt
7271
- --fuzzy-match-generates-todo
72+
- id: insert-license
73+
name: add license for all XML files
74+
files: \.xml$
75+
args:
76+
- --comment-style
77+
- '<!--| ~| -->'
78+
- --license-filepath
79+
- .github/workflows/license-templates/LICENSE.txt
80+
- --fuzzy-match-generates-todo
7381
- id: insert-license
7482
name: add license for all Markdown files
7583
files: \.md$

0 commit comments

Comments
 (0)