pre-commit add rubocop with one rule spaces for indentation

https://docs.rubocop.org/rubocop/integration_with_other_tools.html#git-pre-commit-hook-integration-with-pre-commit
This commit is contained in:
John Bampton
2025-06-25 11:24:41 +10:00
parent 88a7b782c6
commit 4e5db98128
2 changed files with 15 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
AllCops:
DisabledByDefault: true
TargetRubyVersion: 3.4.0
Layout/IndentationStyle:
Enabled: true
EnforcedStyle: spaces
+8
View File
@@ -115,6 +115,14 @@ repos:
args: [--config=.github/linters/mlc_config.json, -q]
types: [markdown]
files: \.md$
- repo: https://github.com/rubocop/rubocop
rev: v1.77.0
hooks:
- id: rubocop
name: run rubocop
description: RuboCop is a Ruby code style checker (linter) and formatter based on the community-driven Ruby Style Guide
exclude: ^test/t/syntax\.rb$
args: [--config=.github/linters/.rubocop.yml]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks: