forked from decidim/decidim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
109 lines (97 loc) · 4.58 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
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-11-24 09:42:46 UTC using RuboCop version 1.57.2.
# 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: 67
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
# SupportedStyles: Gemfile, gems.rb, gemspec
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
Gemspec/DevelopmentDependencies:
Enabled: false
# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented, indented_relative_to_receiver
Layout/MultilineMethodCallIndentation:
Exclude:
- 'decidim-assemblies/app/forms/decidim/assemblies/admin/assembly_form.rb'
- 'decidim-budgets/app/forms/decidim/budgets/admin/project_form.rb'
- 'decidim-conferences/app/forms/decidim/conferences/admin/conference_speaker_form.rb'
- 'decidim-conferences/app/forms/decidim/conferences/admin/registration_type_form.rb'
- 'decidim-proposals/app/cells/decidim/proposals/proposals_picker_cell.rb'
- 'decidim-proposals/app/forms/decidim/proposals/admin/proposal_base_form.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods.
# AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal?, presence, present?
Lint/RedundantSafeNavigation:
Exclude:
- 'decidim-accountability/app/permissions/decidim/accountability/admin/permissions.rb'
- 'decidim-core/lib/decidim/reportable.rb'
# Offense count: 13
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
# AllowedReceivers: ActionMailer::Preview, ActiveSupport::TimeZone
Rails/RedundantActiveRecordAllMethod:
Exclude:
- 'decidim-assemblies/spec/commands/copy_assembly_spec.rb'
- 'decidim-conferences/spec/commands/copy_conference_spec.rb'
- 'decidim-core/lib/decidim/core.rb'
- 'decidim-core/lib/tasks/decidim_metrics_tasks.rake'
- 'decidim-core/spec/lib/reminder_registry_spec.rb'
- 'decidim-core/spec/tasks/decidim_tasks_metrics_spec.rb'
- 'decidim-participatory_processes/spec/commands/copy_participatory_process_spec.rb'
- 'decidim-proposals/db/migrate/20200120215928_move_proposal_endorsements_to_core_endorsements.rb'
- 'decidim-system/app/controllers/decidim/system/oauth_applications_controller.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/SelectMap:
Exclude:
- 'decidim-comments/app/queries/decidim/comments/metrics/comments_metric_manage.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
Exclude:
- 'decidim-core/spec/system/internal_server_error_display_spec.rb'
# Offense count: 56
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantArrayConstructor:
Enabled: false
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/RedundantFilterChain:
Exclude:
- 'decidim-participatory_processes/app/models/decidim/participatory_process_step.rb'
# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpArgument:
Exclude:
- 'decidim-core/db/migrate/20170605162500_add_hierarchy_to_scopes.rb'
- 'decidim-core/lib/decidim/attributes/clean_string.rb'
- 'decidim-core/spec/lib/attributes/clean_string_spec.rb'
- 'decidim-core/spec/services/decidim/open_data_exporter_spec.rb'
- 'decidim-dev/spec/system/axe_matchers_spec.rb'
- 'decidim-generators/lib/decidim/generators/component_generator.rb'
- 'decidim-proposals/spec/system/collaborative_drafts_spec.rb'
- 'lib/decidim/gem_manager.rb'
# Offense count: 18
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn:
Enabled: false
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantSelfAssignmentBranch:
Exclude:
- 'decidim-core/app/helpers/decidim/searches_helper.rb'
- 'decidim-core/app/services/decidim/log/diff_changeset_calculator.rb'
# Offense count: 199
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns.
Style/ReturnNilInPredicateMethodDefinition:
Enabled: false