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 75e1495

Browse files
committedOct 13, 2019
Make incremental analysis
Cache linting results. Reanalyze only changed packages and packages tree depending on them. Fixes: #768
1 parent ca6effb commit 75e1495

Some content is hidden

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

58 files changed

+909
-419
lines changed
 

‎.golangci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ linters-settings:
4343
disabled-checks:
4444
- wrapperFunc
4545
- dupImport # https://github.com/go-critic/go-critic/issues/845
46+
- ifElseChain
47+
- octalLiteral
4648
funlen:
4749
lines: 100
4850
statements: 50
@@ -95,7 +97,17 @@ linters:
9597
run:
9698
skip-dirs:
9799
- test/testdata_etc
98-
- internal/(cache|renameio|robustio)
100+
skip-files:
101+
- internal/cache/.*_test.go
102+
103+
issues:
104+
exclude-rules:
105+
- path: internal/(cache|renameio)/
106+
linters:
107+
- lll
108+
- gochecknoinits
109+
- gocyclo
110+
- funlen
99111

100112
# golangci.com configuration
101113
# https://github.com/golangci/golangci/wiki/Configuration

‎README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,8 @@ linters-settings:
945945
disabled-checks:
946946
- wrapperFunc
947947
- dupImport # https://github.com/go-critic/go-critic/issues/845
948+
- ifElseChain
949+
- octalLiteral
948950
funlen:
949951
lines: 100
950952
statements: 50
@@ -997,7 +999,17 @@ linters:
997999
run:
9981000
skip-dirs:
9991001
- test/testdata_etc
1000-
- internal/(cache|renameio|robustio)
1002+
skip-files:
1003+
- internal/cache/.*_test.go
1004+
1005+
issues:
1006+
exclude-rules:
1007+
- path: internal/(cache|renameio)/
1008+
linters:
1009+
- lll
1010+
- gochecknoinits
1011+
- gocyclo
1012+
- funlen
10011013
10021014
# golangci.com configuration
10031015
# https://github.com/golangci/golangci/wiki/Configuration

0 commit comments

Comments
 (0)
Please sign in to comment.