Skip to content

Commit

Permalink
Unify file and dir names; integrate ls-lint
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Redko <[email protected]>
  • Loading branch information
alexandear committed Jul 10, 2024
1 parent 463ed82 commit 35ccb6a
Show file tree
Hide file tree
Showing 25 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- name: Run file and directory name linter
uses: ls-lint/[email protected]
- name: Run shellcheck
run: find . -name '*.sh' | xargs shellcheck
- name: Install shfmt
Expand Down
34 changes: 34 additions & 0 deletions .ls-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# ls-lint configuration file.
# https://ls-lint.org/2.2/configuration/the-basics.html
ls:
.dir: kebab-case
.go: snake_case
.lima: snake_case
.sh: kebab-case
.TEMPLATE.yaml: kebab-case
.yaml: kebab-case
.yml: kebab-case

.github:
.yaml: snake_case

cmd/limactl:
# valid names are `show-ssh.go` or `show-ssh_test.go`
.go: kebab-case | regex:[a-z0-9-]+_test

docs:
.md: kebab-case

website/content:
.dir: lowercase

ignore:
- .git
- .golangci.yml
- .ls-lint.yml
- '_output'
- '**/*.pb\.go'
- hack/common.inc.sh
- pkg/cidata/cidata.TEMPLATE.d
- pkg/cidata/cidata.TEMPLATE.d/util/compare_version.sh
- 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.
File renamed without changes.
File renamed without changes.

0 comments on commit 35ccb6a

Please sign in to comment.