Skip to content

Commit dc6af49

Browse files
committed
Add more liniting and fix linting errors
1 parent e12c242 commit dc6af49

8 files changed

Lines changed: 102 additions & 47 deletions

File tree

.github/dependabot.yml

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
1+
---
12
version: 2
23
updates:
3-
- package-ecosystem: docker
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
time: '04:00'
8-
timezone: Europe/Copenhagen
9-
open-pull-requests-limit: 10
10-
assignees:
11-
- arnested
12-
- package-ecosystem: github-actions
13-
directory: "/"
14-
schedule:
15-
interval: daily
16-
time: '04:00'
17-
timezone: Europe/Copenhagen
18-
open-pull-requests-limit: 10
19-
assignees:
20-
- arnested
21-
- package-ecosystem: gomod
22-
directory: "/"
23-
schedule:
24-
interval: daily
25-
time: '04:00'
26-
timezone: Europe/Copenhagen
27-
open-pull-requests-limit: 10
28-
assignees:
29-
- arnested
4+
- package-ecosystem: docker
5+
directory: "/"
6+
schedule:
7+
interval: daily
8+
time: '04:00'
9+
timezone: Europe/Copenhagen
10+
open-pull-requests-limit: 10
11+
assignees:
12+
- arnested
13+
- package-ecosystem: github-actions
14+
directory: "/"
15+
schedule:
16+
interval: daily
17+
time: '04:00'
18+
timezone: Europe/Copenhagen
19+
open-pull-requests-limit: 10
20+
assignees:
21+
- arnested
22+
- package-ecosystem: gomod
23+
directory: "/"
24+
schedule:
25+
interval: daily
26+
time: '04:00'
27+
timezone: Europe/Copenhagen
28+
open-pull-requests-limit: 10
29+
assignees:
30+
- arnested

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: golangci-lint
23
on: pull_request
34
permissions:

.github/workflows/lint.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Lint
3+
on:
4+
- pull_request
5+
- push
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
actionlint:
13+
runs-on: ubuntu-24.04
14+
steps:
15+
- uses: actions/checkout@v6
16+
- uses: reviewdog/action-actionlint@v1
17+
markdownlint:
18+
name: markdown
19+
runs-on: ubuntu-24.04
20+
steps:
21+
- uses: actions/checkout@v6
22+
- name: Run markdownlint
23+
uses: DavidAnson/markdownlint-cli2-action@v22
24+
yamllint:
25+
name: Yamllint
26+
runs-on: ubuntu-24.04
27+
steps:
28+
- uses: actions/checkout@v6
29+
- name: Run Yamllint
30+
uses: frenck/action-yamllint@v1.5.0
31+
with:
32+
strict: true

.markdownlint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
MD013:
3+
code_blocks: false

.yamllint

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
extends: default
3+
4+
ignore-from-file:
5+
- .gitignore
6+
7+
rules:
8+
indentation:
9+
spaces: 2
10+
line-length: disable
11+
truthy:
12+
check-keys: false
13+
braces:
14+
min-spaces-inside: 1
15+
max-spaces-inside: 1
16+
min-spaces-inside-empty: 0
17+
max-spaces-inside-empty: 0

CODE_OF_CONDUCT.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Our Pledge
44

55
In the interest of fostering an open and welcoming environment, we as
6-
contributors and maintainers pledge to making participation in our project and
6+
contributors and maintainers pledge to make participation in our project and
77
our community a harassment-free experience for everyone, regardless of age, body
88
size, disability, ethnicity, sex characteristics, gender identity and expression,
99
level of experience, education, socio-economic status, nationality, personal
@@ -23,13 +23,13 @@ include:
2323
Examples of unacceptable behavior by participants include:
2424

2525
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
26+
advances
2727
* Trolling, insulting/derogatory comments, and personal or political attacks
2828
* Public or private harassment
2929
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
30+
address, without explicit permission
3131
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
32+
professional setting
3333

3434
## Our Responsibilities
3535

@@ -45,17 +45,17 @@ threatening, offensive, or harmful.
4545

4646
## Scope
4747

48-
This Code of Conduct applies both within project spaces and in public spaces
49-
when an individual is representing the project or its community. Examples of
50-
representing a project or community include using an official project e-mail
51-
address, posting via an official social media account, or acting as an appointed
52-
representative at an online or offline event. Representation of a project may be
53-
further defined and clarified by project maintainers.
48+
This Code of Conduct applies within all project spaces, and it also applies when
49+
an individual is representing the project or its community in public spaces.
50+
Examples of representing a project or community include using an official
51+
project e-mail address, posting via an official social media account, or acting
52+
as an appointed representative at an online or offline event. Representation of
53+
a project may be further defined and clarified by project maintainers.
5454

5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at arne@arnested.dk. All
58+
reported by contacting the project team at <arne@arnested.dk>. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.
@@ -67,10 +67,11 @@ members of the project's leadership.
6767

6868
## Attribution
6969

70-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71+
version 1.4, available at
72+
<https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
7273

7374
[homepage]: https://www.contributor-covenant.org
7475

7576
For answers to common questions about this code of conduct, see
76-
https://www.contributor-covenant.org/faq
77+
<https://www.contributor-covenant.org/faq>

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Developer Certificate of Origin
22

3-
```
3+
```text
44
Version 1.1
55
66
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
@@ -36,5 +36,5 @@ By making a contribution to this project, I certify that:
3636
are public and that a record of the contribution (including all
3737
personal information I submit with it, including my sign-off) is
3838
maintained indefinitely and may be redistributed consistent with
39-
this project or the open source license(s) involved.
39+
  this project or the open source license(s) involved.
4040
```

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
# healthy
2+
13
[![Docker image size](https://badgen.net/docker/size/arnested/healthy)](https://hub.docker.com/r/arnested/healthy)
24
[![CLA assistant](https://cla-assistant.io/readme/badge/arnested/go-healthy)](https://cla-assistant.io/arnested/go-healthy)
35
[![GoDoc](https://godoc.org/arnested.dk/go/healthy?status.svg)](https://pkg.go.dev/arnested.dk/go/healthy)
46

5-
# healthy
6-
--
77
Command healthy waits for Docker container(s) to become healthy.
88

99
The command takes one or more container ID's as argument(s) and will not exit
@@ -18,9 +18,9 @@ return code 0.
1818

1919
flags:
2020
-fail-on-unhealthy
21-
fail on unhealthy
21+
fail on unhealthy
2222
-timeout duration
23-
timeout after waiting (default 1h0m0s)
23+
timeout after waiting (default 1h0m0s)
2424

2525
In a docker-compose setup you could wait for all services to be healthy by
2626
running:

0 commit comments

Comments
 (0)