forked from rubyforgood/human-essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
148 lines (129 loc) · 4.27 KB
/
.rubocop_todo.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 9999`
# on 2018-06-14 19:33:49 -0400 using RuboCop version 0.56.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: leading, trailing
Layout/DotPosition:
Exclude:
- 'app/controllers/items_controller.rb'
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented, indented_relative_to_receiver
Layout/MultilineMethodCallIndentation:
Exclude:
- 'app/controllers/items_controller.rb'
# Offense count: 4
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/models/donation_spec.rb'
- 'spec/models/purchase_spec.rb'
# Offense count: 2
Lint/AmbiguousOperator:
Exclude:
- 'lib/capistrano/tasks/database.rake'
- 'lib/capistrano/tasks/nginx.rake'
# Offense count: 1
Lint/ParenthesesAsGroupedExpression:
Exclude:
- 'app/helpers/dashboard_helper.rb'
# Offense count: 1
Lint/RescueException:
Exclude:
- 'app/controllers/barcode_items_controller.rb'
# Offense count: 32
Lint/UselessAssignment:
Exclude:
- 'app/controllers/barcode_items_controller.rb'
- 'app/controllers/donations_controller.rb'
- 'spec/controllers/adjustments_controller_spec.rb'
- 'spec/controllers/distributions_controller_spec.rb'
- 'spec/controllers/donations_controller_spec.rb'
- 'spec/controllers/purchases_controller_spec.rb'
- 'spec/controllers/transfers_controller_spec.rb'
- 'spec/features/adjustment_spec.rb'
- 'spec/features/barcode_item_spec.rb'
- 'spec/features/item_spec.rb'
- 'spec/features/storage_location_spec.rb'
- 'spec/features/transfer_spec.rb'
- 'spec/models/adjustment_spec.rb'
- 'spec/models/item_spec.rb'
- 'spec/models/transfer_spec.rb'
# Offense count: 1
Naming/MemoizedInstanceVariableName:
Exclude:
- 'app/controllers/application_controller.rb'
# Offense count: 1
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
Rails/Exit:
Exclude:
- 'lib/**/*.rake'
- 'config/deploy.rb'
# Offense count: 19
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/concerns/itemizable.rb'
- 'app/models/diaper_drive_participant.rb'
- 'app/models/donation_site.rb'
- 'app/models/item.rb'
- 'app/models/organization.rb'
- 'app/models/partner.rb'
# Offense count: 4
# Configuration parameters: Include.
# Include: app/controllers/**/*.rb
Rails/LexicallyScopedActionFilter:
Exclude:
- 'app/controllers/adjustments_controller.rb'
- 'app/controllers/purchases_controller.rb'
# Offense count: 2
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
Exclude:
- 'config/deploy.rb'
# Offense count: 2
Rails/OutputSafety:
Exclude:
- 'app/controllers/adjustments_controller.rb'
# Offense count: 1
# Configuration parameters: Blacklist.
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
Rails/SkipsModelValidations:
Exclude:
- 'app/models/storage_location.rb'
# Offense count: 2
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
Exclude:
- 'app/helpers/dashboard_helper.rb'
# Offense count: 2
Style/DateTime:
Exclude:
- 'app/helpers/dashboard_helper.rb'
# Offense count: 1
Style/MultilineBlockChain:
Exclude:
- 'spec/models/storage_location_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Exclude:
- 'app/controllers/donations_controller.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Exclude:
- 'app/controllers/items_controller.rb'