Skip to content

Commit 84a4bd1

Browse files
authored
Merge pull request mruby#6563 from jbampton/rubocop-indentation
2 parents e333c9f + 4e5db98 commit 84a4bd1

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/linters/.rubocop.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
AllCops:
2+
DisabledByDefault: true
3+
TargetRubyVersion: 3.4.0
4+
5+
Layout/IndentationStyle:
6+
Enabled: true
7+
EnforcedStyle: spaces

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ repos:
108108
args: [--config=.github/linters/mlc_config.json, -q]
109109
types: [markdown]
110110
files: \.md$
111+
- repo: https://github.com/rubocop/rubocop
112+
rev: v1.77.0
113+
hooks:
114+
- id: rubocop
115+
name: run rubocop
116+
description: RuboCop is a Ruby code style checker (linter) and formatter based on the community-driven Ruby Style Guide
117+
exclude: ^test/t/syntax\.rb$
118+
args: [--config=.github/linters/.rubocop.yml]
111119
- repo: https://github.com/shellcheck-py/shellcheck-py
112120
rev: v0.10.0.1
113121
hooks:

0 commit comments

Comments
 (0)