-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- clean up dependencies - adding golangci lint - updating maintaining teams - allow release/** to build newer versions of consul-template going forward
- Loading branch information
1 parent
f00bbcf
commit 24e8f2e
Showing
5 changed files
with
74 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- gofmt | ||
- govet | ||
- unconvert | ||
- staticcheck | ||
- ineffassign | ||
- unparam | ||
- forbidigo | ||
- gomodguard | ||
- depguard | ||
- gosimple | ||
|
||
issues: | ||
# Disable the default exclude list so that all excludes are explicitly | ||
# defined in this file. | ||
exclude-use-default: false | ||
|
||
linters-settings: | ||
govet: | ||
check-shadowing: true | ||
enable-all: true | ||
disable: | ||
- fieldalignment | ||
- nilness | ||
- shadow | ||
- unusedwrite | ||
gofmt: | ||
simplify: true | ||
forbidigo: | ||
# Forbid the following identifiers (list of regexp). | ||
forbid: | ||
- '\bioutil\b(# Use io and os packages instead of ioutil)?' | ||
- '\brequire\.New\b(# Use package-level functions with explicit TestingT)?' | ||
- '\bassert\.New\b(# Use package-level functions with explicit TestingT)?' | ||
# Exclude godoc examples from forbidigo checks. | ||
# Default: true | ||
exclude_godoc_examples: false | ||
gomodguard: | ||
blocked: | ||
# List of blocked modules. | ||
modules: | ||
# Blocked module. | ||
- github.com/hashicorp/go-msgpack: | ||
recommendations: | ||
- github.com/hashicorp/consul-net-rpc/go-msgpack | ||
- github.com/golang/protobuf: | ||
recommendations: | ||
- google.golang.org/protobuf | ||
depguard: | ||
list-type: denylist | ||
include-go-root: true | ||
|
||
run: | ||
timeout: 10m | ||
concurrency: 4 | ||
skip-dirs-use-default: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters