Skip to content

Commit e8d7807

Browse files
author
golangci
authored
Merge pull request #1 from golangci/feature/initial-improvements
Feature/initial improvements
2 parents 0e4998b + 85ee97f commit e8d7807

File tree

995 files changed

+323803
-983
lines changed

Some content is hidden

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

995 files changed

+323803
-983
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/vendor/
1+
/*.txt
2+
/*.pprof

Diff for: .golangci.example.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
run:
2+
args:
3+
- ./...
4+
verbose: true
5+
concurrency: 4
6+
deadline: 1m
7+
issues-exit-code: 1
8+
tests: true
9+
build-tags:
10+
- mytag
11+
12+
output:
13+
format: colored-line-number
14+
print-issued-lines: true
15+
print-linter-name: true
16+
print-welcome: true
17+
18+
linters-settings:
19+
errcheck:
20+
check-type-assertions: false
21+
check-blank: false
22+
govet:
23+
check-shadowing: true
24+
golint:
25+
min-confidence: 0.8
26+
gofmt:
27+
simplify: true
28+
gocyclo:
29+
min-complexity: 10
30+
maligned:
31+
suggest-new: true
32+
dupl:
33+
threshold: 50
34+
goconst:
35+
min-len: 3
36+
min-occurrences: 3
37+
38+
linters:
39+
enable:
40+
- megacheck
41+
- vet
42+
enable-all: true
43+
disable:
44+
maligned
45+
disable-all: false
46+
presets:
47+
- bugs
48+
- unused
49+
50+
issues:
51+
exclude:
52+
- abcdef
53+
exclude-use-default: true
54+
max-per-linter: 0
55+
max-same: 0
56+
new: false
57+
new-from-rev: ""
58+
new-from-patch: ""

Diff for: .golangci.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
run:
2+
verbose: true
3+
deadline: 30s
4+
tests: true
5+
6+
linters-settings:
7+
errcheck:
8+
check-type-assertions: true
9+
check-blank: true
10+
govet:
11+
check-shadowing: true
12+
golint:
13+
min-confidence: 0
14+
gocyclo:
15+
min-complexity: 10
16+
maligned:
17+
suggest-new: true
18+
dupl:
19+
threshold: 100
20+
goconst:
21+
min-len: 2
22+
min-occurrences: 2
23+
24+
linters:
25+
enable-all: true
26+
disable:
27+
- maligned
28+
29+
issues:
30+
exclude:
31+
- should have a package comment

0 commit comments

Comments
 (0)