forked from attilagyorffy/machinist
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.rubocop.yml
More file actions
executable file
·60 lines (47 loc) · 1.02 KB
/
Copy path.rubocop.yml
File metadata and controls
executable file
·60 lines (47 loc) · 1.02 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
55
56
57
58
59
60
---
require: rubocop-rspec
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.2
DisplayCopNames: true
Exclude:
- 'tmp/**/*'
Style/MixinGrouping:
Exclude:
- 'spec/**/*.rb'
Metrics/BlockLength:
CountComments: false # count full line comments?
Exclude:
- '**/*_spec.rb'
StringLiterals:
EnforcedStyle: single_quotes
Enabled: true
DotPosition:
EnforcedStyle: leading
Enabled: true
ClassAndModuleChildren:
EnforcedStyle: nested
Enabled: true
Documentation:
Enabled: false
FileName:
Enabled: true
LineLength:
Max: 120
Enabled: true
Style/ExtraSpacing:
Enabled: true
Lint/LiteralInInterpolation:
AutoCorrect: true
Style/ModuleFunction:
EnforcedStyle: extend_self # Allows us to have private methods too
Style/PercentLiteralDelimiters:
# Hound and CodeClimate are currently using an old version of Rubocop with
# different defaults, so we set them explicitly here.
PreferredDelimiters:
default: ()
'%i': '[]'
'%I': '[]'
'%r': '{}'
'%w': '[]'
'%W': '[]'