Skip to content

Commit 82d5b2c

Browse files
committed
pre-commit add rubocop with one rule spaces for indentation
https://github.com/jumanjihouse/pre-commit-hooks?tab=readme-ov-file#rubocop
1 parent 88a7b78 commit 82d5b2c

2 files changed

Lines changed: 12 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ repos:
9393
- repo: https://github.com/jumanjihouse/pre-commit-hooks
9494
rev: 3.0.0
9595
hooks:
96+
- id: rubocop
97+
name: run rubocop
98+
description: RuboCop is a Ruby code style checker (linter) and formatter based on the community-driven Ruby Style Guide
99+
exclude: ^test/t/syntax\.rb$
100+
args: [--config=.github/linters/.rubocop.yml]
96101
- id: script-must-not-have-extension
97102
name: run script-must-not-have-extension
98103
description: local policy is to exclude extension from all shell files

0 commit comments

Comments
 (0)