From 76498349f5652d1a6efa8e6898cc31e4260f49ad Mon Sep 17 00:00:00 2001 From: Nicko Guyer Date: Mon, 3 Jan 2022 15:44:06 -0500 Subject: [PATCH] Allow any comapny name in license header Signed-off-by: Nicko Guyer --- .golangci.yml | 59 +++++++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 28 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 4a56ed32f6..d967b40a09 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,8 +7,11 @@ linters-settings: disabled-checks: - regexpMust goheader: + values: + regexp: + COMPANY: .* template: |- - Copyright © {{ YEAR }} Kaleido, Inc. + Copyright © {{ YEAR }} {{ COMPANY }} SPDX-License-Identifier: Apache-2.0 @@ -26,30 +29,30 @@ linters-settings: linters: disable-all: false enable: - - bodyclose - - deadcode - - depguard - - dogsled - - errcheck - - goconst - - gocritic - - gocyclo - - gofmt - - goheader - - goimports - - goprintffuncname - - gosec - - gosimple - - govet - - ineffassign - - misspell - - nakedret - - revive - - staticcheck - - structcheck - - stylecheck - - typecheck - - unconvert - - unparam - - unused - - varcheck + - bodyclose + - deadcode + - depguard + - dogsled + - errcheck + - goconst + - gocritic + - gocyclo + - gofmt + - goheader + - goimports + - goprintffuncname + - gosec + - gosimple + - govet + - ineffassign + - misspell + - nakedret + - revive + - staticcheck + - structcheck + - stylecheck + - typecheck + - unconvert + - unparam + - unused + - varcheck