Skip to content

Commit

Permalink
update license linter (networkservicemesh#2063)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Tingajkin <[email protected]>
  • Loading branch information
denis-tingaikin authored and haiodo committed Jan 21, 2020
1 parent df6e4fb commit 2319230
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- run:
name: license lint
command: |
go get github.com/denis-tingajkin/[email protected].0
go get github.com/denis-tingajkin/[email protected].1
go-header
environment:
GO111MODULE: "on"
Expand Down
2 changes: 1 addition & 1 deletion .go-header.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ rules:
- ".*[.]pb"
custom-patterns:
- name: NSM COPYRIGHT HOLDERS
pattern: "Copyright (c) {YEAR} {COPYRIGHT HOLDER}."
pattern: "Copyright (c) {YEAR} {COPYRIGHT HOLDER}"
separator: "\n//\n// "
4 changes: 4 additions & 0 deletions .license/license.md → .license/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ This folder contains the copyright templates for source files of NSM project.

Below is an example of valid copyright header for `.go` files:
```
// Copyright (c) 2020 Doc.ai and/or its affiliates.
//
// Copyright (c) 2020 Cisco and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
Expand All @@ -22,6 +24,8 @@ Below is an example of valid copyright header for `.go` files:
Note you can use your company name instead of `Cisco and/or its affiliates`.
Also, source code files can have multi copyright holders, for example:
```
// Copyright (c) 2020 Doc.ai and/or its affiliates.
//
// Copyright (c) 2020 Cisco and/or its affiliates.
//
// Copyright (c) 2020 Red Hat Inc. and/or its affiliates.
Expand Down
4 changes: 2 additions & 2 deletions .license/boilerplate.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Cisco and/or its affiliates.
// Copyright (c) 2020 Doc.ai and/or its affiliates.
//
// Copyright (c) 2020 Red Hat Inc. and/or its affiliates.
// Copyright (c) 2020 Cisco and/or its affiliates.
//
// Copyright (c) 2020 VMware, Inc.
//
Expand Down

0 comments on commit 2319230

Please sign in to comment.