Skip to content

Commit 4e5db98

Browse files
committed
1 parent 88a7b78 commit 4e5db98

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.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
@@ -115,6 +115,14 @@ repos:
115115
args: [--config=.github/linters/mlc_config.json, -q]
116116
types: [markdown]
117117
files: \.md$
118+
- repo: https://github.com/rubocop/rubocop
119+
rev: v1.77.0
120+
hooks:
121+
- id: rubocop
122+
name: run rubocop
123+
description: RuboCop is a Ruby code style checker (linter) and formatter based on the community-driven Ruby Style Guide
124+
exclude: ^test/t/syntax\.rb$
125+
args: [--config=.github/linters/.rubocop.yml]
118126
- repo: https://github.com/shellcheck-py/shellcheck-py
119127
rev: v0.10.0.1
120128
hooks:

0 commit comments

Comments
 (0)