Skip to content

Commit

Permalink
Linter to ensure copyright header (#228)
Browse files Browse the repository at this point in the history
Signed-off-by: ZIV NEVO <[email protected]>
  • Loading branch information
zivnevo authored Apr 15, 2024
1 parent 59802e3 commit d959753
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -80,6 +88,7 @@ linters:
- gocritic
- gocyclo
- gofmt
- goheader
- goimports
- gomnd
- gomoddirectives
Expand Down

0 comments on commit d959753

Please sign in to comment.