-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
103 lines (81 loc) · 2.15 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
97
98
99
100
101
102
103
inherit_gem:
rubocul: rubocul_default.yml
require:
- rubocop-factory_bot
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 3.1.3
TargetRailsVersion: 7.0.8
Exclude:
- 'app/javascript/**/*'
- 'bin/**/*'
- 'db/**/*'
# - 'lib/tasks/**/*'
- 'node_modules/**/*'
- 'vendor/**/*'
- 'tmp/**/*'
- lib/hyacinth3/client.rb
- spec/hyacinth3/client_spec.rb
- lib/tasks/derivativo/resque.rake
CUL/CapybaraScreenshots:
Description: 'Disallow calls to save_screenshot in feature specs.'
Enabled: true
VersionAdded: '3.2.2'
Include:
- 'spec/**/*'
Layout/LineLength:
Max: 130
Metrics/AbcSize:
Exclude:
- lib/derivativo/access_generator.rb
- app/jobs/derivative_request_jobs/derivative_request_job.rb
- lib/derivativo/conversion/ffmpeg_helpers.rb
- lib/derivativo/utils/shell_utils.rb
- lib/derivativo/conversion/office_helpers.rb
Metrics/CyclomaticComplexity:
Exclude:
- lib/derivativo/access_generator.rb
Metrics/MethodLength:
Max: 15
Exclude:
- lib/derivativo/access_generator.rb
- app/jobs/derivative_request_jobs/derivative_request_job.rb
- app/jobs/derivative_request_jobs/prepare_derivative_request_job.rb
- lib/derivativo/poster_generator.rb
- lib/derivativo/conversion/office_helpers.rb
- lib/derivativo/utils/shell_utils.rb
Metrics/ParameterLists:
Enabled: false
Rails/RakeEnvironment:
Exclude:
- lib/tasks/derivativo/setup.rake
RSpec/ContextWording:
Enabled: false
RSpec/MultipleExpectations:
Max: 3
RSpec/NestedGroups:
Max: 5
RSpec/StubbedMock:
Enabled: false
Style/RegexpLiteral:
Enabled: false
Style/ExplicitBlockArgument:
Exclude:
- lib/derivativo/conversion.rb
Style/OptionalBooleanParameter:
Enabled: false
Naming/MethodParameterName:
Enabled: false
Layout/ClosingParenthesisIndentation:
Enabled: false
RSpec/ExampleLength:
Max: 10
Exclude:
- 'spec/derivativo/conversion/office_helpers_spec.rb'
- 'spec/derivativo/file_helper_spec.rb'
RSpec/MessageSpies:
Enabled: false
Style/AccessModifierDeclarations:
Exclude:
- lib/derivativo/derivative_package.rb
- lib/derivativo/delivery_adapter/hyacinth2.rb