Standardize and auto add license headers to all Vue files with pre-commit (#12081)

This commit is contained in:
John Bampton 2025-12-11 01:21:41 +10:00 committed by GitHub
parent 3c6484792d
commit cfe96026dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 49 additions and 41 deletions

View File

@ -81,6 +81,15 @@ repos:
- --license-filepath
- .github/workflows/license-templates/LICENSE.txt
- --fuzzy-match-generates-todo
- id: insert-license
name: add license for all Vue files
files: \.vue$
args:
- --comment-style
- '|//|'
- --license-filepath
- .github/workflows/license-templates/LICENSE.txt
- --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

View File

@ -1,4 +1,3 @@
// 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