Skip to content

Commit 044ba55

Browse files
committed
Add lint target for running yamllint
Signed-off-by: Anders F Björklund <[email protected]>
1 parent 19e79df commit 044ba55

File tree

5 files changed

+22
-9
lines changed

5 files changed

+22
-9
lines changed

.yamllint

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
3+
extends: default
4+
5+
rules:
6+
indentation:
7+
indent-sequences: consistent
8+
truthy:
9+
allowed-values: ['true', 'false', 'on', 'off']
10+
comments-indentation: disable
11+
document-start: disable
12+
line-length: disable

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ uninstall:
6969
"$(DEST)/share/lima" "$(DEST)/share/doc/lima"
7070
# TODO: remove $(DEST)/bin/nerdctl only when it is a symlink to nerdctl.lima
7171

72+
.PHONY: lint
73+
lint:
74+
yamllint .
75+
7276
.PHONY: clean
7377
clean:
7478
rm -rf _output

examples/k3s.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
# This example requires Lima v0.7.0 or later.
1313

1414
images:
15-
# Hint: run `limactl prune` to invalidate the "current" cache
16-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-amd64.img"
17-
arch: "x86_64"
18-
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-arm64.img"
19-
arch: "aarch64"
15+
# Hint: run `limactl prune` to invalidate the "current" cache
16+
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-amd64.img"
17+
arch: "x86_64"
18+
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-arm64.img"
19+
arch: "aarch64"
2020

2121
# Mounts are disabled in this example, but can be enabled optionally.
2222
mounts: []

examples/vmnet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ networks:
1717
# https://github.com/lima-vm/vde_vmnet. Available networks are defined in
1818
# $LIMA_HOME/_config/networks.yaml. Supported network types are "host",
1919
# "shared", or "bridged".
20-
- lima: shared
20+
- lima: shared

pkg/limayaml/default.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ ssh:
5959
# Default: false
6060
forwardAgent: false
6161

62-
63-
6462
# ===================================================================== #
6563
# ADVANCED CONFIGURATION
6664
# ===================================================================== #
@@ -234,4 +232,3 @@ useHostResolver: true
234232
# ===================================================================== #
235233
# END OF TEMPLATE
236234
# ===================================================================== #
237-

0 commit comments

Comments
 (0)