mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -0,0 +1,7 @@
|
||||
AllCops:
|
||||
DisabledByDefault: true
|
||||
TargetRubyVersion: 3.4.0
|
||||
|
||||
Layout/IndentationStyle:
|
||||
Enabled: true
|
||||
EnforcedStyle: spaces
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user