Skip to content

Commit 5ca926c

Browse files
chore(repo): pre-commit fixes (#1431)
* chore: add golint to pre-commit Signed-off-by: Oliver Bähler <[email protected]> * chore: move legacy docs Signed-off-by: Oliver Bähler <[email protected]> * chore: ran pre-commit Signed-off-by: Oliver Bähler <[email protected]> * chore: fix goreleaser regexps Signed-off-by: Oliver Bähler <[email protected]> --------- Signed-off-by: Oliver Bähler <[email protected]>
1 parent d15ef08 commit 5ca926c

File tree

125 files changed

+99
-41555
lines changed

Some content is hidden

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

125 files changed

+99
-41555
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ assignees: ''
99

1010
<!--
1111
Thanks for taking time reporting a Capsule bug!
12-
12+
1313
-->
1414

1515
# Bug description

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ How would the new interaction with Capsule look like? E.g.
3232
Feel free to add a diagram if that helps explain things.
3333

3434
# Expected behavior
35-
A clear and concise description of what you expect to happen.
35+
A clear and concise description of what you expect to happen.

.github/configs/lintconf.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ ignore:
66
rules:
77
truthy:
88
level: warning
9+
allowed-values:
10+
- "true"
11+
- "false"
12+
- "on"
13+
- "off"
14+
915
check-keys: false
1016
braces:
1117
min-spaces-inside: 0

.goreleaser.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ release:
6363
6464
[Review the Major Changes section first before upgrading to a new version](https://artifacthub.io/packages/helm/projectcapsule/capsule/{{ .Version }}#major-changes)
6565
66-
**Kubernetes compatibility**
67-
6866
> [!IMPORTANT]
67+
> **Kubernetes compatibility**
68+
>
6969
> Note that the Capsule project offers support only for the latest minor version of Kubernetes.
7070
> Backwards compatibility with older versions of Kubernetes and OpenShift is [offered by vendors](https://projectcapsule.dev/support/).
7171
>
@@ -93,26 +93,27 @@ changelog:
9393
- Merge branch
9494
groups:
9595
# https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional
96-
- title: '🛠 Dependency updates'
97-
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
98-
order: 300
99-
- title: '✨ New Features'
100-
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
101-
order: 100
102-
- title: '🐛 Bug fixes'
103-
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
104-
order: 200
105-
- title: '📖 Documentation updates'
106-
regexp: ^.*?docs(\([[:word:]]+\))??!?:.+$
107-
order: 400
108-
- title: '🛡️ Security updates'
109-
regexp: ^.*?(sec)(\([[:word:]]+\))??!?:.+$
110-
order: 500
111-
- title: '🚀 Build process updates'
112-
regexp: ^.*?(build|ci)(\([[:word:]]+\))??!?:.+$
113-
order: 600
114-
- title: '📦 Other work'
115-
order: 9999
96+
- title: '🛠 Dependency updates'
97+
regexp: '^fix\(deps\):|^feat\(deps\):'
98+
order: 300
99+
- title: '✨ New Features'
100+
regexp: '^feat(\([^)]*\))?:'
101+
order: 100
102+
- title: '🐛 Bug fixes'
103+
regexp: '^fix(\([^)]*\))?:'
104+
order: 200
105+
- title: '📖 Documentation updates'
106+
regexp: '^docs(\([^)]*\))?:'
107+
order: 400
108+
- title: '🛡️ Security updates'
109+
regexp: '^sec(\([^)]*\))?:'
110+
order: 500
111+
- title: '🚀 Build process updates'
112+
regexp: '^(build|ci)(\([^)]*\))?:'
113+
order: 600
114+
- title: '📦 Other work'
115+
regexp: '^chore(\([^)]*\))?:|^chore:'
116+
order: 9999
116117
sboms:
117118
- artifacts: archive
118119
signs:

.pre-commit-config.yaml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ repos:
99
rev: v5.0.0
1010
hooks:
1111
- id: check-executables-have-shebangs
12-
- id: check-yaml
1312
- id: double-quote-string-fixer
1413
- id: end-of-file-fixer
1514
- id: trailing-whitespace
@@ -35,24 +34,8 @@ repos:
3534
entry: make helm-lint
3635
language: system
3736
files: ^charts/
38-
# Currently too slow smw
39-
# - id: golangci-lint
40-
# name: Execute golangci-lint
41-
# entry: make golint
42-
# language: system
43-
# files: \.go$
44-
# - repo: https://github.com/tekwizely/pre-commit-golang
45-
# rev: v1.0.0-rc.1
46-
# hooks:
47-
# - id: go-vet
48-
# - id: go-vet-mod
49-
# - id: go-vet-pkg
50-
# - id: go-vet-repo-mod
51-
# - id: go-vet-repo-pkg
52-
# - id: go-revive
53-
# - id: go-revive-mod
54-
# - id: go-revive-repo-mod
55-
# - id: go-sec-mod
56-
# - id: go-sec-pkg
57-
# - id: go-sec-repo-mod
58-
# - id: go-sec-repo-pkg
37+
- id: golangci-lint
38+
name: Execute golangci-lint
39+
entry: make golint
40+
language: system
41+
files: \.go$

ADOPTERS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This is a list of companies that have adopted Capsule, feel free to open a Pull-Request to get yours listed.
44

5+
[See all on the website](https://projectcapsule.dev/adopters/)
6+
57
## Adopters list (alphabetically)
68

79
### [Bedag Informatik AG](https://www.bedag.ch/)

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ See the [Releases](https://github.com/projectcapsule/capsule/releases)
77

88
## Helm Chart
99

10-
For the helm chart, a dedicated changelog is created based on the chart's annotations ([See](./DEVELOPMENT.md#helm-changelog)).
10+
For the helm chart, a dedicated changelog is created based on the chart's annotations ([See](./DEVELOPMENT.md#helm-changelog)).

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Prereleases are marked as `-rc.x` (release candidate) and may refere to any type
4545

4646
The pull request title is checked according to the described [semantics](#semantics) (pull requests don't require a scope). However pull requests are currently not used to generate the changelog. Check if your pull requests body meets the following criteria:
4747

48-
- reference a previously opened issue: https://docs.github.com/en/github/writing-on-github/autolinked-references-and-urls#issues-and-pull-requests
48+
- reference a previously opened issue: https://docs.github.com/en/github/writing-on-github/autolinked-references-and-urls#issues-and-pull-requests
4949
- splitting changes into several and documented small commits
5050
- limit the git subject to 50 characters and write as the continuation of the
5151
sentence "If applied, this commit will ..."
@@ -104,7 +104,7 @@ To reorganise your commits, do the following (or use your way of doing it):
104104

105105

106106
1. Pull upstream changes
107-
107+
108108
```bash
109109
git remote add upstream [email protected]:projectcapsule/capsule.git
110110
git pull upstream main
@@ -186,4 +186,3 @@ The following types are allowed for commits and pull requests:
186186
* `fix`: bug fixes
187187
* `test`: test related changes
188188
* `sec`: security related changes
189-

DEPENDENCY.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Capsule maintainers must follow these guidelines when consuming third-party pack
2323

2424
When adding a new third-party package to Capsule, maintainers must follow these steps:
2525

26-
1. Evaluate the need for the package. Is it necessary for the functionality of Capsule?
27-
2. Research the package. Is it well-maintained? Does it have a good reputation?
28-
3. Choose a version of the package. Use the latest version whenever possible.
29-
4. Pin the package to the specific version in the Capsule codebase.
26+
1. Evaluate the need for the package. Is it necessary for the functionality of Capsule?
27+
2. Research the package. Is it well-maintained? Does it have a good reputation?
28+
3. Choose a version of the package. Use the latest version whenever possible.
29+
4. Pin the package to the specific version in the Capsule codebase.
3030
5. Update the Capsule documentation to reflect the new dependency.
3131

3232
## Archive/Deprecation

DEVELOPMENT.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ To achieve that, there are some necessary steps we need to walk through, which h
6060

6161
So the TL;DR answer is:
6262

63-
**Make sure a *KinD* cluster is running on your laptop, and then run `make dev-setup` to setup the dev environment.**. This is not done in the `make dev-setup` setup.
63+
**Make sure a *KinD* cluster is running on your laptop, and then run `make dev-setup` to setup the dev environment.**. This is not done in the `make dev-setup` setup.
6464

6565
```bash
6666
# If you haven't installed or run `make deploy` before, do it first
@@ -222,12 +222,12 @@ time="2023-10-23T13:45:08Z" level=info msg="Found Chart directories [charts/caps
222222
time="2023-10-23T13:45:08Z" level=info msg="Generating README Documentation for chart /helm-docs/charts/capsule"
223223
```
224224

225-
This will update the documentation for the chart in the `README.md` file.
225+
This will update the documentation for the chart in the `README.md` file.
226226

227-
### Helm Changelog
227+
### Helm Changelog
228228

229229
The `version` of the chart does not require a bump, since it's driven by our release process. The `appVersion` of the chart is the version of the Capsule project. This is the version that should be bumped when a new Capsule version is released. This will be done by the maintainers.
230230

231231
To create the proper changelog for the helm chart, all changes which affect the helm chart must be documented as chart annotation. See all the available [chart annotations](https://artifacthub.io/docs/topics/annotations/helm/).
232232

233-
This annotation can be provided using two different formats: using a plain list of strings with the description of the change or using a list of objects with some extra structured information (see example below). Please feel free to use the one that better suits your needs. The UI experience will be slightly different depending on the choice. When using the list of objects option the valid supported kinds are `added`, `changed`, `deprecated`, `removed`, `fixed` and `security`.
233+
This annotation can be provided using two different formats: using a plain list of strings with the description of the change or using a list of objects with some extra structured information (see example below). Please feel free to use the one that better suits your needs. The UI experience will be slightly different depending on the choice. When using the list of objects option the valid supported kinds are `added`, `changed`, `deprecated`, `removed`, `fixed` and `security`.

0 commit comments

Comments
 (0)