-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
50 lines (40 loc) · 943 Bytes
/
.rubocop.yml
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
# This is the configuration used to check the rubocop source code.
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'app/admin/**/*'
- 'db/**/*'
- 'bin/**/*'
- 'app/views/contacts/*.json.jbuilder'
CacheRootDirectory: '../../tmp'
Rails:
Enabled: true
Style/PredicateName:
Exclude:
- 'spec/support/feature_macros.rb'
Style/WordArray:
MinSize: 3
Style/SymbolProc:
IgnoredMethods: validate
Style/Documentation:
Enabled: false
Metrics/LineLength:
Max: 90
# default zarovnavani vim
# ignoruje hash pokud jej pouzivame napr. jako parametr:
#
# mail to: '[email protected]',
# subject: "Message: #{message.name}",
Style/AlignHash:
EnforcedLastArgumentHashStyle: 'ignore_implicit'
# TODO vim jinak zarovnava pokud je metoda volana se zavorkou nebo bez
#
# create(:job,
# title: "Ucetni"
# VS
#
# create :job,
# title: "Ucetni"
Style/AlignParameters:
Enabled: false