👷 Add rubocop

This commit is contained in:
Wu Zhenyu 2023-03-11 19:40:17 +08:00
parent fcaba4711c
commit 1215a34b16
No known key found for this signature in database
GPG Key ID: 0E07E1F8C0EC10AD
2 changed files with 11 additions and 5 deletions

View File

@ -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

View File

@ -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