Skip to content

Commit baa8972

Browse files
committed
feat(ci): add licenserc.toml for license checking
1 parent cbc072a commit baa8972

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

licenserc.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright 2025 International Digital Economy Academy
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Configuration file for the "license header checker github action" [HawkEye](https://github.com/marketplace/actions/hawkeye-action)
16+
# For detailed configuration, see https://github.com/korandoru/hawkeye?tab=readme-ov-file#configurations
17+
18+
# https://github.com/korandoru/hawkeye/blob/badc166be6ed1a2f6c5cdff6422f8b1cf597dfe6/fmt/src/license/Apache-2.0.txt
19+
inlineHeader = '''
20+
Copyright {{ attrs.git_file_modified_year }} International Digital Economy Academy
21+
22+
Licensed under the Apache License, Version 2.0 (the "License");
23+
you may not use this file except in compliance with the License.
24+
You may obtain a copy of the License at
25+
26+
http://www.apache.org/licenses/LICENSE-2.0
27+
28+
Unless required by applicable law or agreed to in writing, software
29+
distributed under the License is distributed on an "AS IS" BASIS,
30+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31+
See the License for the specific language governing permissions and
32+
limitations under the License.
33+
'''
34+
35+
includes = ["*.mbt"]
36+
37+
[git]
38+
ignore = 'auto'
39+
attrs = 'enable'

0 commit comments

Comments
 (0)