forked from theforeman/foreman-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop_todo.yml
120 lines (107 loc) · 4.18 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
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2020-08-07 08:31:32 UTC using RuboCop version 0.89.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: 2
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
Exclude:
- 'foreman-tasks-core.gemspec'
- 'foreman-tasks.gemspec'
# Offense count: 1
Lint/UselessAssignment:
Exclude:
- 'lib/foreman_tasks/tasks/export_tasks.rake'
# Offense count: 1
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
Naming/FileName:
Exclude:
- '*.gemspec'
- 'Gemfile'
- 'db/seeds.d/*'
- 'lib/foreman-tasks.rb'
- 'gemfile.d/foreman-tasks.rb'
# Offense count: 3
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'app/controllers/foreman_tasks/recurring_logics_controller.rb'
- 'app/lib/actions/recurring_action.rb'
- 'lib/foreman_tasks_core/otp_manager.rb'
# Offense count: 11
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
Exclude:
- 'app/helpers/foreman_tasks/foreman_tasks_helper.rb'
# Offense count: 1
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
# AllowedMethods: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'app/models/foreman_tasks/task/status_explicator.rb'
# Offense count: 6
# Configuration parameters: Include.
# Include: db/migrate/*.rb
Rails/CreateTableWithTimestamps:
Exclude:
- 'db/migrate/20131205204140_create_foreman_tasks.rb'
- 'db/migrate/20131209122644_create_foreman_tasks_locks.rb'
- 'db/migrate/20150907124936_create_recurring_logic.rb'
- 'db/migrate/20150907131503_create_task_groups.rb'
- 'db/migrate/20151112152108_create_triggerings.rb'
# Offense count: 1
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
Exclude:
- 'lib/foreman_tasks/cleaner.rb'
# Offense count: 5
Rails/OutputSafety:
Exclude:
- 'app/helpers/foreman_tasks/foreman_tasks_helper.rb'
# Offense count: 2
# Configuration parameters: Include.
# Include: **/Rakefile, **/*.rake
Rails/RakeEnvironment:
Exclude:
- 'lib/capistrano/tasks/**/*.rake'
- 'lib/foreman_tasks/tasks/dynflow.rake'
- 'lib/foreman_tasks/tasks/test.rake'
# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'app/lib/actions/action_with_sub_plans.rb'
- 'app/models/foreman_tasks/task/dynflow_task.rb'
- 'app/models/foreman_tasks/task/status_explicator.rb'
- 'app/models/foreman_tasks/task/summarizer.rb'
- 'app/models/foreman_tasks/task/task_cancelled_exception.rb'
- 'app/models/setting/foreman_tasks.rb'
- 'lib/foreman_tasks/dynflow/configuration.rb'
- 'lib/foreman_tasks/dynflow/console_authorizer.rb'
- 'lib/foreman_tasks/dynflow/persistence.rb'
- 'test/controllers/api/recurring_logics_controller_test.rb'
- 'test/controllers/api/tasks_controller_test.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyle.
# SupportedStyles: allowed_in_returns, forbidden
Style/DoubleNegation:
Exclude:
- 'app/models/foreman_tasks/recurring_logic.rb'
# Offense count: 35
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false