Skip to content

Commit aaf8b9c

Browse files
authored
Merge pull request #2476 from alexandear/unify-filenames
Unify file and dir names; integrate ls-lint
2 parents 2be8886 + 35ccb6a commit aaf8b9c

File tree

25 files changed

+36
-0
lines changed

25 files changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
run: |
4747
sudo apt-get update
4848
sudo apt-get install -y shellcheck
49+
- name: Run file and directory name linter
50+
uses: ls-lint/action@v2.2.3
4951
- name: Run shellcheck
5052
run: find . -name '*.sh' | xargs shellcheck
5153
- name: Install shfmt

.ls-lint.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# ls-lint configuration file.
2+
# https://ls-lint.org/2.2/configuration/the-basics.html
3+
ls:
4+
.dir: kebab-case
5+
.go: snake_case
6+
.lima: snake_case
7+
.sh: kebab-case
8+
.TEMPLATE.yaml: kebab-case
9+
.yaml: kebab-case
10+
.yml: kebab-case
11+
12+
.github:
13+
.yaml: snake_case
14+
15+
cmd/limactl:
16+
# valid names are `show-ssh.go` or `show-ssh_test.go`
17+
.go: kebab-case | regex:[a-z0-9-]+_test
18+
19+
docs:
20+
.md: kebab-case
21+
22+
website/content:
23+
.dir: lowercase
24+
25+
ignore:
26+
- .git
27+
- .golangci.yml
28+
- .ls-lint.yml
29+
- '_output'
30+
- '**/*.pb\.go'
31+
- hack/common.inc.sh
32+
- pkg/cidata/cidata.TEMPLATE.d
33+
- pkg/cidata/cidata.TEMPLATE.d/util/compare_version.sh
34+
- website
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)