Skip to content

Commit 3df6bbb

Browse files
committed
add submodule
1 parent c691109 commit 3df6bbb

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "hack/common"]
2+
path = hack/common
3+
url = https://github.com/openmcp-project/build

.golangci.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
version: "2"
2+
run:
3+
allow-parallel-runners: true
4+
linters:
5+
default: none
6+
enable:
7+
- copyloopvar
8+
- dupl
9+
- errcheck
10+
- ginkgolinter
11+
- goconst
12+
- gocyclo
13+
- govet
14+
- ineffassign
15+
- misspell
16+
- nakedret
17+
- prealloc
18+
- revive
19+
- staticcheck
20+
- unconvert
21+
- unparam
22+
- unused
23+
settings:
24+
revive:
25+
rules:
26+
- name: comment-spacings
27+
exclusions:
28+
generated: lax
29+
presets:
30+
- comments
31+
- common-false-positives
32+
- legacy
33+
- std-error-handling
34+
paths:
35+
- zz_generated.*\.go$
36+
- tmp/.*
37+
- third_party$
38+
- builtin$
39+
- examples$
40+
formatters:
41+
enable:
42+
- gofmt
43+
- goimports
44+
exclusions:
45+
generated: lax
46+
paths:
47+
- third_party$
48+
- builtin$
49+
- examples$

Taskfile.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 3
2+
3+
vars:
4+
NESTED_MODULES: api
5+
API_DIRS: '{{.ROOT_DIR}}/api/v1alpha1/...'
6+
MANIFEST_OUT: '{{.ROOT_DIR}}/cmd/embedded/crds'
7+
CODE_DIRS: '{{.ROOT_DIR}}/cmd/... {{.ROOT_DIR}}/internal/... {{.ROOT_DIR}}/api/v1alpha1/...'
8+
COMPONENTS: 'metrics-operator'
9+
REPO_NAME: 'https://github.com/openmcp-project/metrics-operator'
10+
GENERATE_DOCS_INDEX: "false"
11+
12+
includes:
13+
shared:
14+
taskfile: hack/common/Taskfile_controller.yaml
15+
flatten: true

hack/common

Submodule common added at 2a47837

0 commit comments

Comments
 (0)