mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add ls-lint with GitHub Actions
Rename files in the `mrbgems` directory
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user