From d959753a49c2aa9d6b057266cece99c88759c08c Mon Sep 17 00:00:00 2001 From: Ziv Nevo <79099626+zivnevo@users.noreply.github.com> Date: Mon, 15 Apr 2024 16:07:54 +0300 Subject: [PATCH] Linter to ensure copyright header (#228) Signed-off-by: ZIV NEVO --- .golangci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index ba9de32..8b43e82 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -18,6 +18,14 @@ linters-settings: - style gocyclo: min-complexity: 15 + goheader: + values: + const: + COMPANY: IBM Inc. + template: |- + Copyright 2023- {{ COMPANY }} All Rights Reserved. + + SPDX-License-Identifier: Apache-2.0 goimports: local-prefixes: github.com/np-guard gomnd: @@ -80,6 +88,7 @@ linters: - gocritic - gocyclo - gofmt + - goheader - goimports - gomnd - gomoddirectives