Skip to content

Commit 2888d27

Browse files
committed
basic vpc crud
1 parent e01a768 commit 2888d27

48 files changed

Lines changed: 7992 additions & 197 deletions

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ jobs:
3131
- name: Install dependencies
3232
run: make deps
3333

34-
- name: Run checks (lint, vet, fmt-check, test)
35-
run: make check
34+
- name: golangci-lint
35+
uses: golangci/golangci-lint-action@v8
36+
with:
37+
version: v2.6.0
38+
39+
- name: Run checks (vet, fmt-check, test)
40+
run: make vet fmt-check test
3641

3742
# Note: Validation tests with real cloud providers run in separate workflows
3843
# See .github/workflows/validation-*.yml for provider-specific validation tests

.golangci.bck.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
run:
2+
build-tags:
3+
- tasks
4+
linters-settings:
5+
goimports:
6+
local-prefixes: github.com/brevdev/dev-plane
7+
revive:
8+
# min-confidence: 0.8
9+
rules:
10+
- name: blank-imports
11+
- name: context-as-argument
12+
- name: context-as-argument
13+
- name: context-keys-type
14+
- name: dot-imports
15+
- name: error-return
16+
- name: error-strings
17+
- name: error-naming
18+
- name: if-return
19+
- name: increment-decrement
20+
- name: var-naming
21+
- name: var-declaration
22+
# - name: package-comments
23+
- name: range
24+
- name: receiver-naming
25+
- name: time-naming
26+
- name: unexported-return
27+
- name: errorf
28+
- name: empty-block
29+
- name: superfluous-else
30+
- name: unused-parameter
31+
- name: unreachable-code
32+
- name: redefines-builtin-id
33+
gocyclo:
34+
min-complexity: 15
35+
misspell:
36+
locale: US
37+
nolintlint:
38+
# allow-leading-space: false # require machine-readable nolint directives (with no leading space)
39+
allow-unused: false # report any unused nolint directives
40+
require-explanation: true # require an explanation for nolint directives
41+
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
42+
funlen:
43+
lines: 100
44+
errcheck:
45+
exclude-functions:
46+
- (*encoding/json.Encoder).Encode
47+
wrapcheck:
48+
ignoreSigs:
49+
- .WrapAndTrace
50+
- .Errorf
51+
- .Wrap
52+
- .New
53+
- .ValidateStruct
54+
- .Permanent
55+
- .Decode
56+
stylecheck:
57+
checks: ["all", "-ST1020", "-ST1000", "-ST1021"]
58+
59+
linters:
60+
# please, do not use `enable-all`: it's deprecated and will be removed soon.
61+
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
62+
disable-all: true
63+
enable:
64+
- errcheck
65+
# - gosimple # don't like
66+
- govet
67+
- ineffassign
68+
# - staticcheck # broken in collections pkg?
69+
- typecheck
70+
- bodyclose
71+
- unused
72+
# - depguard
73+
- dupl
74+
- copyloopvar
75+
- forcetypeassert
76+
- funlen
77+
# - gci # don't like
78+
- gocognit
79+
- goconst
80+
- gocritic
81+
- gocyclo
82+
# - godot # don't like
83+
- gofumpt
84+
- revive
85+
# - gomnd # don't like
86+
- goprintffuncname
87+
- gosec
88+
# - ifshort # don't like
89+
- misspell
90+
- noctx
91+
- nolintlint
92+
- rowserrcheck # broken with generics
93+
- sqlclosecheck # broken with generics
94+
- stylecheck
95+
# - thelper
96+
- tparallel
97+
- unconvert
98+
- unparam
99+
- whitespace
100+
# - errorlint
101+
# - goerr113
102+
# - wrapcheck
103+
issues:
104+
# enable issues excluded by default
105+
exclude-use-default: false
106+
exclude:
107+
- composites
108+
exclude-dirs:
109+
- internal/lambdalabs/gen

.golangci.yml

Lines changed: 88 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,110 @@
1+
version: "2"
12
run:
23
build-tags:
34
- tasks
4-
linters-settings:
5-
goimports:
6-
local-prefixes: github.com/brevdev/dev-plane
7-
revive:
8-
min-confidence: 0.8
9-
rules:
10-
- name: blank-imports
11-
- name: context-as-argument
12-
- name: context-as-argument
13-
- name: context-keys-type
14-
- name: dot-imports
15-
- name: error-return
16-
- name: error-strings
17-
- name: error-naming
18-
- name: if-return
19-
- name: increment-decrement
20-
- name: var-naming
21-
- name: var-declaration
22-
# - name: package-comments
23-
- name: range
24-
- name: receiver-naming
25-
- name: time-naming
26-
- name: unexported-return
27-
- name: errorf
28-
- name: empty-block
29-
- name: superfluous-else
30-
- name: unused-parameter
31-
- name: unreachable-code
32-
- name: redefines-builtin-id
33-
gocyclo:
34-
min-complexity: 15
35-
misspell:
36-
locale: US
37-
nolintlint:
38-
allow-leading-space: false # require machine-readable nolint directives (with no leading space)
39-
allow-unused: false # report any unused nolint directives
40-
require-explanation: true # require an explanation for nolint directives
41-
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
42-
funlen:
43-
lines: 100
44-
errcheck:
45-
exclude-functions:
46-
- (*encoding/json.Encoder).Encode
47-
wrapcheck:
48-
ignoreSigs:
49-
- .WrapAndTrace
50-
- .Errorf
51-
- .Wrap
52-
- .New
53-
- .ValidateStruct
54-
- .Permanent
55-
- .Decode
56-
stylecheck:
57-
checks: ["all", "-ST1020", "-ST1000", "-ST1021"]
58-
595
linters:
60-
# please, do not use `enable-all`: it's deprecated and will be removed soon.
61-
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
62-
disable-all: true
6+
default: none
637
enable:
64-
- errcheck
65-
# - gosimple # don't like
66-
- govet
67-
- ineffassign
68-
# - staticcheck # broken in collections pkg?
69-
- typecheck
708
- bodyclose
71-
- unused
72-
# - depguard
73-
- dupl
749
- copyloopvar
10+
- dupl
11+
- errcheck
7512
- forcetypeassert
7613
- funlen
77-
# - gci # don't like
7814
- gocognit
7915
- goconst
8016
- gocritic
8117
- gocyclo
82-
# - godot # don't like
83-
- gofumpt
84-
- revive
85-
# - gomnd # don't like
8618
- goprintffuncname
8719
- gosec
88-
# - ifshort # don't like
20+
- govet
21+
- ineffassign
8922
- misspell
9023
- noctx
9124
- nolintlint
92-
- rowserrcheck # broken with generics
93-
- sqlclosecheck # broken with generics
94-
- stylecheck
95-
# - thelper
25+
- revive
26+
- rowserrcheck
27+
- sqlclosecheck
28+
- staticcheck
9629
- tparallel
9730
- unconvert
9831
- unparam
32+
- unused
9933
- whitespace
100-
# - errorlint
101-
# - goerr113
102-
# - wrapcheck
103-
issues:
104-
# enable issues excluded by default
105-
exclude-use-default: false
106-
exclude:
107-
- composites
108-
exclude-dirs:
109-
- internal/lambdalabs/gen
34+
settings:
35+
errcheck:
36+
exclude-functions:
37+
- (*encoding/json.Encoder).Encode
38+
funlen:
39+
lines: 100
40+
gocyclo:
41+
min-complexity: 15
42+
misspell:
43+
locale: US
44+
nolintlint:
45+
require-explanation: true
46+
require-specific: false
47+
allow-unused: false
48+
revive:
49+
rules:
50+
- name: blank-imports
51+
- name: context-as-argument
52+
- name: context-as-argument
53+
- name: context-keys-type
54+
- name: dot-imports
55+
- name: error-return
56+
- name: error-strings
57+
- name: error-naming
58+
- name: if-return
59+
- name: increment-decrement
60+
- name: var-naming
61+
- name: var-declaration
62+
- name: range
63+
- name: receiver-naming
64+
- name: time-naming
65+
- name: unexported-return
66+
- name: errorf
67+
- name: empty-block
68+
- name: superfluous-else
69+
- name: unused-parameter
70+
- name: unreachable-code
71+
- name: redefines-builtin-id
72+
staticcheck:
73+
checks:
74+
- all
75+
- -ST1000
76+
- -ST1020
77+
- -ST1021
78+
wrapcheck:
79+
ignore-sigs:
80+
- .WrapAndTrace
81+
- .Errorf
82+
- .Wrap
83+
- .New
84+
- .ValidateStruct
85+
- .Permanent
86+
- .Decode
87+
exclusions:
88+
generated: lax
89+
rules:
90+
- path: (.+)\.go$
91+
text: composites
92+
paths:
93+
- internal/lambdalabs/gen
94+
- third_party$
95+
- builtin$
96+
- examples$
97+
formatters:
98+
enable:
99+
- gofumpt
100+
settings:
101+
goimports:
102+
local-prefixes:
103+
- github.com/brevdev/dev-plane
104+
exclusions:
105+
generated: lax
106+
paths:
107+
- internal/lambdalabs/gen
108+
- third_party$
109+
- builtin$
110+
- examples$

0 commit comments

Comments
 (0)