Add ls-lint with GitHub Actions

Rename files in the `mrbgems` directory
This commit is contained in:
John Bampton
2024-11-13 22:00:19 +10:00
parent 93a7e5ec26
commit 4f2f2cfd20
10 changed files with 20 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
ls:
.c: snake_case
.cpp: snake_case
.h: snake_case
.json: snake_case
.rb: snake_case
.yaml: regex:\.?[a-z]+(-[a-z]+)*
.yml: regex:\.?[a-z]+(-[a-z]+)*
ignore:
- build_config
- mrbgems/mruby-compiler/core/y.tab.c
+8
View File
@@ -25,3 +25,11 @@ jobs:
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
run: pre-commit run --all-files
ls-lint:
name: Run ls-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ls-lint/action@v2.3.0
with:
config: .github/linters/.ls-lint.yml