Skip to content

Commit 4e9b111

Browse files
committed
refactor: 'addlicense' command adds the '-ignore' option
1 parent 57605aa commit 4e9b111

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

.github/workflows/go.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# Copyright (c) 2025 voidint <voidint@126.com>. All rights reserved.
2-
#
3-
# This source code is licensed under the license found in the
4-
# LICENSE file in the root directory of this source tree.
5-
#
6-
# Unless required by applicable law or agreed to in writing, software
7-
# distributed under the License is distributed on an "AS IS" BASIS,
8-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
# See the License for the specific language governing permissions and
10-
# limitations under the License.
11-
12-
# This workflow will build a golang project
13-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
14-
151
name: Go
162

173
on:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ lint:
1313
gosec -quiet ./...
1414

1515
addlicense:
16-
addlicense -v -c "voidint <voidint@126.com>" -l mit .
16+
addlicense -v -c "voidint <voidint@126.com>" -l mit -ignore 'vendor/**' -ignore '.github/**' -ignore '.vscode/**' -ignore '.idea/**' .
1717

1818
install-tools:
1919
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

0 commit comments

Comments
 (0)