foreman_remote_execution 3.0.3 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +2 -1
- data/.rubocop.yml +80 -50
- data/.rubocop_todo.yml +113 -73
- data/Gemfile +4 -0
- data/app/controllers/api/v2/foreign_input_sets_controller.rb +3 -2
- data/app/controllers/api/v2/job_invocations_controller.rb +7 -6
- data/app/controllers/api/v2/job_templates_controller.rb +3 -2
- data/app/controllers/api/v2/remote_execution_features_controller.rb +3 -2
- data/app/controllers/api/v2/template_invocations_controller.rb +1 -1
- data/app/controllers/cockpit_controller.rb +1 -0
- data/app/controllers/concerns/foreman/controller/parameters/foreign_input_set.rb +1 -1
- data/app/controllers/concerns/foreman/controller/parameters/job_template.rb +4 -4
- data/app/controllers/job_invocations_controller.rb +10 -6
- data/app/controllers/job_templates_controller.rb +1 -1
- data/app/controllers/remote_execution_features_controller.rb +3 -2
- data/app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb +16 -5
- data/app/helpers/job_invocations_chart_helper.rb +11 -10
- data/app/helpers/job_invocations_helper.rb +13 -5
- data/app/helpers/remote_execution_helper.rb +43 -46
- data/app/lib/actions/remote_execution/run_host_job.rb +5 -6
- data/app/lib/actions/remote_execution/run_hosts_job.rb +2 -2
- data/app/lib/foreman_remote_execution/renderer/scope/input.rb +1 -0
- data/app/models/concerns/foreman_remote_execution/errors_flattener.rb +0 -2
- data/app/models/concerns/foreman_remote_execution/host_extensions.rb +3 -5
- data/app/models/concerns/foreman_remote_execution/nic_extensions.rb +1 -0
- data/app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb +1 -0
- data/app/models/foreign_input_set.rb +3 -2
- data/app/models/input_template_renderer.rb +1 -1
- data/app/models/job_invocation.rb +10 -12
- data/app/models/job_invocation_composer.rb +20 -14
- data/app/models/job_invocation_task_group.rb +1 -1
- data/app/models/job_template.rb +3 -3
- data/app/models/remote_execution_feature.rb +0 -2
- data/app/models/remote_execution_provider.rb +4 -2
- data/app/models/setting/remote_execution.rb +54 -56
- data/app/models/ssh_execution_provider.rb +2 -2
- data/app/models/targeting.rb +1 -0
- data/app/models/template_invocation.rb +2 -3
- data/app/views/api/v2/job_invocations/base.json.rabl +1 -1
- data/app/views/api/v2/job_invocations/main.json.rabl +5 -2
- data/app/views/job_invocations/_card_target_hosts.html.erb +12 -0
- data/app/views/job_invocations/_card_user_input.html.erb +1 -1
- data/app/views/job_invocations/_form.html.erb +3 -2
- data/app/views/job_invocations/_rerun_taxonomies.html.erb +22 -0
- data/app/views/job_invocations/_user_input.html.erb +1 -1
- data/app/views/job_invocations/show.html.erb +2 -0
- data/db/migrate/20151215114631_add_host_id_to_template_invocation.rb +1 -0
- data/db/migrate/20180110104432_rename_template_invocation_permission.rb +1 -0
- data/db/seeds.d/50-notification_blueprints.rb +4 -4
- data/db/seeds.d/90-bookmarks.rb +1 -0
- data/extra/cockpit/foreman-cockpit-session +7 -2
- data/lib/foreman_remote_execution/engine.rb +18 -17
- data/lib/foreman_remote_execution/version.rb +1 -1
- data/test/benchmark/run_hosts_job_benchmark.rb +1 -1
- data/test/factories/foreman_remote_execution_factories.rb +1 -1
- data/test/functional/api/v2/job_invocations_controller_test.rb +9 -9
- data/test/functional/api/v2/job_templates_controller_test.rb +1 -1
- data/test/functional/api/v2/remote_execution_features_controller_test.rb +2 -2
- data/test/functional/api/v2/template_invocations_controller_test.rb +4 -4
- data/test/functional/job_invocations_controller_test.rb +11 -11
- data/test/functional/job_templates_controller_test.rb +1 -1
- data/test/unit/actions/run_hosts_job_test.rb +8 -8
- data/test/unit/concerns/foreman_tasks_cleaner_extensions_test.rb +3 -3
- data/test/unit/concerns/host_extensions_test.rb +19 -19
- data/test/unit/concerns/nic_extensions_test.rb +1 -1
- data/test/unit/execution_task_status_mapper_test.rb +10 -10
- data/test/unit/input_template_renderer_test.rb +77 -77
- data/test/unit/job_invocation_composer_test.rb +100 -96
- data/test/unit/job_invocation_test.rb +29 -29
- data/test/unit/job_template_effective_user_test.rb +3 -3
- data/test/unit/job_template_test.rb +31 -31
- data/test/unit/remote_execution_feature_test.rb +19 -19
- data/test/unit/remote_execution_provider_test.rb +29 -29
- data/test/unit/renderer_scope_input.rb +6 -6
- data/test/unit/targeting_test.rb +6 -6
- data/test/unit/template_invocation_input_value_test.rb +3 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36a15d0142caa911a59ff7d9797ceab5dabb0e601f605c0fee3d547d1be168f5
|
4
|
+
data.tar.gz: d41aba8d661cae6ef74cfee2bd9e007a37f218c3056e9d9b8ae3a1de5f243bc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20d61e7658cda93e3f24340ae6caa65c1c7868f37e699d7e6a9da524f2acaef9cccdf86cd47a7d2a1386037ad5aac0900935f3c3b2b4706926f16e60245f1b64
|
7
|
+
data.tar.gz: 66e0c4b3af2d1feab711fe90b2af6a5ce08d4159501a1725a98243647a022431d871081bf2d1e82d46f8490c41589a1df6f15f2ee6f13391fb10df240bd41fe4
|
data/.hound.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,111 +1,141 @@
|
|
1
|
-
|
2
|
-
-
|
1
|
+
require:
|
2
|
+
- rubocop-minitest
|
3
|
+
- rubocop-performance
|
4
|
+
- rubocop-rails
|
5
|
+
|
6
|
+
inherit_from: .rubocop_todo.yml
|
3
7
|
|
4
8
|
AllCops:
|
9
|
+
TargetRubyVersion: 2.5
|
10
|
+
TargetRailsVersion: 5.2
|
5
11
|
Exclude:
|
6
|
-
- '
|
7
|
-
- 'node_modules/**'
|
8
|
-
- 'test/**/*'
|
9
|
-
- 'doc/plugins/**'
|
12
|
+
- 'node_modules/**/*'
|
10
13
|
|
11
|
-
|
12
|
-
Enabled:
|
13
|
-
Exclude:
|
14
|
-
- 'lib/foreman_remote_execution_core/**'
|
15
|
-
- 'node_modules/**'
|
14
|
+
Bundler/OrderedGems:
|
15
|
+
Enabled: false
|
16
16
|
|
17
|
-
|
17
|
+
Layout/ArgumentAlignment:
|
18
|
+
EnforcedStyle: with_fixed_indentation
|
19
|
+
IndentationWidth: 2
|
20
|
+
|
21
|
+
Layout/DotPosition:
|
18
22
|
Enabled: false
|
19
23
|
|
20
|
-
|
24
|
+
Layout/FirstArgumentIndentation:
|
25
|
+
EnforcedStyle: consistent
|
26
|
+
|
27
|
+
Layout/HashAlignment:
|
21
28
|
Enabled: false
|
22
29
|
|
23
|
-
|
30
|
+
Layout/LineLength:
|
24
31
|
Enabled: false
|
25
32
|
|
26
|
-
|
33
|
+
Layout/ParameterAlignment:
|
27
34
|
Enabled: false
|
28
35
|
|
29
|
-
|
36
|
+
Lint/BooleanSymbol:
|
30
37
|
Enabled: false
|
31
38
|
|
32
|
-
|
33
|
-
|
39
|
+
Metrics:
|
40
|
+
Enabled: false
|
34
41
|
|
35
|
-
|
42
|
+
Performance/Casecmp:
|
36
43
|
Enabled: false
|
37
44
|
|
38
|
-
|
45
|
+
Performance/RedundantMatch:
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
Performance/RedundantMerge:
|
49
|
+
Enabled: true
|
50
|
+
|
51
|
+
Performance/RegexpMatch:
|
39
52
|
Enabled: false
|
40
53
|
|
41
|
-
|
54
|
+
Rails:
|
42
55
|
Exclude:
|
43
|
-
|
44
|
-
|
56
|
+
- 'lib/foreman_remote_execution_core/**/*'
|
57
|
+
- 'lib/foreman_remote_execution_core.rb'
|
45
58
|
|
46
|
-
|
47
|
-
|
59
|
+
Rails/Blank:
|
60
|
+
UnlessPresent: false
|
48
61
|
|
49
|
-
|
62
|
+
# Won't work with sqlite
|
63
|
+
Rails/BulkChangeTable:
|
50
64
|
Enabled: false
|
51
65
|
|
52
|
-
|
66
|
+
Rails/RefuteMethods:
|
53
67
|
Enabled: false
|
54
68
|
|
55
|
-
Style/
|
56
|
-
|
69
|
+
Style/Alias:
|
70
|
+
EnforcedStyle: prefer_alias_method
|
71
|
+
|
72
|
+
Style/AndOr:
|
73
|
+
EnforcedStyle: conditionals
|
57
74
|
|
58
|
-
|
75
|
+
# Don't prefer is_a? over kind_of?
|
76
|
+
Style/ClassCheck:
|
59
77
|
Enabled: false
|
60
78
|
|
61
|
-
|
79
|
+
# Don't enforce certain methods, e.g. detect over find
|
80
|
+
Style/CollectionMethods:
|
62
81
|
Enabled: false
|
63
82
|
|
64
|
-
|
83
|
+
Style/ConditionalAssignment:
|
65
84
|
Enabled: false
|
66
85
|
|
67
|
-
#
|
68
|
-
Style/
|
86
|
+
# Don't enforce documentation
|
87
|
+
Style/Documentation:
|
69
88
|
Enabled: false
|
70
89
|
|
71
|
-
Style/
|
72
|
-
EnforcedStyle:
|
90
|
+
Style/EmptyMethod:
|
91
|
+
EnforcedStyle: expanded
|
73
92
|
|
74
|
-
|
93
|
+
# Don't enforce frozen string literals
|
94
|
+
Style/FrozenStringLiteralComment:
|
75
95
|
Enabled: false
|
76
96
|
|
77
|
-
|
97
|
+
# Support both, Ruby 1.9 hashmap and hash-rocket syntax
|
98
|
+
Style/HashSyntax:
|
78
99
|
Enabled: false
|
79
100
|
|
80
|
-
Style/
|
101
|
+
Style/IfUnlessModifier:
|
81
102
|
Enabled: false
|
82
103
|
|
83
|
-
|
104
|
+
Style/InverseMethods:
|
84
105
|
Enabled: false
|
85
106
|
|
86
|
-
|
107
|
+
# disabled until we can configure "+" as concat sign
|
108
|
+
Style/LineEndConcatenation:
|
87
109
|
Enabled: false
|
88
110
|
|
89
|
-
Style/
|
111
|
+
Style/MultipleComparison:
|
90
112
|
Enabled: false
|
91
113
|
|
92
|
-
|
114
|
+
Style/NumericPredicate:
|
93
115
|
Enabled: false
|
94
116
|
|
95
|
-
Style/
|
117
|
+
Style/ParallelAssignment:
|
96
118
|
Enabled: false
|
97
119
|
|
98
|
-
|
120
|
+
Style/ParenthesesAroundCondition:
|
99
121
|
Enabled: false
|
100
122
|
|
101
|
-
|
123
|
+
Style/PreferredHashMethods:
|
102
124
|
Enabled: false
|
103
125
|
|
104
|
-
|
126
|
+
# Both double and single quotes are OK
|
127
|
+
Style/StringLiterals:
|
105
128
|
Enabled: false
|
106
129
|
|
107
|
-
|
108
|
-
|
130
|
+
Style/TernaryParentheses:
|
131
|
+
EnforcedStyle: require_parentheses_when_complex
|
132
|
+
|
133
|
+
Style/TrailingCommaInArrayLiteral:
|
134
|
+
EnforcedStyleForMultiline: comma
|
135
|
+
|
136
|
+
Style/TrailingCommaInHashLiteral:
|
137
|
+
EnforcedStyleForMultiline: comma
|
109
138
|
|
110
|
-
|
139
|
+
#Allow both ['a', 'b'], %w[a b] and %w(a b) style arrays
|
140
|
+
Style/WordArray:
|
111
141
|
Enabled: false
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config --exclude-limit 0`
|
3
|
-
# on
|
3
|
+
# on 2020-03-14 13:43:47 +0100 using RuboCop version 0.80.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -8,24 +8,24 @@
|
|
8
8
|
|
9
9
|
# Offense count: 2
|
10
10
|
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters:
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
|
12
12
|
# Include: **/*.gemspec
|
13
13
|
Gemspec/OrderedDependencies:
|
14
14
|
Enabled: false
|
15
15
|
|
16
|
-
# Offense count:
|
16
|
+
# Offense count: 14
|
17
17
|
# Cop supports --auto-correct.
|
18
18
|
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
19
19
|
# SupportedStyles: case, end
|
20
20
|
Layout/CaseIndentation:
|
21
21
|
Enabled: false
|
22
22
|
|
23
|
-
# Offense count:
|
23
|
+
# Offense count: 4
|
24
24
|
# Cop supports --auto-correct.
|
25
25
|
Layout/EmptyLines:
|
26
26
|
Enabled: false
|
27
27
|
|
28
|
-
# Offense count:
|
28
|
+
# Offense count: 6
|
29
29
|
# Cop supports --auto-correct.
|
30
30
|
# Configuration parameters: EnforcedStyle.
|
31
31
|
# SupportedStyles: empty_lines, no_empty_lines
|
@@ -39,38 +39,39 @@ Layout/EmptyLinesAroundBlockBody:
|
|
39
39
|
Layout/EmptyLinesAroundClassBody:
|
40
40
|
Enabled: false
|
41
41
|
|
42
|
-
# Offense count:
|
42
|
+
# Offense count: 4
|
43
43
|
# Cop supports --auto-correct.
|
44
44
|
# Configuration parameters: EnforcedStyle.
|
45
45
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
46
46
|
Layout/EmptyLinesAroundModuleBody:
|
47
47
|
Enabled: false
|
48
48
|
|
49
|
-
# Offense count:
|
49
|
+
# Offense count: 6
|
50
50
|
# Cop supports --auto-correct.
|
51
51
|
# Configuration parameters: Width, IgnoredPatterns.
|
52
52
|
Layout/IndentationWidth:
|
53
53
|
Enabled: false
|
54
54
|
|
55
|
-
# Offense count:
|
55
|
+
# Offense count: 9
|
56
56
|
# Cop supports --auto-correct.
|
57
57
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
58
58
|
# SupportedStyles: aligned, indented
|
59
59
|
Layout/MultilineOperationIndentation:
|
60
60
|
Enabled: false
|
61
61
|
|
62
|
-
# Offense count:
|
62
|
+
# Offense count: 5
|
63
63
|
# Cop supports --auto-correct.
|
64
64
|
Layout/SpaceAfterComma:
|
65
65
|
Enabled: false
|
66
66
|
|
67
|
-
# Offense count:
|
67
|
+
# Offense count: 28
|
68
68
|
# Cop supports --auto-correct.
|
69
|
-
# Configuration parameters: AllowForAlignment.
|
69
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
70
|
+
# SupportedStylesForExponentOperator: space, no_space
|
70
71
|
Layout/SpaceAroundOperators:
|
71
72
|
Enabled: false
|
72
73
|
|
73
|
-
# Offense count:
|
74
|
+
# Offense count: 54
|
74
75
|
# Cop supports --auto-correct.
|
75
76
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
76
77
|
# SupportedStyles: space, no_space, compact
|
@@ -78,7 +79,7 @@ Layout/SpaceAroundOperators:
|
|
78
79
|
Layout/SpaceInsideArrayLiteralBrackets:
|
79
80
|
Enabled: false
|
80
81
|
|
81
|
-
# Offense count:
|
82
|
+
# Offense count: 95
|
82
83
|
# Cop supports --auto-correct.
|
83
84
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
84
85
|
# SupportedStyles: space, no_space, compact
|
@@ -86,60 +87,54 @@ Layout/SpaceInsideArrayLiteralBrackets:
|
|
86
87
|
Layout/SpaceInsideHashLiteralBraces:
|
87
88
|
Enabled: false
|
88
89
|
|
89
|
-
# Offense count: 5
|
90
|
-
# Configuration parameters: MaximumRangeSize.
|
91
|
-
Lint/MissingCopEnableDirective:
|
92
|
-
Enabled: false
|
93
|
-
|
94
|
-
# Offense count: 1
|
95
|
-
# Cop supports --auto-correct.
|
96
|
-
Lint/UnneededCopDisableDirective:
|
97
|
-
Enabled: false
|
98
|
-
|
99
|
-
# Offense count: 1
|
100
|
-
# Cop supports --auto-correct.
|
101
|
-
Lint/UnneededCopEnableDirective:
|
102
|
-
Enabled: false
|
103
|
-
|
104
90
|
# Offense count: 10
|
105
91
|
# Cop supports --auto-correct.
|
106
92
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
107
93
|
Lint/UnusedBlockArgument:
|
108
94
|
Enabled: false
|
109
95
|
|
110
|
-
# Offense count:
|
96
|
+
# Offense count: 15
|
111
97
|
# Cop supports --auto-correct.
|
112
98
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
113
99
|
Lint/UnusedMethodArgument:
|
114
100
|
Enabled: false
|
115
101
|
|
116
|
-
# Offense count:
|
102
|
+
# Offense count: 4
|
117
103
|
Lint/UselessAssignment:
|
118
104
|
Enabled: false
|
119
105
|
|
120
|
-
# Offense count:
|
121
|
-
|
122
|
-
|
106
|
+
# Offense count: 1
|
107
|
+
Naming/AccessorMethodName:
|
108
|
+
Enabled: false
|
123
109
|
|
124
|
-
# Offense count:
|
125
|
-
# Configuration parameters:
|
126
|
-
#
|
127
|
-
|
128
|
-
|
110
|
+
# Offense count: 5
|
111
|
+
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
112
|
+
# 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
|
113
|
+
Naming/FileName:
|
114
|
+
Enabled: false
|
129
115
|
|
130
|
-
# Offense count:
|
131
|
-
|
116
|
+
# Offense count: 1
|
117
|
+
# Configuration parameters: ForbiddenDelimiters.
|
118
|
+
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
119
|
+
Naming/HeredocDelimiterNaming:
|
132
120
|
Enabled: false
|
133
121
|
|
134
|
-
# Offense count:
|
122
|
+
# Offense count: 2
|
135
123
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
136
|
-
# AllowedNames: io, id, to
|
137
|
-
Naming/
|
124
|
+
# AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
|
125
|
+
Naming/MethodParameterName:
|
138
126
|
Enabled: false
|
139
127
|
|
140
|
-
# Offense count:
|
128
|
+
# Offense count: 1
|
141
129
|
# Cop supports --auto-correct.
|
142
|
-
|
130
|
+
# Configuration parameters: PreferredName.
|
131
|
+
Naming/RescuedExceptionsVariableName:
|
132
|
+
Enabled: false
|
133
|
+
|
134
|
+
# Offense count: 1
|
135
|
+
# Configuration parameters: EnforcedStyle.
|
136
|
+
# SupportedStyles: snake_case, normalcase, non_integer
|
137
|
+
Naming/VariableNumber:
|
143
138
|
Enabled: false
|
144
139
|
|
145
140
|
# Offense count: 7
|
@@ -149,13 +144,18 @@ Rails/CreateTableWithTimestamps:
|
|
149
144
|
Enabled: false
|
150
145
|
|
151
146
|
# Offense count: 1
|
152
|
-
# Cop supports --auto-correct.
|
153
147
|
# Configuration parameters: EnforcedStyle.
|
154
|
-
# SupportedStyles:
|
155
|
-
Rails/
|
148
|
+
# SupportedStyles: strict, flexible
|
149
|
+
Rails/Date:
|
156
150
|
Enabled: false
|
157
151
|
|
158
|
-
# Offense count:
|
152
|
+
# Offense count: 13
|
153
|
+
# Configuration parameters: Include.
|
154
|
+
# Include: app/helpers/**/*.rb
|
155
|
+
Rails/HelperInstanceVariable:
|
156
|
+
Enabled: false
|
157
|
+
|
158
|
+
# Offense count: 13
|
159
159
|
# Configuration parameters: Include.
|
160
160
|
# Include: app/models/**/*.rb
|
161
161
|
Rails/InverseOf:
|
@@ -168,17 +168,36 @@ Rails/LexicallyScopedActionFilter:
|
|
168
168
|
Enabled: false
|
169
169
|
|
170
170
|
# Offense count: 1
|
171
|
-
#
|
172
|
-
|
171
|
+
# Configuration parameters: Include.
|
172
|
+
# Include: **/Rakefile, **/*.rake
|
173
|
+
Rails/RakeEnvironment:
|
173
174
|
Enabled: false
|
174
175
|
|
175
|
-
# Offense count:
|
176
|
+
# Offense count: 1
|
177
|
+
Rails/ReflectionClassName:
|
178
|
+
Enabled: false
|
179
|
+
|
180
|
+
# Offense count: 21
|
181
|
+
# Configuration parameters: Blacklist, Whitelist.
|
182
|
+
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
|
183
|
+
Rails/SkipsModelValidations:
|
184
|
+
Enabled: false
|
185
|
+
|
186
|
+
# Offense count: 6
|
187
|
+
# Cop supports --auto-correct.
|
176
188
|
# Configuration parameters: EnforcedStyle.
|
177
189
|
# SupportedStyles: strict, flexible
|
178
190
|
Rails/TimeZone:
|
179
191
|
Enabled: false
|
180
192
|
|
181
|
-
# Offense count:
|
193
|
+
# Offense count: 7
|
194
|
+
# Cop supports --auto-correct.
|
195
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
196
|
+
# SupportedStyles: nested, compact
|
197
|
+
Style/ClassAndModuleChildren:
|
198
|
+
Enabled: false
|
199
|
+
|
200
|
+
# Offense count: 2
|
182
201
|
# Cop supports --auto-correct.
|
183
202
|
# Configuration parameters: Keywords.
|
184
203
|
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
@@ -194,35 +213,39 @@ Style/DoubleNegation:
|
|
194
213
|
Style/Encoding:
|
195
214
|
Enabled: false
|
196
215
|
|
197
|
-
# Offense count:
|
216
|
+
# Offense count: 8
|
198
217
|
# Cop supports --auto-correct.
|
199
218
|
Style/ExpandPathArguments:
|
200
219
|
Enabled: false
|
201
220
|
|
202
|
-
# Offense count:
|
221
|
+
# Offense count: 12
|
222
|
+
# Cop supports --auto-correct.
|
223
|
+
# Configuration parameters: EnforcedStyle.
|
224
|
+
# SupportedStyles: format, sprintf, percent
|
225
|
+
Style/FormatString:
|
226
|
+
Enabled: false
|
227
|
+
|
228
|
+
# Offense count: 62
|
203
229
|
# Configuration parameters: EnforcedStyle.
|
204
230
|
# SupportedStyles: annotated, template, unannotated
|
205
231
|
Style/FormatStringToken:
|
206
232
|
Enabled: false
|
207
233
|
|
208
|
-
# Offense count:
|
209
|
-
#
|
210
|
-
|
211
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
212
|
-
Style/HashSyntax:
|
234
|
+
# Offense count: 21
|
235
|
+
# Configuration parameters: MinBodyLength.
|
236
|
+
Style/GuardClause:
|
213
237
|
Enabled: false
|
214
238
|
|
215
|
-
|
216
|
-
# Cop supports --auto-correct.
|
217
|
-
Style/IfUnlessModifier:
|
239
|
+
Style/HashEachMethods:
|
218
240
|
Enabled: false
|
219
241
|
|
220
|
-
|
221
|
-
# Cop supports --auto-correct.
|
222
|
-
Style/LineEndConcatenation:
|
242
|
+
Style/HashTransformKeys:
|
223
243
|
Enabled: false
|
224
244
|
|
225
|
-
|
245
|
+
Style/HashTransformValues:
|
246
|
+
Enabled: false
|
247
|
+
|
248
|
+
# Offense count: 26
|
226
249
|
# Cop supports --auto-correct.
|
227
250
|
# Configuration parameters: PreferredDelimiters.
|
228
251
|
Style/PercentLiteralDelimiters:
|
@@ -235,20 +258,37 @@ Style/PercentLiteralDelimiters:
|
|
235
258
|
Style/RaiseArgs:
|
236
259
|
Enabled: false
|
237
260
|
|
238
|
-
# Offense count:
|
261
|
+
# Offense count: 15
|
239
262
|
# Cop supports --auto-correct.
|
240
263
|
# Configuration parameters: AllowMultipleReturnValues.
|
241
264
|
Style/RedundantReturn:
|
242
265
|
Enabled: false
|
243
266
|
|
244
|
-
# Offense count:
|
267
|
+
# Offense count: 76
|
245
268
|
# Cop supports --auto-correct.
|
246
|
-
|
247
|
-
# SupportedStyles: single_quotes, double_quotes
|
248
|
-
Style/StringLiterals:
|
269
|
+
Style/RedundantSelf:
|
249
270
|
Enabled: false
|
250
271
|
|
251
|
-
# Offense count:
|
272
|
+
# Offense count: 3
|
273
|
+
# Cop supports --auto-correct.
|
274
|
+
Style/RescueModifier:
|
275
|
+
Enabled: false
|
276
|
+
|
277
|
+
# Offense count: 11
|
278
|
+
# Cop supports --auto-correct.
|
279
|
+
# Configuration parameters: EnforcedStyle.
|
280
|
+
# SupportedStyles: implicit, explicit
|
281
|
+
Style/RescueStandardError:
|
282
|
+
Enabled: false
|
283
|
+
|
284
|
+
# Offense count: 37
|
285
|
+
# Cop supports --auto-correct.
|
286
|
+
# Configuration parameters: MinSize.
|
287
|
+
# SupportedStyles: percent, brackets
|
288
|
+
Style/SymbolArray:
|
289
|
+
EnforcedStyle: brackets
|
290
|
+
|
291
|
+
# Offense count: 3
|
252
292
|
# Cop supports --auto-correct.
|
253
293
|
# Configuration parameters: IgnoredMethods.
|
254
294
|
# IgnoredMethods: respond_to, define_method
|