Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 935d0ab

Browse files
authoredDec 16, 2020
Add local golint-ci lint config file (open-telemetry#146)
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
1 parent f79ff4d commit 935d0ab

File tree

79 files changed

+903
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+903
-107
lines changed
 

‎.github/workflows/continuous-integration.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ jobs:
3737
- name: Lint
3838
uses: golangci/golangci-lint-action@v2
3939
with:
40+
args: -v
4041
version: v1.29
41-
args: --enable=gosec,maligned,misspell
42-
only-new-issues: true
4342

4443
security:
4544
name: Security

‎.golangci.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
run:
2+
timeout: 5m
3+
4+
# all available settings of specific linters
5+
linters-settings:
6+
goheader:
7+
template-path: header.txt
8+
goimports:
9+
local-prefixes: github.com/open-telemetry/opentelemetry-operator
10+
maligned:
11+
suggest-new: true
12+
misspell:
13+
locale: US
14+
15+
linters:
16+
enable:
17+
- goheader
18+
- goimports
19+
- maligned
20+
- misspell
21+
- gosec
22+
- exhaustive
23+
- godot
24+
- unparam

0 commit comments

Comments
 (0)
Please sign in to comment.