-
Notifications
You must be signed in to change notification settings - Fork 27
/
.rubocop.yml
90 lines (71 loc) · 1.71 KB
/
.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
AllCops:
Include:
- '**/*.gemspec'
- '**/*.podspec'
- '**/*.jbuilder'
- '**/*.rake'
- '**/*.opal'
- '**/Gemfile'
- '**/Rakefile'
- '**/Capfile'
- '**/Guardfile'
- '**/Podfile'
- '**/Thorfile'
- '**/Vagrantfile'
- '**/Berksfile'
- '**/Cheffile'
- '**/Vagabondfile'
Exclude:
- 'benchmarks/**/*'
- 'examples/**/*'
- 'integrations/**/*'
- 'test/**/*'
- 'vendor/**/*'
DisplayCopNames: true
DisplayStyleGuide: true
StyleGuideCopsOnly: false
TargetRubyVersion: 2.3
Lint/Eval:
Description: 'The use of eval represents a serious security risk.'
Enabled: false
Lint/UnusedMethodArgument:
Enabled: false
Style/AsciiComments:
Description: 'Use only ascii symbols in comments.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
Enabled: false
Style/Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: false
Style/EmptyLinesAroundBlockBody:
EnforcedStyle: no_empty_lines
Style/EmptyLinesAroundClassBody:
EnforcedStyle: empty_lines
Style/EmptyLinesAroundModuleBody:
EnforcedStyle: empty_lines
Style/MultilineBlockChain:
Enabled: false
Style/ModuleFunction:
Enabled: false
Style/RescueModifier:
Enabled: false
Style/SpaceAroundOperators:
Enabled: false
Style/TrailingBlankLines:
EnforcedStyle: final_newline
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
Metrics/AbcSize:
Max: 25
Metrics/ClassLength:
Description: 'Avoid classes longer than 100 lines of code.'
Enabled: false
Metrics/CyclomaticComplexity:
Max: 12
Metrics/MethodLength:
CountComments: false
Max: 30
Metrics/ModuleLength:
Max: 200
Metrics/PerceivedComplexity:
Max: 10