👷 Add rubocop
This commit is contained in:
parent
fcaba4711c
commit
1215a34b16
|
|
@ -51,6 +51,10 @@ repos:
|
|||
rev: v1.29.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
- repo: https://github.com/rubocop/rubocop
|
||||
rev: v1.48.0
|
||||
hooks:
|
||||
- id: rubocop
|
||||
|
||||
# - repo: https://github.com/executablebooks/mdformat
|
||||
# rev: 0.7.16
|
||||
|
|
|
|||
12
.rubocop.yml
12
.rubocop.yml
|
|
@ -1,10 +1,12 @@
|
|||
#!/usr/bin/env -S rubocop -c
|
||||
---
|
||||
StringLiterals:
|
||||
EnforcedStyle: double_quotes
|
||||
Layout/LineLength:
|
||||
Max: 118
|
||||
Style/FrozenStringLiteralComment:
|
||||
Exclude: "*.rb"
|
||||
Naming/FileName:
|
||||
Enabled: false
|
||||
Style/StringLiterals:
|
||||
EnforcedStyle: double_quotes
|
||||
Style/Documentation:
|
||||
Exclude: "*.rb"
|
||||
Enabled: false
|
||||
Style/FrozenStringLiteralComment:
|
||||
Enabled: false
|
||||
|
|
|
|||
Loading…
Reference in New Issue