forked from lima-vm/lima
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify file and dir names; integrate ls-lint
Signed-off-by: Oleksandr Redko <[email protected]>
- Loading branch information
1 parent
463ed82
commit 35ccb6a
Showing
25 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.