Skip to content

Commit aa4ade4

Browse files
committed
chore: add initial code
Add initial code. Signed-off-by: Noel Georgi <git@frezbo.dev>
1 parent 52a6d48 commit aa4ade4

16 files changed

Lines changed: 780 additions & 6 deletions

.codecov.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2024-03-06T17:14:30Z by kres 5724eac-dirty.
4+
5+
codecov:
6+
require_ci_to_pass: false
7+
8+
coverage:
9+
status:
10+
project:
11+
default:
12+
target: 50%
13+
threshold: 0.5%
14+
base: auto
15+
if_ci_failed: success
16+
patch: off
17+
18+
comment: false

.conform.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2024-03-06T17:23:10Z by kres latest.
4+
5+
policies:
6+
- type: commit
7+
spec:
8+
dco: true
9+
gpg:
10+
required: true
11+
identity:
12+
gitHubOrganization: siderolabs
13+
spellcheck:
14+
locale: US
15+
maximumOfOneCommit: true
16+
header:
17+
length: 89
18+
imperative: true
19+
case: lower
20+
invalidLastCharacters: .
21+
body:
22+
required: true
23+
conventional:
24+
types:
25+
- chore
26+
- docs
27+
- perf
28+
- refactor
29+
- style
30+
- test
31+
- release
32+
scopes:
33+
- .*
34+
- type: license
35+
spec:
36+
root: .
37+
skipPaths:
38+
- .git/
39+
- testdata/
40+
includeSuffixes:
41+
- .go
42+
excludeSuffixes:
43+
- .pb.go
44+
- .pb.gw.go
45+
header: |
46+
// This Source Code Form is subject to the terms of the Mozilla Public
47+
// License, v. 2.0. If a copy of the MPL was not distributed with this
48+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

.dockerignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2024-03-06T17:23:10Z by kres latest.
4+
5+
*
6+
!copy
7+
!go.mod
8+
!go.sum
9+
!.golangci.yml
10+
!README.md
11+
!.markdownlint.json

.github/workflows/ci.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2024-03-06T17:14:30Z by kres 5724eac-dirty.
3+
# Generated on 2024-03-06T18:28:09Z by kres latest.
44

55
name: default
66
concurrency:
@@ -9,13 +9,13 @@ concurrency:
99
"on":
1010
push:
1111
branches:
12-
- ""
12+
- main
1313
- release-*
1414
tags:
1515
- v*
1616
pull_request:
1717
branches:
18-
- ""
18+
- main
1919
- release-*
2020
jobs:
2121
default:
@@ -59,9 +59,6 @@ jobs:
5959
- name: unit-tests-race
6060
run: |
6161
make unit-tests-race
62-
- name: coverage
63-
run: |
64-
make coverage
6562
- name: lint
6663
run: |
6764
make lint

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2024-03-06T17:14:30Z by kres 5724eac-dirty.
4+
5+
_out

.golangci.yml

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2024-03-06T17:14:30Z by kres 5724eac-dirty.
4+
5+
# options for analysis running
6+
run:
7+
timeout: 10m
8+
issues-exit-code: 1
9+
tests: true
10+
build-tags: []
11+
skip-dirs: []
12+
skip-dirs-use-default: true
13+
skip-files: []
14+
modules-download-mode: readonly
15+
16+
# output configuration options
17+
output:
18+
format: colored-line-number
19+
print-issued-lines: true
20+
print-linter-name: true
21+
uniq-by-line: true
22+
path-prefix: ""
23+
24+
# all available settings of specific linters
25+
linters-settings:
26+
dogsled:
27+
max-blank-identifiers: 2
28+
dupl:
29+
threshold: 150
30+
errcheck:
31+
check-type-assertions: true
32+
check-blank: true
33+
exhaustive:
34+
default-signifies-exhaustive: false
35+
funlen:
36+
lines: 60
37+
statements: 40
38+
gci:
39+
local-prefixes: github.com/siderolabs/go-copy/
40+
gocognit:
41+
min-complexity: 30
42+
ireturn:
43+
allow:
44+
- anon
45+
- error
46+
- empty
47+
- stdlib
48+
- github.com\/talos-systems\/kres\/internal\/dag.Node
49+
nestif:
50+
min-complexity: 5
51+
goconst:
52+
min-len: 3
53+
min-occurrences: 3
54+
gocritic:
55+
disabled-checks: []
56+
gocyclo:
57+
min-complexity: 20
58+
godot:
59+
check-all: false
60+
godox:
61+
keywords: # default keywords are TODO, BUG, and FIXME, these can be overwritten by this setting
62+
- NOTE
63+
- OPTIMIZE # marks code that should be optimized before merging
64+
- HACK # marks hack-arounds that should be removed before merging
65+
gofmt:
66+
simplify: true
67+
goimports:
68+
local-prefixes: github.com/siderolabs/go-copy/
69+
golint:
70+
min-confidence: 0.8
71+
gomnd:
72+
settings: {}
73+
gomodguard: {}
74+
govet:
75+
check-shadowing: true
76+
enable-all: true
77+
lll:
78+
line-length: 200
79+
tab-width: 4
80+
misspell:
81+
locale: US
82+
ignore-words: []
83+
nakedret:
84+
max-func-lines: 30
85+
prealloc:
86+
simple: true
87+
range-loops: true # Report preallocation suggestions on range loops, true by default
88+
for-loops: false # Report preallocation suggestions on for loops, false by default
89+
nolintlint:
90+
allow-unused: false
91+
allow-leading-space: false
92+
allow-no-explanation: []
93+
require-explanation: false
94+
require-specific: true
95+
rowserrcheck: {}
96+
testpackage: {}
97+
unparam:
98+
check-exported: false
99+
unused:
100+
check-exported: false
101+
whitespace:
102+
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
103+
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
104+
wsl:
105+
strict-append: true
106+
allow-assign-and-call: true
107+
allow-multiline-assign: true
108+
allow-cuddle-declarations: false
109+
allow-trailing-comment: false
110+
force-case-trailing-whitespace: 0
111+
force-err-cuddling: false
112+
allow-separated-leading-comment: false
113+
gofumpt:
114+
extra-rules: false
115+
cyclop:
116+
# the maximal code complexity to report
117+
max-complexity: 20
118+
# depguard:
119+
# Main:
120+
# deny:
121+
# - github.com/OpenPeeDeeP/depguard # this is just an example
122+
123+
linters:
124+
enable-all: true
125+
disable-all: false
126+
fast: false
127+
disable:
128+
- exhaustruct
129+
- exhaustivestruct
130+
- forbidigo
131+
- funlen
132+
- gas
133+
- gochecknoglobals
134+
- gochecknoinits
135+
- godox
136+
- goerr113
137+
- gomnd
138+
- gomoddirectives
139+
- ireturn
140+
- nestif
141+
- nonamedreturns
142+
- nosnakecase
143+
- paralleltest
144+
- tagliatelle
145+
- thelper
146+
- typecheck
147+
- varnamelen
148+
- wrapcheck
149+
- depguard # Disabled because starting with golangci-lint 1.53.0 it doesn't allow denylist alone anymore
150+
- tagalign
151+
- inamedparam
152+
- testifylint # complains about our assert recorder and has a number of false positives for assert.Greater(t, thing, 1)
153+
- protogetter # complains about us using Value field on typed spec, instead of GetValue which has a different signature
154+
- perfsprint # complains about us using fmt.Sprintf in non-performance critical code, updating just kres took too long
155+
# abandoned linters for which golangci shows the warning that the repo is archived by the owner
156+
- interfacer
157+
- maligned
158+
- golint
159+
- scopelint
160+
- varcheck
161+
- deadcode
162+
- structcheck
163+
- ifshort
164+
# disabled as it seems to be broken - goes into imported libraries and reports issues there
165+
- musttag
166+
167+
issues:
168+
exclude: []
169+
exclude-rules: []
170+
exclude-use-default: false
171+
exclude-case-sensitive: false
172+
max-issues-per-linter: 10
173+
max-same-issues: 3
174+
new: false
175+
176+
severity:
177+
default-severity: error
178+
case-sensitive: false

.kres.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
kind: service.CodeCov
3+
spec:
4+
# there are no tests in this project
5+
enabled: false

.license-header.go.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// This Source Code Form is subject to the terms of the Mozilla Public
2+
// License, v. 2.0. If a copy of the MPL was not distributed with this
3+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

.markdownlint.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2024-03-06T17:23:10Z by kres latest.
4+
5+
{
6+
"MD013": false,
7+
"MD033": false,
8+
"default": true
9+
}

0 commit comments

Comments
 (0)