Merge pull request #6418 from jbampton/add-ls-lint

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-05-14 15:55:33 +09:00
committed by GitHub
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