Skip to content

Commit d53f518

Browse files
committed
Add initial Rubocop config
1 parent fae1a9e commit d53f518

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.rubocop

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--rails

.rubocop.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
AllCops:
2+
TargetRubyVersion: 2.4
3+
Exclude:
4+
- 'db/schema.rb'
5+
- 'node_modules/**/*'
6+
- 'vendor/**/*'
7+
8+
Style/AndOr:
9+
EnforcedStyle: conditionals
10+
11+
Style/BlockDelimiters:
12+
Enabled: true
13+
EnforcedStyle: semantic
14+
Exclude:
15+
- 'spec/**/*_spec.rb'
16+
- 'spec/factories/**/*'
17+
18+
Style/Documentation:
19+
Enabled: false
20+
21+
Style/FormatString:
22+
EnforcedStyle: percent
23+
24+
Style/FrozenStringLiteralComment:
25+
Enabled: false
26+
27+
Style/Lambda:
28+
Enabled: false
29+
EnforcedStyle: literal
30+
31+
Style/LambdaCall:
32+
EnforcedStyle: braces

0 commit comments

Comments
 (0)