forked from threemarb/threema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
37 lines (29 loc) · 932 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
# Default enabled cops
# https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
inherit_from: .rubocop_todo.yml
AllCops:
DisplayCopNames: true
Style/NegatedIf:
Description: >-
Favor unless over if for negative conditions
(or control flow or).
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
Enabled: false
Style/TrailingCommaInArguments:
Description: 'Checks for trailing comma in argument lists.'
StyleGuide: '#no-trailing-params-comma'
Enabled: false
# RSpec tests
Metrics/ModuleLength:
Description: 'Avoid modules longer than 100 lines of code.'
Exclude:
- "**/*_spec.rb"
Metrics/BlockLength:
Description: 'Avoid long blocks with many lines.'
Exclude:
- "**/*_spec.rb"
Metrics/MethodLength:
Description: 'Avoid methods longer than 10 lines of code.'
StyleGuide: '#short-methods'
Exclude:
- "**/*_spec.rb"