Skip to content

Commit d9a3b30

Browse files
authored
[type: feat] add file license check (#88)
1 parent bbacc8f commit d9a3b30

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.github/workflows/license.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: License Checking
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
license:
13+
name: License Checking
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@master
17+
- name: Check License Lines
18+
uses: kt3k/[email protected]

.licenserc.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"**/*.go" :[
3+
"/*",
4+
"* Copyright (c) 2022, AcmeStack",
5+
"* All rights reserved.",
6+
"*",
7+
"* Licensed under the Apache License, Version 2.0 (the \"License\");",
8+
"* you may not use this file except in compliance with the License.",
9+
"* You may obtain a copy of the License at",
10+
"*",
11+
"* http://www.apache.org/licenses/LICENSE-2.0",
12+
"*",
13+
"* Unless required by applicable law or agreed to in writing, software",
14+
"* distributed under the License is distributed on an \"AS IS\" BASIS,",
15+
"* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
16+
"* See the License for the specific language governing permissions and",
17+
"* limitations under the License.",
18+
"*/"
19+
20+
]
21+
}

internal/core/exchanger/etcd/etcd_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* distributed under the License is distributed on an "AS IS" BASIS,
1313
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
* See the License for the specific language governing permissions and
15-
* limit
15+
* limitations under the License.
1616
*/
1717

1818
package etcd

0 commit comments

Comments
 (0)