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.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.hound.yml +2 -1
  3. data/.rubocop.yml +80 -50
  4. data/.rubocop_todo.yml +113 -73
  5. data/Gemfile +4 -0
  6. data/app/controllers/api/v2/foreign_input_sets_controller.rb +3 -2
  7. data/app/controllers/api/v2/job_invocations_controller.rb +7 -6
  8. data/app/controllers/api/v2/job_templates_controller.rb +3 -2
  9. data/app/controllers/api/v2/remote_execution_features_controller.rb +3 -2
  10. data/app/controllers/api/v2/template_invocations_controller.rb +1 -1
  11. data/app/controllers/cockpit_controller.rb +1 -0
  12. data/app/controllers/concerns/foreman/controller/parameters/foreign_input_set.rb +1 -1
  13. data/app/controllers/concerns/foreman/controller/parameters/job_template.rb +4 -4
  14. data/app/controllers/job_invocations_controller.rb +10 -6
  15. data/app/controllers/job_templates_controller.rb +1 -1
  16. data/app/controllers/remote_execution_features_controller.rb +3 -2
  17. data/app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb +16 -5
  18. data/app/helpers/job_invocations_chart_helper.rb +11 -10
  19. data/app/helpers/job_invocations_helper.rb +13 -5
  20. data/app/helpers/remote_execution_helper.rb +43 -46
  21. data/app/lib/actions/remote_execution/run_host_job.rb +5 -6
  22. data/app/lib/actions/remote_execution/run_hosts_job.rb +2 -2
  23. data/app/lib/foreman_remote_execution/renderer/scope/input.rb +1 -0
  24. data/app/models/concerns/foreman_remote_execution/errors_flattener.rb +0 -2
  25. data/app/models/concerns/foreman_remote_execution/host_extensions.rb +3 -5
  26. data/app/models/concerns/foreman_remote_execution/nic_extensions.rb +1 -0
  27. data/app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb +1 -0
  28. data/app/models/foreign_input_set.rb +3 -2
  29. data/app/models/input_template_renderer.rb +1 -1
  30. data/app/models/job_invocation.rb +10 -12
  31. data/app/models/job_invocation_composer.rb +20 -14
  32. data/app/models/job_invocation_task_group.rb +1 -1
  33. data/app/models/job_template.rb +3 -3
  34. data/app/models/remote_execution_feature.rb +0 -2
  35. data/app/models/remote_execution_provider.rb +4 -2
  36. data/app/models/setting/remote_execution.rb +54 -56
  37. data/app/models/ssh_execution_provider.rb +2 -2
  38. data/app/models/targeting.rb +1 -0
  39. data/app/models/template_invocation.rb +2 -3
  40. data/app/views/api/v2/job_invocations/base.json.rabl +1 -1
  41. data/app/views/api/v2/job_invocations/main.json.rabl +5 -2
  42. data/app/views/job_invocations/_card_target_hosts.html.erb +12 -0
  43. data/app/views/job_invocations/_card_user_input.html.erb +1 -1
  44. data/app/views/job_invocations/_form.html.erb +3 -2
  45. data/app/views/job_invocations/_rerun_taxonomies.html.erb +22 -0
  46. data/app/views/job_invocations/_user_input.html.erb +1 -1
  47. data/app/views/job_invocations/show.html.erb +2 -0
  48. data/db/migrate/20151215114631_add_host_id_to_template_invocation.rb +1 -0
  49. data/db/migrate/20180110104432_rename_template_invocation_permission.rb +1 -0
  50. data/db/seeds.d/50-notification_blueprints.rb +4 -4
  51. data/db/seeds.d/90-bookmarks.rb +1 -0
  52. data/extra/cockpit/foreman-cockpit-session +7 -2
  53. data/lib/foreman_remote_execution/engine.rb +18 -17
  54. data/lib/foreman_remote_execution/version.rb +1 -1
  55. data/test/benchmark/run_hosts_job_benchmark.rb +1 -1
  56. data/test/factories/foreman_remote_execution_factories.rb +1 -1
  57. data/test/functional/api/v2/job_invocations_controller_test.rb +9 -9
  58. data/test/functional/api/v2/job_templates_controller_test.rb +1 -1
  59. data/test/functional/api/v2/remote_execution_features_controller_test.rb +2 -2
  60. data/test/functional/api/v2/template_invocations_controller_test.rb +4 -4
  61. data/test/functional/job_invocations_controller_test.rb +11 -11
  62. data/test/functional/job_templates_controller_test.rb +1 -1
  63. data/test/unit/actions/run_hosts_job_test.rb +8 -8
  64. data/test/unit/concerns/foreman_tasks_cleaner_extensions_test.rb +3 -3
  65. data/test/unit/concerns/host_extensions_test.rb +19 -19
  66. data/test/unit/concerns/nic_extensions_test.rb +1 -1
  67. data/test/unit/execution_task_status_mapper_test.rb +10 -10
  68. data/test/unit/input_template_renderer_test.rb +77 -77
  69. data/test/unit/job_invocation_composer_test.rb +100 -96
  70. data/test/unit/job_invocation_test.rb +29 -29
  71. data/test/unit/job_template_effective_user_test.rb +3 -3
  72. data/test/unit/job_template_test.rb +31 -31
  73. data/test/unit/remote_execution_feature_test.rb +19 -19
  74. data/test/unit/remote_execution_provider_test.rb +29 -29
  75. data/test/unit/renderer_scope_input.rb +6 -6
  76. data/test/unit/targeting_test.rb +6 -6
  77. data/test/unit/template_invocation_input_value_test.rb +3 -3
  78. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2777d0423d3991a7905e82695c6a1b5e4726e831d9ccb1afcb2b096e04ab2526
4
- data.tar.gz: 8c460357a1f5e5f502472fdf84b61a86da8aeef2a13f78d3cd6cc3adb8a9c4ca
3
+ metadata.gz: 36a15d0142caa911a59ff7d9797ceab5dabb0e601f605c0fee3d547d1be168f5
4
+ data.tar.gz: d41aba8d661cae6ef74cfee2bd9e007a37f218c3056e9d9b8ae3a1de5f243bc6
5
5
  SHA512:
6
- metadata.gz: 952dbb1462ba0a4ab9937737555259d37c0eaad0ec9d3cbb3876cf5cbd0d7c3e7c4f58dc734bc4e54f1c8c1d8e0159c96477846037ed94bc6c3586ccd9a51e69
7
- data.tar.gz: 16244d22bd7111fe1682b4d2e6bb5b62b791a9f69eb24e37456104253a675fd681a0cbf77eaa2efaa3a0b4ccb33828787a9a1dc1513665e8abb9f026c107084c
6
+ metadata.gz: 20d61e7658cda93e3f24340ae6caa65c1c7868f37e699d7e6a9da524f2acaef9cccdf86cd47a7d2a1386037ad5aac0900935f3c3b2b4706926f16e60245f1b64
7
+ data.tar.gz: 66e0c4b3af2d1feab711fe90b2af6a5ce08d4159501a1725a98243647a022431d871081bf2d1e82d46f8490c41589a1df6f15f2ee6f13391fb10df240bd41fe4
data/.hound.yml CHANGED
@@ -4,8 +4,9 @@ scss:
4
4
  stylelint:
5
5
  enabled: true
6
6
 
7
- ruby:
7
+ rubocop:
8
8
  config_file: .rubocop.yml
9
+ version: 0.80.0
9
10
 
10
11
  jshint:
11
12
  enabled: false
@@ -1,111 +1,141 @@
1
- inherit_from:
2
- - .rubocop_todo.yml
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
- - 'config/routes.rb'
7
- - 'node_modules/**'
8
- - 'test/**/*'
9
- - 'doc/plugins/**'
12
+ - 'node_modules/**/*'
10
13
 
11
- Rails:
12
- Enabled: true
13
- Exclude:
14
- - 'lib/foreman_remote_execution_core/**'
15
- - 'node_modules/**'
14
+ Bundler/OrderedGems:
15
+ Enabled: false
16
16
 
17
- Rails/Date:
17
+ Layout/ArgumentAlignment:
18
+ EnforcedStyle: with_fixed_indentation
19
+ IndentationWidth: 2
20
+
21
+ Layout/DotPosition:
18
22
  Enabled: false
19
23
 
20
- Metrics:
24
+ Layout/FirstArgumentIndentation:
25
+ EnforcedStyle: consistent
26
+
27
+ Layout/HashAlignment:
21
28
  Enabled: false
22
29
 
23
- Style/Documentation:
30
+ Layout/LineLength:
24
31
  Enabled: false
25
32
 
26
- Style/TrailingCommaInArrayLiteral:
33
+ Layout/ParameterAlignment:
27
34
  Enabled: false
28
35
 
29
- Style/TrailingCommaInHashLiteral:
36
+ Lint/BooleanSymbol:
30
37
  Enabled: false
31
38
 
32
- #Style/TrailingCommaInArguments:
33
- #Enabled: false
39
+ Metrics:
40
+ Enabled: false
34
41
 
35
- Naming/AccessorMethodName:
42
+ Performance/Casecmp:
36
43
  Enabled: false
37
44
 
38
- Style/RedundantSelf:
45
+ Performance/RedundantMatch:
46
+ Enabled: true
47
+
48
+ Performance/RedundantMerge:
49
+ Enabled: true
50
+
51
+ Performance/RegexpMatch:
39
52
  Enabled: false
40
53
 
41
- Naming/FileName:
54
+ Rails:
42
55
  Exclude:
43
- - 'db/seeds.d/*'
44
- - 'node_modules/font-awesome-sass/lib/font-awesome-sass.rb'
56
+ - 'lib/foreman_remote_execution_core/**/*'
57
+ - 'lib/foreman_remote_execution_core.rb'
45
58
 
46
- Style/WordArray:
47
- Enabled: false
59
+ Rails/Blank:
60
+ UnlessPresent: false
48
61
 
49
- Style/BracesAroundHashParameters:
62
+ # Won't work with sqlite
63
+ Rails/BulkChangeTable:
50
64
  Enabled: false
51
65
 
52
- Style/RescueModifier:
66
+ Rails/RefuteMethods:
53
67
  Enabled: false
54
68
 
55
- Style/ClassAndModuleChildren:
56
- Enabled: false
69
+ Style/Alias:
70
+ EnforcedStyle: prefer_alias_method
71
+
72
+ Style/AndOr:
73
+ EnforcedStyle: conditionals
57
74
 
58
- Style/EachWithObject:
75
+ # Don't prefer is_a? over kind_of?
76
+ Style/ClassCheck:
59
77
  Enabled: false
60
78
 
61
- Style/GuardClause:
79
+ # Don't enforce certain methods, e.g. detect over find
80
+ Style/CollectionMethods:
62
81
  Enabled: false
63
82
 
64
- Naming/VariableNumber:
83
+ Style/ConditionalAssignment:
65
84
  Enabled: false
66
85
 
67
- # a == 0 is not the same as a.zero?, when a is not a number
68
- Style/NumericPredicate:
86
+ # Don't enforce documentation
87
+ Style/Documentation:
69
88
  Enabled: false
70
89
 
71
- Style/FormatStringToken:
72
- EnforcedStyle: template
90
+ Style/EmptyMethod:
91
+ EnforcedStyle: expanded
73
92
 
74
- Rails/SkipsModelValidations:
93
+ # Don't enforce frozen string literals
94
+ Style/FrozenStringLiteralComment:
75
95
  Enabled: false
76
96
 
77
- Style/SymbolArray:
97
+ # Support both, Ruby 1.9 hashmap and hash-rocket syntax
98
+ Style/HashSyntax:
78
99
  Enabled: false
79
100
 
80
- Style/FormatString:
101
+ Style/IfUnlessModifier:
81
102
  Enabled: false
82
103
 
83
- Naming/HeredocDelimiterNaming:
104
+ Style/InverseMethods:
84
105
  Enabled: false
85
106
 
86
- Style/RescueStandardError:
107
+ # disabled until we can configure "+" as concat sign
108
+ Style/LineEndConcatenation:
87
109
  Enabled: false
88
110
 
89
- Style/SafeNavigation:
111
+ Style/MultipleComparison:
90
112
  Enabled: false
91
113
 
92
- Lint/BooleanSymbol:
114
+ Style/NumericPredicate:
93
115
  Enabled: false
94
116
 
95
- Style/FrozenStringLiteralComment:
117
+ Style/ParallelAssignment:
96
118
  Enabled: false
97
119
 
98
- Layout/EmptyLineAfterGuardClause:
120
+ Style/ParenthesesAroundCondition:
99
121
  Enabled: false
100
122
 
101
- Layout/AlignHash:
123
+ Style/PreferredHashMethods:
102
124
  Enabled: false
103
125
 
104
- Rails/ReflectionClassName:
126
+ # Both double and single quotes are OK
127
+ Style/StringLiterals:
105
128
  Enabled: false
106
129
 
107
- Rails/HelperInstanceVariable:
108
- Enabled: false
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
- Naming/RescuedExceptionsVariableName:
139
+ #Allow both ['a', 'b'], %w[a b] and %w(a b) style arrays
140
+ Style/WordArray:
111
141
  Enabled: false
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config --exclude-limit 0`
3
- # on 2018-04-02 18:24:49 +0200 using RuboCop version 0.54.0.
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: Include, TreatCommentsAsGroupSeparators.
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
12
12
  # Include: **/*.gemspec
13
13
  Gemspec/OrderedDependencies:
14
14
  Enabled: false
15
15
 
16
- # Offense count: 17
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: 6
23
+ # Offense count: 4
24
24
  # Cop supports --auto-correct.
25
25
  Layout/EmptyLines:
26
26
  Enabled: false
27
27
 
28
- # Offense count: 7
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: 3
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: 1
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: 8
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: 1
62
+ # Offense count: 5
63
63
  # Cop supports --auto-correct.
64
64
  Layout/SpaceAfterComma:
65
65
  Enabled: false
66
66
 
67
- # Offense count: 4
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: 46
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: 85
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: 14
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: 1
102
+ # Offense count: 4
117
103
  Lint/UselessAssignment:
118
104
  Enabled: false
119
105
 
120
- # Offense count: 5
121
- Metrics/CyclomaticComplexity:
122
- Max: 8
106
+ # Offense count: 1
107
+ Naming/AccessorMethodName:
108
+ Enabled: false
123
109
 
124
- # Offense count: 940
125
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
126
- # URISchemes: http, https
127
- Metrics/LineLength:
128
- Max: 204
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: 2
131
- Naming/MemoizedInstanceVariableName:
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: 3
122
+ # Offense count: 2
135
123
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
136
- # AllowedNames: io, id, to
137
- Naming/UncommunicativeMethodParamName:
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: 15
128
+ # Offense count: 1
141
129
  # Cop supports --auto-correct.
142
- Rails/ActiveRecordAliases:
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: numeric, symbolic
155
- Rails/HttpStatus:
148
+ # SupportedStyles: strict, flexible
149
+ Rails/Date:
156
150
  Enabled: false
157
151
 
158
- # Offense count: 23
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
- # Cop supports --auto-correct.
172
- Rails/Presence:
171
+ # Configuration parameters: Include.
172
+ # Include: **/Rakefile, **/*.rake
173
+ Rails/RakeEnvironment:
173
174
  Enabled: false
174
175
 
175
- # Offense count: 3
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: 3
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: 7
216
+ # Offense count: 8
198
217
  # Cop supports --auto-correct.
199
218
  Style/ExpandPathArguments:
200
219
  Enabled: false
201
220
 
202
- # Offense count: 15
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: 1527
209
- # Cop supports --auto-correct.
210
- # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
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
- # Offense count: 17
216
- # Cop supports --auto-correct.
217
- Style/IfUnlessModifier:
239
+ Style/HashEachMethods:
218
240
  Enabled: false
219
241
 
220
- # Offense count: 12
221
- # Cop supports --auto-correct.
222
- Style/LineEndConcatenation:
242
+ Style/HashTransformKeys:
223
243
  Enabled: false
224
244
 
225
- # Offense count: 22
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: 14
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: 5
267
+ # Offense count: 76
245
268
  # Cop supports --auto-correct.
246
- # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
247
- # SupportedStyles: single_quotes, double_quotes
248
- Style/StringLiterals:
269
+ Style/RedundantSelf:
249
270
  Enabled: false
250
271
 
251
- # Offense count: 2
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