foreman_remote_execution 3.0.2 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/.eslintrc +5 -30
  3. data/.gitignore +1 -0
  4. data/.hound.yml +2 -6
  5. data/.rubocop.yml +80 -50
  6. data/.rubocop_todo.yml +113 -73
  7. data/.travis.yml +2 -3
  8. data/Gemfile +4 -0
  9. data/app/controllers/api/v2/foreign_input_sets_controller.rb +3 -2
  10. data/app/controllers/api/v2/job_invocations_controller.rb +7 -6
  11. data/app/controllers/api/v2/job_templates_controller.rb +3 -2
  12. data/app/controllers/api/v2/remote_execution_features_controller.rb +3 -2
  13. data/app/controllers/api/v2/template_invocations_controller.rb +1 -1
  14. data/app/controllers/cockpit_controller.rb +1 -0
  15. data/app/controllers/concerns/foreman/controller/parameters/foreign_input_set.rb +1 -1
  16. data/app/controllers/concerns/foreman/controller/parameters/job_template.rb +4 -4
  17. data/app/controllers/job_invocations_controller.rb +10 -6
  18. data/app/controllers/job_templates_controller.rb +1 -1
  19. data/app/controllers/remote_execution_features_controller.rb +3 -2
  20. data/app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb +16 -5
  21. data/app/helpers/job_invocations_chart_helper.rb +13 -10
  22. data/app/helpers/job_invocations_helper.rb +18 -5
  23. data/app/helpers/remote_execution_helper.rb +49 -48
  24. data/app/lib/actions/remote_execution/run_host_job.rb +8 -8
  25. data/app/lib/actions/remote_execution/run_hosts_job.rb +2 -2
  26. data/app/lib/foreman_remote_execution/renderer/scope/input.rb +1 -0
  27. data/app/lib/proxy_api/remote_execution_ssh.rb +6 -0
  28. data/app/models/concerns/foreman_remote_execution/errors_flattener.rb +0 -2
  29. data/app/models/concerns/foreman_remote_execution/host_extensions.rb +3 -5
  30. data/app/models/concerns/foreman_remote_execution/nic_extensions.rb +1 -0
  31. data/app/models/concerns/foreman_remote_execution/orchestration/ssh.rb +61 -0
  32. data/app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb +5 -0
  33. data/app/models/foreign_input_set.rb +3 -2
  34. data/app/models/host_status/execution_status.rb +9 -1
  35. data/app/models/input_template_renderer.rb +1 -1
  36. data/app/models/job_invocation.rb +10 -12
  37. data/app/models/job_invocation_composer.rb +20 -14
  38. data/app/models/job_invocation_task_group.rb +1 -1
  39. data/app/models/job_template.rb +3 -3
  40. data/app/models/remote_execution_feature.rb +0 -2
  41. data/app/models/remote_execution_provider.rb +9 -2
  42. data/app/models/setting/remote_execution.rb +54 -56
  43. data/app/models/ssh_execution_provider.rb +2 -2
  44. data/app/models/targeting.rb +1 -0
  45. data/app/models/template_invocation.rb +2 -3
  46. data/app/services/default_proxy_proxy_selector.rb +18 -0
  47. data/app/views/api/v2/job_invocations/base.json.rabl +1 -1
  48. data/app/views/api/v2/job_invocations/main.json.rabl +5 -2
  49. data/app/views/job_invocations/_card_results.html.erb +1 -0
  50. data/app/views/job_invocations/_card_target_hosts.html.erb +12 -0
  51. data/app/views/job_invocations/_card_user_input.html.erb +1 -1
  52. data/app/views/job_invocations/_form.html.erb +3 -2
  53. data/app/views/job_invocations/_host_status_td.html.erb +1 -1
  54. data/app/views/job_invocations/_rerun_taxonomies.html.erb +22 -0
  55. data/app/views/job_invocations/_tab_overview.html.erb +1 -1
  56. data/app/views/job_invocations/_user_input.html.erb +1 -1
  57. data/app/views/job_invocations/show.html.erb +3 -1
  58. data/config/routes.rb +2 -1
  59. data/db/migrate/20151215114631_add_host_id_to_template_invocation.rb +1 -0
  60. data/db/migrate/20180110104432_rename_template_invocation_permission.rb +1 -0
  61. data/db/seeds.d/50-notification_blueprints.rb +4 -4
  62. data/db/seeds.d/70-job_templates.rb +1 -1
  63. data/db/seeds.d/90-bookmarks.rb +1 -0
  64. data/extra/cockpit/foreman-cockpit-session +7 -2
  65. data/foreman_remote_execution.gemspec +1 -1
  66. data/lib/foreman_remote_execution/engine.rb +20 -17
  67. data/lib/foreman_remote_execution/version.rb +1 -1
  68. data/locale/action_names.rb +4 -3
  69. data/locale/de/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  70. data/locale/de/foreman_remote_execution.po +65 -16
  71. data/locale/en/foreman_remote_execution.po +63 -15
  72. data/locale/en_GB/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  73. data/locale/en_GB/foreman_remote_execution.po +64 -15
  74. data/locale/es/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  75. data/locale/es/foreman_remote_execution.po +66 -17
  76. data/locale/foreman_remote_execution.pot +193 -148
  77. data/locale/fr/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  78. data/locale/fr/foreman_remote_execution.po +66 -17
  79. data/locale/ja/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  80. data/locale/ja/foreman_remote_execution.po +66 -17
  81. data/locale/ko/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  82. data/locale/ko/foreman_remote_execution.po +65 -15
  83. data/locale/pt_BR/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  84. data/locale/pt_BR/foreman_remote_execution.po +66 -17
  85. data/locale/ru/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  86. data/locale/ru/foreman_remote_execution.po +65 -18
  87. data/locale/zh_CN/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  88. data/locale/zh_CN/foreman_remote_execution.po +66 -17
  89. data/locale/zh_TW/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  90. data/locale/zh_TW/foreman_remote_execution.po +65 -16
  91. data/package.json +16 -34
  92. data/test/benchmark/run_hosts_job_benchmark.rb +1 -1
  93. data/test/factories/foreman_remote_execution_factories.rb +1 -1
  94. data/test/functional/api/v2/job_invocations_controller_test.rb +9 -9
  95. data/test/functional/api/v2/job_templates_controller_test.rb +1 -1
  96. data/test/functional/api/v2/remote_execution_features_controller_test.rb +2 -2
  97. data/test/functional/api/v2/template_invocations_controller_test.rb +4 -4
  98. data/test/functional/job_invocations_controller_test.rb +23 -11
  99. data/test/functional/job_templates_controller_test.rb +1 -1
  100. data/test/models/orchestration/ssh_test.rb +24 -0
  101. data/test/unit/actions/run_hosts_job_test.rb +8 -8
  102. data/test/unit/concerns/foreman_tasks_cleaner_extensions_test.rb +3 -3
  103. data/test/unit/concerns/host_extensions_test.rb +19 -19
  104. data/test/unit/concerns/nic_extensions_test.rb +1 -1
  105. data/test/unit/execution_task_status_mapper_test.rb +10 -10
  106. data/test/unit/input_template_renderer_test.rb +77 -77
  107. data/test/unit/job_invocation_composer_test.rb +100 -96
  108. data/test/unit/job_invocation_test.rb +29 -29
  109. data/test/unit/job_template_effective_user_test.rb +3 -3
  110. data/test/unit/job_template_test.rb +31 -31
  111. data/test/unit/remote_execution_feature_test.rb +19 -19
  112. data/test/unit/remote_execution_provider_test.rb +33 -30
  113. data/test/unit/renderer_scope_input.rb +6 -6
  114. data/test/unit/targeting_test.rb +6 -6
  115. data/test/unit/template_invocation_input_value_test.rb +3 -3
  116. data/webpack/index.js +1 -17
  117. data/webpack/react_app/components/jobInvocations/AggregateStatus/index.js +10 -0
  118. data/webpack/react_app/components/jobInvocations/AggregateStatus/index.test.js +6 -3
  119. data/webpack/react_app/components/jobInvocations/index.js +19 -7
  120. data/webpack/react_app/redux/actions/jobInvocations/index.js +12 -8
  121. data/webpack/react_app/redux/consts.js +1 -2
  122. data/webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js +8 -40
  123. data/webpack/react_app/redux/reducers/jobInvocations/index.test.js +17 -11
  124. data/webpack/test_setup.js +2 -1
  125. metadata +10 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b508796a09bd44e8ded07627d4f73d9ca5f2f2ee7576ab2dab2bca47d2247f0f
4
- data.tar.gz: f5dfc0b4375e2ab8e14675f1f7c2c1d4e1b7906a9fe2d66a3a1aa387d678af59
3
+ metadata.gz: d00f4722f74258ad947432c2d8104522d3fb53749f7bac4e7c52914862af3ecc
4
+ data.tar.gz: 187645d51578339523b94fb83fe781cba865477a616c2d8c0980255be1fd0377
5
5
  SHA512:
6
- metadata.gz: 9d7e2eed12d1517f46fbc5ba50c3c4fe5d1687334ec36e14c4ec3f3b103137c711f3059af1b4fa4b14d4828307e9b41fc4b2512d06476c6ad231c6706f8bbf11
7
- data.tar.gz: 43d0a7b3595298d50c47545c09e337f1bcf90399f56a5a16f6e95d755bc7d9d6ba80d6547c1caefd39cf3807d44237cf9494a12505e2b030249609dd5ebd2c59
6
+ metadata.gz: 04c6a44e96bb03d75310d7dd48acd249503f04778c62f520d1101bf4719d195c2cd4d11e9a6ae63c97e24d8cbd50884dd090ec56a54aff933ee19f3379bbeec1
7
+ data.tar.gz: 165ba49b54b18ed4128c7b72a53ef52fea60f6f9a619ee7bd0a22545910cf68997b763e27f3569892b20dd528e70236c44b241c1d1b6c5fcec15a5a21f76af7e
data/.eslintrc CHANGED
@@ -1,32 +1,7 @@
1
1
  {
2
- "root": true,
3
- "extends": ["airbnb-base", "./node_modules/@theforeman/vendor-dev/eslint.extends.js"],
4
- "plugins": [
5
- "react"
6
- ],
7
- "env": {
8
- "browser": true,
9
- "es6": true,
10
- "node": true,
11
- "jasmine": true,
12
- "jest": true
13
- },
14
- "parser": "babel-eslint",
15
- "rules": {
16
- "react/jsx-uses-vars": "error",
17
- "react/jsx-uses-react": "error",
18
- "no-unused-vars": [
19
- "error",
20
- {
21
- "vars": "all",
22
- "args": "none"
23
- }
24
- ],
25
- "no-underscore-dangle": "off",
26
- "no-use-before-define": "off",
27
- "import/prefer-default-export": "off",
28
- // Import rules off for now due to HoundCI issue
29
- "import/no-unresolved": "off",
30
- "import/extensions": "off"
31
- }
2
+ "plugins": ["@theforeman/foreman"],
3
+ "extends": [
4
+ "plugin:@theforeman/foreman/core",
5
+ "plugin:@theforeman/foreman/plugins"
6
+ ]
32
7
  }
data/.gitignore CHANGED
@@ -14,3 +14,4 @@ locale/*/*.po.time_stamp
14
14
  Gemfile.lock
15
15
  node_modules/
16
16
  package-lock.json
17
+ coverage/
data/.hound.yml CHANGED
@@ -4,15 +4,11 @@ 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
12
13
 
13
- eslint:
14
- enabled: true
15
- config_file: .eslintrc
16
- ignore_file: .eslintignore
17
-
18
14
  fail_on_violations: true
@@ -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