|
1 | | -run: |
2 | | - timeout: 10m |
3 | | - |
| 1 | +version: "2" |
4 | 2 | linters: |
5 | | - enable-all: false |
6 | 3 | enable: |
7 | 4 | - durationcheck |
8 | | - - errcheck |
9 | | - - gci |
10 | | - - gofumpt |
11 | 5 | - goheader |
12 | 6 | - goprintffuncname |
13 | 7 | - gosec |
14 | | - - gosimple |
15 | | - - govet |
16 | 8 | - importas |
17 | | - - ineffassign |
18 | 9 | - lll |
19 | 10 | - misspell |
20 | 11 | - nakedret |
21 | 12 | - nolintlint |
| 13 | + - paralleltest |
22 | 14 | - revive |
23 | | - - staticcheck |
24 | | - - tenv |
25 | 15 | - unconvert |
26 | | - - unused |
27 | | - - paralleltest |
28 | 16 | - wastedassign |
29 | 17 | - whitespace |
30 | | -issues: |
31 | | - exclude-rules: |
32 | | - # Exclude some linters from running on tests files. |
33 | | - - path: pkg/pf/tests |
34 | | - linters: |
35 | | - - lll |
36 | | - - paralleltest |
37 | | - - path: pkg/tests |
38 | | - linters: |
39 | | - - lll |
40 | | - - path: pkg/pf/tests |
41 | | - linters: |
42 | | - - lll |
43 | | - - paralleltest |
44 | | - exclude: |
45 | | - - "unused-parameter: parameter" |
46 | | - - "redefines-builtin-id:" |
47 | | - - "exhaustive" |
48 | | - exclude-dirs: |
49 | | - - pkg/tf2pulumi/internal/addrs |
50 | | - - pkg/tf2pulumi/internal/config |
51 | | - - pkg/tf2pulumi/internal/configs |
52 | | - - pkg/vendored |
53 | | - # TODO(https://github.com/pulumi/pulumi-terraform-bridge/issues/2474) |
54 | | -linters-settings: |
55 | | - gci: |
56 | | - sections: |
57 | | - - standard |
58 | | - - default |
59 | | - - prefix(github.com/pulumi/pulumi-terraform-bridge) |
60 | | - skip-generated: true |
61 | | - paralleltest: |
62 | | - ignore-missing-subtests: true |
63 | | - nakedret: |
64 | | - # Make an issue if func has more lines of code than this setting, and it has naked returns. |
65 | | - # Default: 30 |
66 | | - max-func-lines: 60 |
67 | | - govet: |
68 | | - enable: |
69 | | - - nilness |
70 | | - # Reject comparisons of reflect.Value with DeepEqual or '=='. |
71 | | - - reflectvaluecompare |
72 | | - # Reject sort.Slice calls with a non-slice argument. |
73 | | - - sortslice |
74 | | - # Detect write to struct/arrays by-value that aren't read again. |
75 | | - - unusedwrite |
76 | | - importas: |
77 | | - alias: |
78 | | - - pkg: github.com/pulumi/pulumi/sdk/v3/proto/go |
79 | | - alias: pulumirpc |
| 18 | + settings: |
| 19 | + govet: |
| 20 | + enable: |
| 21 | + - nilness |
| 22 | + - reflectvaluecompare |
| 23 | + - sortslice |
| 24 | + - unusedwrite |
| 25 | + importas: |
| 26 | + alias: |
| 27 | + - pkg: github.com/pulumi/pulumi/sdk/v3/proto/go |
| 28 | + alias: pulumirpc |
| 29 | + - pkg: github.com/pulumi/pulumi-terraform-bridge/v3/pkg/pf/internal/providerbuilder |
| 30 | + alias: pb |
| 31 | + - pkg: github.com/hashicorp/terraform-plugin-framework/resource/schema |
| 32 | + alias: rschema |
| 33 | + - pkg: github.com/hashicorp/terraform-plugin-framework/provider/schema |
| 34 | + alias: prschema |
| 35 | + - pkg: github.com/hashicorp/terraform-plugin-framework/datasource/schema |
| 36 | + alias: dschema |
| 37 | + - pkg: github.com/pulumi/pulumi/pkg/v3/codegen/schema |
| 38 | + alias: pschema |
| 39 | + nakedret: |
| 40 | + max-func-lines: 60 |
| 41 | + paralleltest: |
| 42 | + ignore-missing-subtests: true |
| 43 | + staticcheck: |
| 44 | + checks: |
| 45 | + - 'SA1019' |
| 46 | + - '-ST1005' # error strings should not be capitalized |
| 47 | + exclusions: |
| 48 | + generated: lax |
| 49 | + presets: |
| 50 | + - comments |
| 51 | + - common-false-positives |
| 52 | + - legacy |
| 53 | + - std-error-handling |
| 54 | + rules: |
| 55 | + - linters: |
| 56 | + - lll |
| 57 | + - paralleltest |
| 58 | + path: pkg/pf/tests |
| 59 | + - linters: |
| 60 | + - lll |
| 61 | + path: pkg/tests |
| 62 | + - linters: |
| 63 | + - lll |
| 64 | + - paralleltest |
| 65 | + path: pkg/pf/tests |
| 66 | + - path: (.+)\.go$ |
| 67 | + text: 'unused-parameter: parameter' |
| 68 | + - path: (.+)\.go$ |
| 69 | + text: 'redefines-builtin-id:' |
| 70 | + - path: (.+)\.go$ |
| 71 | + text: exhaustive |
| 72 | + paths: |
| 73 | + - pkg/tf2pulumi/internal/addrs |
| 74 | + - pkg/tf2pulumi/internal/config |
| 75 | + - pkg/tf2pulumi/internal/configs |
| 76 | + - pkg/vendored |
| 77 | + - third_party$ |
| 78 | + - builtin$ |
| 79 | + - examples$ |
| 80 | +formatters: |
| 81 | + enable: |
| 82 | + - gci |
| 83 | + - gofumpt |
| 84 | + settings: |
| 85 | + gci: |
| 86 | + sections: |
| 87 | + - standard |
| 88 | + - default |
| 89 | + - prefix(github.com/pulumi/pulumi-terraform-bridge) |
| 90 | + exclusions: |
| 91 | + generated: lax |
| 92 | + paths: |
| 93 | + - pkg/tf2pulumi/internal/addrs |
| 94 | + - pkg/tf2pulumi/internal/config |
| 95 | + - pkg/tf2pulumi/internal/configs |
| 96 | + - pkg/vendored |
| 97 | + - third_party$ |
| 98 | + - builtin$ |
| 99 | + - examples$ |
0 commit comments