foreman_remote_execution 3.0.2 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) 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 +12 -7
  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 +5 -2
  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 +13 -10
  19. data/app/helpers/job_invocations_helper.rb +19 -6
  20. data/app/helpers/remote_execution_helper.rb +49 -48
  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/lib/proxy_api/remote_execution_ssh.rb +6 -0
  25. data/app/models/concerns/foreman_remote_execution/errors_flattener.rb +0 -2
  26. data/app/models/concerns/foreman_remote_execution/host_extensions.rb +4 -6
  27. data/app/models/concerns/foreman_remote_execution/nic_extensions.rb +1 -0
  28. data/app/models/concerns/foreman_remote_execution/orchestration/ssh.rb +63 -0
  29. data/app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb +5 -0
  30. data/app/models/foreign_input_set.rb +3 -2
  31. data/app/models/host_status/execution_status.rb +9 -1
  32. data/app/models/input_template_renderer.rb +1 -1
  33. data/app/models/job_invocation.rb +10 -12
  34. data/app/models/job_invocation_composer.rb +20 -14
  35. data/app/models/job_invocation_task_group.rb +1 -1
  36. data/app/models/job_template.rb +3 -3
  37. data/app/models/remote_execution_feature.rb +0 -2
  38. data/app/models/remote_execution_provider.rb +4 -2
  39. data/app/models/setting/remote_execution.rb +54 -56
  40. data/app/models/ssh_execution_provider.rb +2 -2
  41. data/app/models/targeting.rb +1 -0
  42. data/app/models/template_invocation.rb +2 -3
  43. data/app/views/api/v2/job_invocations/base.json.rabl +1 -1
  44. data/app/views/api/v2/job_invocations/main.json.rabl +7 -4
  45. data/app/views/job_invocations/_card_results.html.erb +1 -0
  46. data/app/views/job_invocations/_card_target_hosts.html.erb +12 -0
  47. data/app/views/job_invocations/_card_user_input.html.erb +1 -1
  48. data/app/views/job_invocations/_form.html.erb +3 -2
  49. data/app/views/job_invocations/_host_status_td.html.erb +1 -1
  50. data/app/views/job_invocations/_rerun_taxonomies.html.erb +22 -0
  51. data/app/views/job_invocations/_tab_overview.html.erb +1 -1
  52. data/app/views/job_invocations/_user_input.html.erb +1 -1
  53. data/app/views/job_invocations/show.html.erb +3 -1
  54. data/config/routes.rb +2 -1
  55. data/db/migrate/20151215114631_add_host_id_to_template_invocation.rb +1 -0
  56. data/db/migrate/20180110104432_rename_template_invocation_permission.rb +1 -0
  57. data/db/seeds.d/50-notification_blueprints.rb +4 -4
  58. data/db/seeds.d/90-bookmarks.rb +1 -0
  59. data/extra/cockpit/foreman-cockpit-session +7 -2
  60. data/foreman_remote_execution.gemspec +1 -1
  61. data/lib/foreman_remote_execution/engine.rb +20 -17
  62. data/lib/foreman_remote_execution/version.rb +1 -1
  63. data/locale/action_names.rb +4 -3
  64. data/locale/de/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  65. data/locale/de/foreman_remote_execution.po +65 -16
  66. data/locale/en/foreman_remote_execution.po +63 -15
  67. data/locale/en_GB/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  68. data/locale/en_GB/foreman_remote_execution.po +64 -15
  69. data/locale/es/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  70. data/locale/es/foreman_remote_execution.po +66 -17
  71. data/locale/foreman_remote_execution.pot +193 -148
  72. data/locale/fr/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  73. data/locale/fr/foreman_remote_execution.po +66 -17
  74. data/locale/ja/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  75. data/locale/ja/foreman_remote_execution.po +66 -17
  76. data/locale/ko/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  77. data/locale/ko/foreman_remote_execution.po +65 -15
  78. data/locale/pt_BR/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  79. data/locale/pt_BR/foreman_remote_execution.po +66 -17
  80. data/locale/ru/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  81. data/locale/ru/foreman_remote_execution.po +65 -18
  82. data/locale/zh_CN/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  83. data/locale/zh_CN/foreman_remote_execution.po +66 -17
  84. data/locale/zh_TW/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  85. data/locale/zh_TW/foreman_remote_execution.po +65 -16
  86. data/package.json +2 -3
  87. data/test/benchmark/run_hosts_job_benchmark.rb +1 -1
  88. data/test/factories/foreman_remote_execution_factories.rb +1 -1
  89. data/test/functional/api/v2/job_invocations_controller_test.rb +51 -23
  90. data/test/functional/api/v2/job_templates_controller_test.rb +1 -1
  91. data/test/functional/api/v2/remote_execution_features_controller_test.rb +2 -2
  92. data/test/functional/api/v2/template_invocations_controller_test.rb +4 -4
  93. data/test/functional/job_invocations_controller_test.rb +23 -11
  94. data/test/functional/job_templates_controller_test.rb +1 -1
  95. data/test/models/orchestration/ssh_test.rb +56 -0
  96. data/test/unit/actions/run_hosts_job_test.rb +8 -8
  97. data/test/unit/concerns/foreman_tasks_cleaner_extensions_test.rb +3 -3
  98. data/test/unit/concerns/host_extensions_test.rb +26 -19
  99. data/test/unit/concerns/nic_extensions_test.rb +1 -1
  100. data/test/unit/execution_task_status_mapper_test.rb +10 -10
  101. data/test/unit/input_template_renderer_test.rb +77 -77
  102. data/test/unit/job_invocation_composer_test.rb +100 -96
  103. data/test/unit/job_invocation_test.rb +29 -29
  104. data/test/unit/job_template_effective_user_test.rb +3 -3
  105. data/test/unit/job_template_test.rb +31 -31
  106. data/test/unit/remote_execution_feature_test.rb +19 -19
  107. data/test/unit/remote_execution_provider_test.rb +33 -30
  108. data/test/unit/renderer_scope_input.rb +6 -6
  109. data/test/unit/targeting_test.rb +6 -6
  110. data/test/unit/template_invocation_input_value_test.rb +3 -3
  111. data/webpack/index.js +0 -15
  112. metadata +8 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b508796a09bd44e8ded07627d4f73d9ca5f2f2ee7576ab2dab2bca47d2247f0f
4
- data.tar.gz: f5dfc0b4375e2ab8e14675f1f7c2c1d4e1b7906a9fe2d66a3a1aa387d678af59
3
+ metadata.gz: 19c80592b90b1ba20ac213bae2ff36e9608202161e29718a063d3ac52ed249b3
4
+ data.tar.gz: daa58fc0cfe1a9b788a49372c1d200579502331ef9e1f1424fa4a81270898a8b
5
5
  SHA512:
6
- metadata.gz: 9d7e2eed12d1517f46fbc5ba50c3c4fe5d1687334ec36e14c4ec3f3b103137c711f3059af1b4fa4b14d4828307e9b41fc4b2512d06476c6ad231c6706f8bbf11
7
- data.tar.gz: 43d0a7b3595298d50c47545c09e337f1bcf90399f56a5a16f6e95d755bc7d9d6ba80d6547c1caefd39cf3807d44237cf9494a12505e2b030249609dd5ebd2c59
6
+ metadata.gz: c3b9ee1922a5ece712f8f431eb84de7ab5793d5108fe4959ce690a0acd6edb14f21ab5135cc1b7bcf37d3fbe81af45731fe1900e1803683c131bc3dba13aa931
7
+ data.tar.gz: 5db356770b3017319ef2e4f0d1a16598025c9227b540661b2f3e6104f2bd522dbbfb351266eae0bc63d19667a2edc079de0136b50e648e6abddf973bbbe58ead
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