-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
54 lines (45 loc) · 1.05 KB
/
.rubocop.yml
File metadata and controls
54 lines (45 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
inherit_from: .rubocop_todo.yml
require:
- rubocop-rails
- rubocop-rspec
Rails:
Enabled: true
Style/FrozenStringLiteralComment:
EnforcedStyle: never
AllCops:
NewCops: disable
Exclude:
- 'vendor/**/*'
- 'node_modules/**/*'
- 'db/migrate/*'
- 'db/schema.rb'
- 'db/seeds.rb'
- 'bin/*'
- 'lib/activestorage_docx_previewer.rb'
Layout/ArgumentAlignment:
EnforcedStyle: with_first_argument
Layout/LineLength:
Max: 120
Style/ClassAndModuleChildren:
Enabled: false
# These cops worsen the readability of code when the expression is longer than the condition
#
# example:
# if somehting.truthy?
# LengthyCode.new attribute: 1, attribute: 2, attribute: 3, attribute: 4
# end
#
# vs.
#
# LongCode.new attribute: 1, attribute: 2, attribute: 3, attribute: 4 if something.truthy?
#
# Let's leave the decision to the developer rather than enforcing it
Style/GuardClause:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
# expect more to speed up tests.
RSpec/MultipleExpectations:
Max: 10
Style/SymbolArray:
Enabled: false