Skip to content

Commit 4f2f2cf

Browse files
committed
Add ls-lint with GitHub Actions
Rename files in the `mrbgems` directory
1 parent 93a7e5e commit 4f2f2cf

File tree

10 files changed

+20
-0
lines changed

10 files changed

+20
-0
lines changed

.github/linters/.ls-lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ls:
2+
.c: snake_case
3+
.cpp: snake_case
4+
.h: snake_case
5+
.json: snake_case
6+
.rb: snake_case
7+
.yaml: regex:\.?[a-z]+(-[a-z]+)*
8+
.yml: regex:\.?[a-z]+(-[a-z]+)*
9+
10+
ignore:
11+
- build_config
12+
- mrbgems/mruby-compiler/core/y.tab.c

.github/workflows/lint.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,11 @@ jobs:
2525
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
2626
- name: Run pre-commit
2727
run: pre-commit run --all-files
28+
ls-lint:
29+
name: Run ls-lint
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: ls-lint/action@v2.3.0
34+
with:
35+
config: .github/linters/.ls-lint.yml
File renamed without changes.

mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c renamed to mrbgems/mruby-bin-strip/tools/mruby-strip/mruby_strip.c

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)