-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
87 lines (69 loc) · 1.69 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
require: rubocop-rails
AllCops:
NewCops: enable
TargetRubyVersion: 3.1
Exclude:
- node_modules/**/*
- test/dummy/db/schema.rb
Layout/IndentationConsistency:
Enabled: true
Exclude:
- lib/generators/loco/file_injector/templates/connection.rb
Layout/InitialIndentation:
Enabled: true
Exclude:
- lib/generators/loco/file_injector/templates/application_controller.rb
- lib/generators/loco/file_injector/templates/connection.rb
Layout/TrailingEmptyLines:
Enabled: true
Exclude:
- lib/generators/loco/file_injector/templates/application_controller.rb
Metrics/BlockLength:
Enabled: true
Exclude:
- loco-rails.gemspec
- test/dummy/config/routes.rb
- test/loco/*
Metrics/ClassLength:
Enabled: true
Exclude:
- test/integration/**/*
- test/loco/**/*
Metrics/MethodLength:
Enabled: true
Max: 12
Naming/FileName:
Enabled: true
Exclude:
- lib/loco-rails.rb
Rails:
Enabled: true
Rails/ApplicationJob:
Enabled: true
Exclude:
- app/jobs/loco/*
Rails/ActionControllerFlashBeforeRender:
Enabled: true
Exclude:
- test/dummy/app/controllers/admin/sessions_controller.rb
Rails/I18nLocaleTexts:
Enabled: false
Style/ArgumentsForwarding:
Enabled: true
Exclude:
- lib/loco/ws_connection_finder.rb
Style/ArrayCoercion:
Enabled: false
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
Exclude:
- lib/generators/loco/file_injector/templates/application_controller.rb
- lib/generators/loco/file_injector/templates/connection.rb
Style/LambdaCall:
Enabled: false
Style/MixinUsage:
Enabled: true
Exclude:
- lib/generators/loco/file_injector/templates/application_controller.rb