Skip to content

Commit db07bec

Browse files
zyv4ykrubenv
authored andcommitted
test fixed
1 parent c849b7f commit db07bec

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.golangci.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ linters-settings:
22
gocritic:
33
disabled-checks:
44
- ifElseChain
5+
56
goimports:
67
local-prefixes: github.com/rubenv/sql-migrate
8+
79
govet:
810
enable-all: true
911
disable:
1012
- fieldalignment
13+
1114
depguard:
1215
rules:
1316
main:
@@ -21,15 +24,19 @@ linters-settings:
2124
- github.com/mitchellh/cli
2225
- github.com/olekukonko/tablewriter
2326
- github.com/rubenv/sql-migrate
27+
- gopkg.in/check.v1
28+
- gopkg.in/yaml.v2
29+
2430
exhaustive:
2531
default-signifies-exhaustive: true
32+
2633
nolintlint:
2734
allow-unused: false
28-
allow-leading-space: false
2935
allow-no-explanation:
3036
- depguard
3137
require-explanation: true
3238
require-specific: true
39+
3340
revive:
3441
enable-all-rules: false
3542
rules:
@@ -50,7 +57,7 @@ linters-settings:
5057
- name: errorf
5158
- name: exported
5259
- name: identical-branches
53-
- name: imports-blacklist
60+
- name: imports-blocklist
5461
- name: increment-decrement
5562
- name: indent-error-flow
5663
- name: modifies-parameter
@@ -74,9 +81,11 @@ linters-settings:
7481
- name: unused-receiver
7582
- name: unnecessary-stmt
7683
- name: unused-parameter
84+
7785
run:
7886
tests: true
7987
timeout: 1m
88+
8089
linters:
8190
disable-all: true
8291
enable:
@@ -99,9 +108,10 @@ linters:
99108
- errorlint
100109
- gosimple
101110
- unparam
111+
102112
issues:
103113
exclude:
104-
- 'declaration of "err" shadows declaration at' # Allow shadowing of `err` because it's so common
114+
- 'declaration of "err" shadows declaration at'
105115
- 'error-strings: error strings should not be capitalized or end with punctuation or a newline'
106116
max-same-issues: 10000
107117
max-issues-per-linter: 10000

0 commit comments

Comments
 (0)