forked from payrollhero/webhook_system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
96 lines (74 loc) · 1.67 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
91
92
93
94
95
96
require:
- rubocop-rails
- rubocop-rspec
- rubocop-performance
inherit_from:
- .rubocop_todo.yml
Rails:
Enabled: true
AllCops:
NewCops: enable
Exclude:
- '*.gemspec'
- 'Gemfile'
- vendor/bundle/ruby/**/*
RSpec/NotToNot:
SupportedStyles: to_not
# disable because an error is being raised
Enabled: false
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/Lambda:
Enabled: false
Layout/EmptyLinesAroundClassBody:
Enabled: false
Layout/EmptyLinesAroundModuleBody:
Enabled: false
Layout/EmptyLinesAroundMethodBody:
Enabled: false
Style/ClassCheck:
Enabled: false
# we don't care about kind_of? vs is_a?
Style/StringLiterals:
Enabled: false
Naming/FileName:
Enabled: false
Style/RedundantException:
Enabled: false
Style/SignalException:
Enabled: false
Style/BlockDelimiters:
Enabled: false
# Github's PR width is 120 characters
Layout/LineLength:
Max: 120
AllowURI: true
Exclude:
- spec/**/*
# Align with the style guide, we don't prefer anything
Style/CollectionMethods:
Enabled: false
Metrics/AbcSize:
Description: A calculated magnitude based on number of assignments, branches, and
conditions.
Enabled: true
Max: 30
Metrics/BlockLength:
Max: 25
AllowedMethods:
- context
- describe
- define
Rails/RakeEnvironment:
Exclude:
- 'Rakefile'
Rails/ApplicationJob:
Exclude:
- 'lib/webhook_system/job.rb'
Rails/ApplicationRecord:
Exclude:
- 'lib/webhook_system/event_log.rb'
- 'lib/webhook_system/subscription.rb'
- 'lib/webhook_system/subscription_topic.rb'