Skip to content

Commit c2ced0f

Browse files
committed
dev: replace golangcitest:config by golangcitest:config_path
1 parent 9da04f5 commit c2ced0f

Some content is hidden

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

57 files changed

+118
-35
lines changed

test/linters_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func TestGoimportsLocal(t *testing.T) {
8282

8383
args = append(args, rc.args...)
8484

85-
cfg, err := yaml.Marshal(rc.config)
85+
cfg, err := os.ReadFile(rc.configPath)
8686
require.NoError(t, err)
8787

8888
testshared.NewLintRunner(t).RunWithYamlConfig(string(cfg), args...).

test/testdata/configs/cyclop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
linters-settings:
2+
cyclop:
3+
max-complexity: 15

test/testdata/configs/dupl.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
linters-settings:
2+
dupl:
3+
threshold: 20
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
linters-settings:
2+
errcheck:
3+
check-blank: true
4+
exclude: testdata/errcheck/exclude.txt
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
linters-settings:
2+
errcheck:
3+
check-blank: true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
linters-settings:
2+
errcheck:
3+
check-type-assertions: true
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
linters-settings:
2+
forbidigo:
3+
exclude-godoc-examples: false
4+

test/testdata/configs/funlen.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
linters-settings:
2+
funlen:
3+
lines: 20
4+
statements: 10

test/testdata/configs/gocognit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
linters-settings:
2+
gocognit:
3+
min-complexity: 2
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
linters-settings:
2+
goconst:
3+
ignore-calls: false

0 commit comments

Comments
 (0)