cookstyle 6.21.1 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (226) hide show
  1. checksums.yaml +4 -4
  2. data/config/cookstyle.yml +235 -236
  3. data/config/disable_all.yml +14 -0
  4. data/config/upstream.yml +111 -57
  5. data/lib/cookstyle/version.rb +2 -2
  6. data/lib/rubocop/cop/chef/correctness/block_guard_clause_string_only.rb +1 -1
  7. data/lib/rubocop/cop/chef/correctness/chef_application_fatal.rb +1 -1
  8. data/lib/rubocop/cop/chef/correctness/conditional_ruby_shellout.rb +1 -1
  9. data/lib/rubocop/cop/chef/correctness/dnf_package_allow_downgrades.rb +1 -1
  10. data/lib/rubocop/cop/chef/correctness/incorrect_library_injection.rb +1 -1
  11. data/lib/rubocop/cop/chef/correctness/invalid_default_action.rb +1 -1
  12. data/lib/rubocop/cop/chef/correctness/invalid_notification_timing.rb +1 -1
  13. data/lib/rubocop/cop/chef/correctness/invalid_platform_family_helper.rb +1 -1
  14. data/lib/rubocop/cop/chef/correctness/invalid_platform_family_values_in_case.rb +1 -1
  15. data/lib/rubocop/cop/chef/correctness/invalid_platform_helper.rb +1 -1
  16. data/lib/rubocop/cop/chef/correctness/invalid_platform_metadata.rb +1 -1
  17. data/lib/rubocop/cop/chef/correctness/invalid_platform_values_in_case.rb +1 -1
  18. data/lib/rubocop/cop/chef/correctness/invalid_value_for_platform_family_helper.rb +1 -1
  19. data/lib/rubocop/cop/chef/correctness/invalid_value_for_platform_helper.rb +1 -1
  20. data/lib/rubocop/cop/chef/correctness/invalid_version_metadata.rb +1 -1
  21. data/lib/rubocop/cop/chef/correctness/lazy_eval_node_attribute_defaults.rb +1 -1
  22. data/lib/rubocop/cop/chef/correctness/lazy_in_resource_guard.rb +1 -1
  23. data/lib/rubocop/cop/chef/correctness/macos_userdefaults_invalid_type.rb +1 -1
  24. data/lib/rubocop/cop/chef/correctness/malformed_value_for_platform.rb +1 -1
  25. data/lib/rubocop/cop/chef/correctness/metadata_missing_name.rb +1 -1
  26. data/lib/rubocop/cop/chef/correctness/node_normal.rb +1 -1
  27. data/lib/rubocop/cop/chef/correctness/node_normal_unless.rb +1 -1
  28. data/lib/rubocop/cop/chef/correctness/node_save.rb +1 -1
  29. data/lib/rubocop/cop/chef/correctness/notifies_action_not_symbol.rb +1 -1
  30. data/lib/rubocop/cop/chef/correctness/octal_mode_as_string.rb +1 -1
  31. data/lib/rubocop/cop/chef/correctness/openssl_password_helpers.rb +1 -1
  32. data/lib/rubocop/cop/chef/correctness/powershell_delete_file.rb +1 -1
  33. data/lib/rubocop/cop/chef/correctness/property_without_type.rb +1 -1
  34. data/lib/rubocop/cop/chef/correctness/resource_sets_internal_properties.rb +1 -1
  35. data/lib/rubocop/cop/chef/correctness/resource_sets_name_property.rb +1 -1
  36. data/lib/rubocop/cop/chef/correctness/resource_with_none_action.rb +1 -1
  37. data/lib/rubocop/cop/chef/correctness/scoped_file_exist.rb +1 -1
  38. data/lib/rubocop/cop/chef/correctness/service_resource.rb +1 -1
  39. data/lib/rubocop/cop/chef/correctness/supports_must_be_float.rb +1 -1
  40. data/lib/rubocop/cop/chef/correctness/tmp_path.rb +1 -1
  41. data/lib/rubocop/cop/chef/deprecation/ use_automatic_resource_name.rb +1 -1
  42. data/lib/rubocop/cop/chef/deprecation/cb_depends_on_self.rb +1 -1
  43. data/lib/rubocop/cop/chef/deprecation/chef_handler_recipe.rb +1 -1
  44. data/lib/rubocop/cop/chef/deprecation/chef_handler_supports.rb +1 -1
  45. data/lib/rubocop/cop/chef/deprecation/chef_rest.rb +1 -1
  46. data/lib/rubocop/cop/chef/deprecation/chef_rewind.rb +1 -1
  47. data/lib/rubocop/cop/chef/deprecation/chef_shellout.rb +1 -1
  48. data/lib/rubocop/cop/chef/deprecation/chef_windows_platform_helper.rb +1 -1
  49. data/lib/rubocop/cop/chef/deprecation/chefdk_generators.rb +1 -1
  50. data/lib/rubocop/cop/chef/deprecation/cheffile.rb +1 -1
  51. data/lib/rubocop/cop/chef/deprecation/chefspec_coverage_report.rb +1 -1
  52. data/lib/rubocop/cop/chef/deprecation/chefspec_legacy_runner.rb +1 -1
  53. data/lib/rubocop/cop/chef/deprecation/chocolatey_package_uninstall_action.rb +1 -1
  54. data/lib/rubocop/cop/chef/deprecation/depends_compat_resource.rb +1 -1
  55. data/lib/rubocop/cop/chef/deprecation/depends_partial_search.rb +1 -1
  56. data/lib/rubocop/cop/chef/deprecation/depends_poise.rb +1 -1
  57. data/lib/rubocop/cop/chef/deprecation/deprecated_chefspec_platform.rb +1 -1
  58. data/lib/rubocop/cop/chef/deprecation/deprecated_mixins.rb +1 -1
  59. data/lib/rubocop/cop/chef/deprecation/deprecated_platform_methods.rb +1 -1
  60. data/lib/rubocop/cop/chef/deprecation/deprecated_shellout_methods.rb +1 -1
  61. data/lib/rubocop/cop/chef/deprecation/deprecated_windows_version_check.rb +1 -1
  62. data/lib/rubocop/cop/chef/deprecation/deprecated_yum_repository_properties.rb +1 -1
  63. data/lib/rubocop/cop/chef/deprecation/easy_install.rb +1 -1
  64. data/lib/rubocop/cop/chef/deprecation/eol_audit_mode.rb +1 -1
  65. data/lib/rubocop/cop/chef/deprecation/epic_fail.rb +1 -1
  66. data/lib/rubocop/cop/chef/deprecation/erl_call.rb +1 -1
  67. data/lib/rubocop/cop/chef/deprecation/execute_path_property.rb +1 -1
  68. data/lib/rubocop/cop/chef/deprecation/execute_relative_creates_without_cwd.rb +1 -1
  69. data/lib/rubocop/cop/chef/deprecation/hwrp_without_provides.rb +1 -1
  70. data/lib/rubocop/cop/chef/deprecation/inherits_compat_resource.rb +1 -1
  71. data/lib/rubocop/cop/chef/deprecation/launchd_deprecated_hash_property.rb +1 -1
  72. data/lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb +1 -1
  73. data/lib/rubocop/cop/chef/deprecation/legacy_yum_cookbook_recipes.rb +1 -1
  74. data/lib/rubocop/cop/chef/deprecation/locale_lc_all_property.rb +1 -1
  75. data/lib/rubocop/cop/chef/deprecation/log_resource_notifications.rb +3 -3
  76. data/lib/rubocop/cop/chef/deprecation/macos_userdefaults_global_property.rb +1 -1
  77. data/lib/rubocop/cop/chef/deprecation/name_property_and_default.rb +1 -1
  78. data/lib/rubocop/cop/chef/deprecation/node_deep_fetch.rb +1 -1
  79. data/lib/rubocop/cop/chef/deprecation/node_methods_not_attributes.rb +1 -1
  80. data/lib/rubocop/cop/chef/deprecation/node_set.rb +1 -1
  81. data/lib/rubocop/cop/chef/deprecation/node_set_unless.rb +1 -1
  82. data/lib/rubocop/cop/chef/deprecation/node_set_without_level.rb +1 -1
  83. data/lib/rubocop/cop/chef/deprecation/partial_search_class_usage.rb +1 -1
  84. data/lib/rubocop/cop/chef/deprecation/partial_search_helper_usage.rb +1 -1
  85. data/lib/rubocop/cop/chef/deprecation/poise_archive.rb +1 -1
  86. data/lib/rubocop/cop/chef/deprecation/powershell_cookbook_helpers.rb +1 -1
  87. data/lib/rubocop/cop/chef/deprecation/require_recipe.rb +1 -1
  88. data/lib/rubocop/cop/chef/deprecation/resource_overrides_provides_method.rb +1 -1
  89. data/lib/rubocop/cop/chef/deprecation/resource_uses_dsl_name_method.rb +1 -1
  90. data/lib/rubocop/cop/chef/deprecation/resource_uses_only_resource_name.rb +1 -1
  91. data/lib/rubocop/cop/chef/deprecation/resource_uses_provider_base_method.rb +1 -1
  92. data/lib/rubocop/cop/chef/deprecation/resource_uses_updated_method.rb +1 -1
  93. data/lib/rubocop/cop/chef/deprecation/ruby_27_keyword_argument_warnings.rb +1 -1
  94. data/lib/rubocop/cop/chef/deprecation/ruby_block_create_action.rb +1 -1
  95. data/lib/rubocop/cop/chef/deprecation/run_command_helper.rb +1 -1
  96. data/lib/rubocop/cop/chef/deprecation/search_uses_positional_parameters.rb +1 -1
  97. data/lib/rubocop/cop/chef/deprecation/use_inline_resources.rb +1 -1
  98. data/lib/rubocop/cop/chef/deprecation/use_yaml_dump.rb +1 -1
  99. data/lib/rubocop/cop/chef/deprecation/user_supports_property.rb +1 -1
  100. data/lib/rubocop/cop/chef/deprecation/verify_property_file_expansion.rb +1 -1
  101. data/lib/rubocop/cop/chef/deprecation/windows_feature_servermanagercmd.rb +1 -1
  102. data/lib/rubocop/cop/chef/deprecation/windows_package_installer_type_string.rb +1 -1
  103. data/lib/rubocop/cop/chef/deprecation/windows_task_change_action.rb +1 -1
  104. data/lib/rubocop/cop/chef/deprecation/windows_version_helpers.rb +1 -1
  105. data/lib/rubocop/cop/chef/deprecation/xml_ruby_recipe.rb +1 -1
  106. data/lib/rubocop/cop/chef/deprecation/yum_dnf_compat_recipe.rb +1 -1
  107. data/lib/rubocop/cop/chef/effortless/berksfile.rb +1 -1
  108. data/lib/rubocop/cop/chef/effortless/chef_vault_used.rb +1 -1
  109. data/lib/rubocop/cop/chef/effortless/data_bags.rb +1 -1
  110. data/lib/rubocop/cop/chef/effortless/depends_chef_vault.rb +1 -1
  111. data/lib/rubocop/cop/chef/effortless/node_environment.rb +1 -1
  112. data/lib/rubocop/cop/chef/effortless/node_policygroup.rb +1 -1
  113. data/lib/rubocop/cop/chef/effortless/node_roles.rb +1 -1
  114. data/lib/rubocop/cop/chef/effortless/search_for_environments_or_roles.rb +1 -1
  115. data/lib/rubocop/cop/chef/effortless/search_used.rb +1 -1
  116. data/lib/rubocop/cop/chef/modernize/action_method_in_resource.rb +1 -1
  117. data/lib/rubocop/cop/chef/modernize/allowed_actions_initializer.rb +1 -1
  118. data/lib/rubocop/cop/chef/modernize/apt_default_recipe.rb +1 -1
  119. data/lib/rubocop/cop/chef/modernize/berksfile_source.rb +1 -1
  120. data/lib/rubocop/cop/chef/modernize/build_essential.rb +1 -1
  121. data/lib/rubocop/cop/chef/modernize/chef_14_resources.rb +1 -1
  122. data/lib/rubocop/cop/chef/modernize/chef_gem_nokogiri.rb +1 -1
  123. data/lib/rubocop/cop/chef/modernize/compile_time_resources.rb +1 -1
  124. data/lib/rubocop/cop/chef/modernize/conditional_using_test.rb +1 -1
  125. data/lib/rubocop/cop/chef/modernize/cron_d_file_or_template.rb +1 -1
  126. data/lib/rubocop/cop/chef/modernize/cron_manage_resource.rb +1 -1
  127. data/lib/rubocop/cop/chef/modernize/databag_helpers.rb +1 -1
  128. data/lib/rubocop/cop/chef/modernize/default_action_initializer.rb +1 -1
  129. data/lib/rubocop/cop/chef/modernize/defines_chefspec_matchers.rb +1 -1
  130. data/lib/rubocop/cop/chef/modernize/definitions.rb +1 -1
  131. data/lib/rubocop/cop/chef/modernize/depends_zypper_cookbook.rb +1 -1
  132. data/lib/rubocop/cop/chef/modernize/dsl_include_in_resource.rb +1 -1
  133. data/lib/rubocop/cop/chef/modernize/empty_resource_initialize.rb +1 -1
  134. data/lib/rubocop/cop/chef/modernize/execute_apt_update.rb +1 -1
  135. data/lib/rubocop/cop/chef/modernize/execute_sc_exe.rb +1 -1
  136. data/lib/rubocop/cop/chef/modernize/execute_sleep.rb +1 -1
  137. data/lib/rubocop/cop/chef/modernize/execute_sysctl.rb +1 -1
  138. data/lib/rubocop/cop/chef/modernize/execute_tzutil.rb +1 -1
  139. data/lib/rubocop/cop/chef/modernize/foodcritic_comments.rb +1 -1
  140. data/lib/rubocop/cop/chef/modernize/if_provides_default_action.rb +1 -1
  141. data/lib/rubocop/cop/chef/modernize/includes_mixin_shellout.rb +1 -1
  142. data/lib/rubocop/cop/chef/modernize/libarchive_file.rb +1 -1
  143. data/lib/rubocop/cop/chef/modernize/macos_user_defaults.rb +1 -1
  144. data/lib/rubocop/cop/chef/modernize/minitest_handler_usage.rb +1 -1
  145. data/lib/rubocop/cop/chef/modernize/node_init_package.rb +1 -1
  146. data/lib/rubocop/cop/chef/modernize/node_roles_include.rb +1 -1
  147. data/lib/rubocop/cop/chef/modernize/ohai_default_recipe.rb +1 -1
  148. data/lib/rubocop/cop/chef/modernize/openssl_rsa_key_resource.rb +1 -1
  149. data/lib/rubocop/cop/chef/modernize/openssl_x509_resource.rb +1 -1
  150. data/lib/rubocop/cop/chef/modernize/osx_config_profile_resource.rb +1 -1
  151. data/lib/rubocop/cop/chef/modernize/powershell_expand_archive.rb +1 -1
  152. data/lib/rubocop/cop/chef/modernize/powershell_guard_interpreter.rb +1 -1
  153. data/lib/rubocop/cop/chef/modernize/powershell_install_package.rb +1 -1
  154. data/lib/rubocop/cop/chef/modernize/powershell_install_windowsfeature.rb +1 -1
  155. data/lib/rubocop/cop/chef/modernize/property_with_name_attribute.rb +1 -1
  156. data/lib/rubocop/cop/chef/modernize/provides_initializer.rb +1 -1
  157. data/lib/rubocop/cop/chef/modernize/resource_name_initializer.rb +1 -1
  158. data/lib/rubocop/cop/chef/modernize/resource_set_or_return.rb +1 -1
  159. data/lib/rubocop/cop/chef/modernize/resource_with_attributes.rb +1 -1
  160. data/lib/rubocop/cop/chef/modernize/respond_to_compile_time.rb +1 -1
  161. data/lib/rubocop/cop/chef/modernize/respond_to_metadata.rb +1 -1
  162. data/lib/rubocop/cop/chef/modernize/respond_to_provides.rb +1 -1
  163. data/lib/rubocop/cop/chef/modernize/respond_to_resource_name.rb +1 -1
  164. data/lib/rubocop/cop/chef/modernize/sc_windows_resource.rb +1 -1
  165. data/lib/rubocop/cop/chef/modernize/seven_zip_archive.rb +1 -1
  166. data/lib/rubocop/cop/chef/modernize/shell_out_helper.rb +1 -1
  167. data/lib/rubocop/cop/chef/modernize/shellouts_to_chocolatey.rb +1 -1
  168. data/lib/rubocop/cop/chef/modernize/simplify_apt_ppa_setup.rb +1 -1
  169. data/lib/rubocop/cop/chef/modernize/sysctl_param_resource.rb +1 -1
  170. data/lib/rubocop/cop/chef/modernize/unnecessary_mixlib_shellout_require.rb +1 -1
  171. data/lib/rubocop/cop/chef/modernize/use_multipackage_installs.rb +1 -1
  172. data/lib/rubocop/cop/chef/modernize/use_require_relative.rb +1 -1
  173. data/lib/rubocop/cop/chef/modernize/whyrun_supported_true.rb +1 -1
  174. data/lib/rubocop/cop/chef/modernize/windows_default_recipe.rb +1 -1
  175. data/lib/rubocop/cop/chef/modernize/windows_registry_uac.rb +4 -4
  176. data/lib/rubocop/cop/chef/modernize/windows_zipfile.rb +1 -1
  177. data/lib/rubocop/cop/chef/modernize/zipfile_resource.rb +1 -1
  178. data/lib/rubocop/cop/chef/modernize/zypper_repo.rb +1 -1
  179. data/lib/rubocop/cop/chef/redundant/apt_repository_distribution_default.rb +1 -1
  180. data/lib/rubocop/cop/chef/redundant/apt_repository_notifies_apt_update.rb +1 -1
  181. data/lib/rubocop/cop/chef/redundant/attribute_metadata.rb +1 -1
  182. data/lib/rubocop/cop/chef/redundant/conflicts_metadata.rb +1 -1
  183. data/lib/rubocop/cop/chef/redundant/custom_resource_with_allowed_actions.rb +1 -1
  184. data/lib/rubocop/cop/chef/redundant/double_compile_time.rb +1 -1
  185. data/lib/rubocop/cop/chef/redundant/grouping_metadata.rb +1 -1
  186. data/lib/rubocop/cop/chef/redundant/long_description_metadata.rb +1 -1
  187. data/lib/rubocop/cop/chef/redundant/multiple_platform_checks.rb +1 -1
  188. data/lib/rubocop/cop/chef/redundant/name_property_and_required.rb +1 -1
  189. data/lib/rubocop/cop/chef/redundant/ohai_attribute_to_string.rb +1 -1
  190. data/lib/rubocop/cop/chef/redundant/property_splat_regex.rb +1 -1
  191. data/lib/rubocop/cop/chef/redundant/property_with_default_and_required.rb +1 -1
  192. data/lib/rubocop/cop/chef/redundant/provides_metadata.rb +1 -1
  193. data/lib/rubocop/cop/chef/redundant/recipe_metadata.rb +1 -1
  194. data/lib/rubocop/cop/chef/redundant/replaces_metadata.rb +1 -1
  195. data/lib/rubocop/cop/chef/redundant/resource_with_nothing_action.rb +1 -1
  196. data/lib/rubocop/cop/chef/redundant/sensitive_property_in_resource.rb +1 -1
  197. data/lib/rubocop/cop/chef/redundant/string_property_with_nil_default.rb +1 -1
  198. data/lib/rubocop/cop/chef/redundant/suggests_metadata.rb +1 -1
  199. data/lib/rubocop/cop/chef/redundant/unnecessary_desired_state.rb +13 -12
  200. data/lib/rubocop/cop/chef/redundant/unnecessary_name_property.rb +1 -1
  201. data/lib/rubocop/cop/chef/redundant/use_create_if_missing.rb +1 -1
  202. data/lib/rubocop/cop/chef/sharing/default_maintainer_metadata.rb +1 -1
  203. data/lib/rubocop/cop/chef/sharing/empty_metadata_field.rb +1 -1
  204. data/lib/rubocop/cop/chef/sharing/include_property_descriptions.rb +1 -1
  205. data/lib/rubocop/cop/chef/sharing/include_resource_descriptions.rb +1 -1
  206. data/lib/rubocop/cop/chef/sharing/include_resource_examples.rb +1 -1
  207. data/lib/rubocop/cop/chef/sharing/insecure_cookbook_url.rb +1 -1
  208. data/lib/rubocop/cop/chef/sharing/invalid_license_string.rb +1 -1
  209. data/lib/rubocop/cop/chef/style/attribute_keys.rb +1 -1
  210. data/lib/rubocop/cop/chef/style/chef_whaaat.rb +1 -1
  211. data/lib/rubocop/cop/chef/style/comment_sentence_spacing.rb +1 -1
  212. data/lib/rubocop/cop/chef/style/comments_copyright_format.rb +4 -3
  213. data/lib/rubocop/cop/chef/style/comments_default_copyright.rb +1 -1
  214. data/lib/rubocop/cop/chef/style/comments_format.rb +1 -1
  215. data/lib/rubocop/cop/chef/style/file_mode.rb +1 -1
  216. data/lib/rubocop/cop/chef/style/immediate_notification_timing.rb +1 -1
  217. data/lib/rubocop/cop/chef/style/include_recipe_with_parentheses.rb +1 -1
  218. data/lib/rubocop/cop/chef/style/negating_only_if.rb +1 -1
  219. data/lib/rubocop/cop/chef/style/overly_complex_supports_depends_metadata.rb +1 -1
  220. data/lib/rubocop/cop/chef/style/simplify_platform_major_version_check.rb +1 -1
  221. data/lib/rubocop/cop/chef/style/true_false_resource_properties.rb +1 -1
  222. data/lib/rubocop/cop/chef/style/unnecessary_os_check.rb +1 -1
  223. data/lib/rubocop/cop/chef/style/unnecessary_platform_case_statement.rb +1 -1
  224. data/lib/rubocop/cop/chef/style/use_platform_helpers.rb +1 -1
  225. data/lib/rubocop/monkey_patches/comment_config.rb +1 -1
  226. metadata +4 -4
@@ -237,6 +237,8 @@ Lint/DuplicateHashKey:
237
237
  Enabled: false
238
238
  Lint/DuplicateMethods:
239
239
  Enabled: false
240
+ Lint/DuplicateRegexpCharacterClassElement:
241
+ Enabled: false
240
242
  Lint/DuplicateRequire:
241
243
  Enabled: false
242
244
  Lint/DuplicateRescueException:
@@ -245,6 +247,8 @@ Lint/EachWithObjectArgument:
245
247
  Enabled: false
246
248
  Lint/ElseLayout:
247
249
  Enabled: false
250
+ Lint/EmptyBlock:
251
+ Enabled: false
248
252
  Lint/EmptyConditionalBody:
249
253
  Enabled: false
250
254
  Lint/EmptyEnsure:
@@ -373,6 +377,8 @@ Lint/SuppressedException:
373
377
  Enabled: false
374
378
  Lint/Syntax:
375
379
  Enabled: false
380
+ Lint/ToEnumArguments:
381
+ Enabled: false
376
382
  Lint/ToJSON:
377
383
  Enabled: false
378
384
  Lint/TopLevelReturnWithArgument:
@@ -383,6 +389,8 @@ Lint/UnderscorePrefixedVariableName:
383
389
  Enabled: false
384
390
  Lint/UnifiedInteger:
385
391
  Enabled: false
392
+ Lint/UnmodifiedReduceAccumulator:
393
+ Enabled: false
386
394
  Lint/UnreachableCode:
387
395
  Enabled: false
388
396
  Lint/UnreachableLoop:
@@ -467,6 +475,8 @@ Style/Alias:
467
475
  Enabled: false
468
476
  Style/AndOr:
469
477
  Enabled: false
478
+ Style/ArgumentsForwarding:
479
+ Enabled: false
470
480
  Style/ArrayCoercion:
471
481
  Enabled: false
472
482
  Style/ArrayJoin:
@@ -537,6 +547,8 @@ Style/DocumentationMethod:
537
547
  Enabled: false
538
548
  Style/Documentation:
539
549
  Enabled: false
550
+ Style/DocumentDynamicEvalDefinition:
551
+ Enabled: false
540
552
  Style/DoubleCopDisableDirective:
541
553
  Enabled: false
542
554
  Style/DoubleNegation:
@@ -807,6 +819,8 @@ Style/Strip:
807
819
  Enabled: false
808
820
  Style/StructInheritance:
809
821
  Enabled: false
822
+ Style/SwapValues:
823
+ Enabled: false
810
824
  Style/SymbolArray:
811
825
  Enabled: false
812
826
  Style/SymbolLiteral:
@@ -313,7 +313,7 @@ Layout/AssignmentIndentation:
313
313
 
314
314
  Layout/BeginEndAlignment:
315
315
  Description: 'Align ends corresponding to begins correctly.'
316
- Enabled: pending
316
+ Enabled: true
317
317
  VersionAdded: '0.91'
318
318
  # The value `start_of_line` means that `end` should be aligned the start of the line
319
319
  # where the `begin` keyword is.
@@ -496,7 +496,7 @@ Layout/EmptyLinesAroundArguments:
496
496
  Layout/EmptyLinesAroundAttributeAccessor:
497
497
  Description: "Keep blank lines around attribute accessors."
498
498
  StyleGuide: '#empty-lines-around-attribute-accessor'
499
- Enabled: pending
499
+ Enabled: true
500
500
  VersionAdded: '0.83'
501
501
  VersionChanged: '0.84'
502
502
  AllowAliasSyntax: true
@@ -1145,7 +1145,7 @@ Layout/SpaceAroundKeyword:
1145
1145
 
1146
1146
  Layout/SpaceAroundMethodCallOperator:
1147
1147
  Description: 'Checks method call operators to not have spaces around them.'
1148
- Enabled: pending
1148
+ Enabled: true
1149
1149
  VersionAdded: '0.82'
1150
1150
 
1151
1151
  Layout/SpaceAroundOperators:
@@ -1334,8 +1334,8 @@ Layout/TrailingWhitespace:
1334
1334
  StyleGuide: '#no-trailing-whitespace'
1335
1335
  Enabled: true
1336
1336
  VersionAdded: '0.49'
1337
- VersionChanged: '0.83'
1338
- AllowInHeredoc: true
1337
+ VersionChanged: '1.0'
1338
+ AllowInHeredoc: false
1339
1339
 
1340
1340
  #################### Lint ##################################
1341
1341
  ### Warnings
@@ -1379,7 +1379,7 @@ Lint/BigDecimalNew:
1379
1379
 
1380
1380
  Lint/BinaryOperatorWithIdenticalOperands:
1381
1381
  Description: 'This cop checks for places where binary operator has identical operands.'
1382
- Enabled: pending
1382
+ Enabled: true
1383
1383
  Safe: false
1384
1384
  VersionAdded: '0.89'
1385
1385
 
@@ -1398,7 +1398,7 @@ Lint/CircularArgumentReference:
1398
1398
  Lint/ConstantDefinitionInBlock:
1399
1399
  Description: 'Do not define constants within a block.'
1400
1400
  StyleGuide: '#no-constant-definition-in-block'
1401
- Enabled: pending
1401
+ Enabled: true
1402
1402
  VersionAdded: '0.91'
1403
1403
 
1404
1404
  Lint/ConstantResolution:
@@ -1423,7 +1423,7 @@ Lint/DeprecatedClassMethods:
1423
1423
 
1424
1424
  Lint/DeprecatedOpenSSLConstant:
1425
1425
  Description: "Don't use algorithm constants for `OpenSSL::Cipher` and `OpenSSL::Digest`."
1426
- Enabled: pending
1426
+ Enabled: true
1427
1427
  VersionAdded: '0.84'
1428
1428
 
1429
1429
  Lint/DisjunctiveAssignmentInConstructor:
@@ -1440,7 +1440,7 @@ Lint/DuplicateCaseCondition:
1440
1440
 
1441
1441
  Lint/DuplicateElsifCondition:
1442
1442
  Description: 'Do not repeat conditions used in if `elsif`.'
1443
- Enabled: 'pending'
1443
+ Enabled: true
1444
1444
  VersionAdded: '0.88'
1445
1445
 
1446
1446
  Lint/DuplicateHashKey:
@@ -1454,14 +1454,19 @@ Lint/DuplicateMethods:
1454
1454
  Enabled: true
1455
1455
  VersionAdded: '0.29'
1456
1456
 
1457
+ Lint/DuplicateRegexpCharacterClassElement:
1458
+ Description: 'Checks for duplicate elements in Regexp character classes.'
1459
+ Enabled: pending
1460
+ VersionAdded: '1.1'
1461
+
1457
1462
  Lint/DuplicateRequire:
1458
1463
  Description: 'Check for duplicate `require`s and `require_relative`s.'
1459
- Enabled: pending
1464
+ Enabled: true
1460
1465
  VersionAdded: '0.90'
1461
1466
 
1462
1467
  Lint/DuplicateRescueException:
1463
1468
  Description: 'Checks that there are no repeated exceptions used in `rescue` expressions.'
1464
- Enabled: pending
1469
+ Enabled: true
1465
1470
  VersionAdded: '0.89'
1466
1471
 
1467
1472
  Lint/EachWithObjectArgument:
@@ -1474,9 +1479,15 @@ Lint/ElseLayout:
1474
1479
  Enabled: true
1475
1480
  VersionAdded: '0.17'
1476
1481
 
1482
+ Lint/EmptyBlock:
1483
+ Description: 'This cop checks for blocks without a body.'
1484
+ Enabled: pending
1485
+ VersionAdded: '1.1'
1486
+ AllowComments: true
1487
+
1477
1488
  Lint/EmptyConditionalBody:
1478
1489
  Description: 'This cop checks for the presence of `if`, `elsif` and `unless` branches without a body.'
1479
- Enabled: 'pending'
1490
+ Enabled: true
1480
1491
  AllowComments: true
1481
1492
  VersionAdded: '0.89'
1482
1493
 
@@ -1493,7 +1504,7 @@ Lint/EmptyExpression:
1493
1504
 
1494
1505
  Lint/EmptyFile:
1495
1506
  Description: 'Enforces that Ruby source files are not empty.'
1496
- Enabled: pending
1507
+ Enabled: true
1497
1508
  AllowComments: true
1498
1509
  VersionAdded: '0.90'
1499
1510
 
@@ -1531,7 +1542,7 @@ Lint/FlipFlop:
1531
1542
  Lint/FloatComparison:
1532
1543
  Description: 'Checks for the presence of precise comparison of floating point numbers.'
1533
1544
  StyleGuide: '#float-comparison'
1534
- Enabled: pending
1545
+ Enabled: true
1535
1546
  VersionAdded: '0.89'
1536
1547
 
1537
1548
  Lint/FloatOutOfRange:
@@ -1549,7 +1560,7 @@ Lint/FormatParameterMismatch:
1549
1560
  Lint/HashCompareByIdentity:
1550
1561
  Description: 'Prefer using `Hash#compare_by_identity` than using `object_id` for keys.'
1551
1562
  StyleGuide: '#identity-comparison'
1552
- Enabled: pending
1563
+ Enabled: true
1553
1564
  Safe: false
1554
1565
  VersionAdded: '0.93'
1555
1566
 
@@ -1563,7 +1574,7 @@ Lint/HeredocMethodCallPosition:
1563
1574
 
1564
1575
  Lint/IdentityComparison:
1565
1576
  Description: 'Prefer `equal?` over `==` when comparing `object_id`.'
1566
- Enabled: pending
1577
+ Enabled: true
1567
1578
  StyleGuide: '#identity-comparison'
1568
1579
  VersionAdded: '0.91'
1569
1580
 
@@ -1635,19 +1646,20 @@ Lint/MissingSuper:
1635
1646
  Description: >-
1636
1647
  This cop checks for the presence of constructors and lifecycle callbacks
1637
1648
  without calls to `super`'.
1638
- Enabled: pending
1649
+ Enabled: true
1639
1650
  VersionAdded: '0.89'
1640
1651
 
1641
1652
  Lint/MixedRegexpCaptureTypes:
1642
1653
  Description: 'Do not mix named captures and numbered captures in a Regexp literal.'
1643
- Enabled: pending
1654
+ Enabled: true
1644
1655
  VersionAdded: '0.85'
1645
1656
 
1646
1657
  Lint/MultipleComparison:
1647
1658
  Description: "Use `&&` operator to compare multiple values."
1648
1659
  Enabled: true
1649
1660
  VersionAdded: '0.47'
1650
- VersionChanged: '0.77'
1661
+ VersionChanged: '1.1'
1662
+ AllowMethodComparison: true
1651
1663
 
1652
1664
  Lint/NestedMethodDefinition:
1653
1665
  Description: 'Do not use nested method definitions.'
@@ -1682,8 +1694,12 @@ Lint/NumberConversion:
1682
1694
  Description: 'Checks unsafe usage of number conversion methods.'
1683
1695
  Enabled: false
1684
1696
  VersionAdded: '0.53'
1685
- VersionChanged: '0.70'
1697
+ VersionChanged: '1.1'
1686
1698
  SafeAutoCorrect: false
1699
+ IgnoredMethods: []
1700
+ IgnoredClasses:
1701
+ - Time
1702
+ - DateTime
1687
1703
 
1688
1704
  Lint/OrderedMagicComments:
1689
1705
  Description: 'Checks the proper ordering of magic comments and whether a magic comment is not placed before a shebang.'
@@ -1692,7 +1708,7 @@ Lint/OrderedMagicComments:
1692
1708
 
1693
1709
  Lint/OutOfRangeRegexpRef:
1694
1710
  Description: 'Checks for out of range reference for Regexp because it always returns nil.'
1695
- Enabled: pending
1711
+ Enabled: true
1696
1712
  Safe: false
1697
1713
  VersionAdded: '0.89'
1698
1714
 
@@ -1721,7 +1737,7 @@ Lint/PercentSymbolArray:
1721
1737
  Lint/RaiseException:
1722
1738
  Description: Checks for `raise` or `fail` statements which are raising `Exception` class.
1723
1739
  StyleGuide: '#raise-exception'
1724
- Enabled: pending
1740
+ Enabled: true
1725
1741
  Safe: false
1726
1742
  VersionAdded: '0.81'
1727
1743
  VersionChanged: '0.86'
@@ -1755,7 +1771,7 @@ Lint/RedundantRequireStatement:
1755
1771
 
1756
1772
  Lint/RedundantSafeNavigation:
1757
1773
  Description: 'Checks for redundant safe navigation calls.'
1758
- Enabled: pending
1774
+ Enabled: true
1759
1775
  VersionAdded: '0.93'
1760
1776
  AllowedMethods:
1761
1777
  - instance_of?
@@ -1862,7 +1878,7 @@ Lint/ScriptPermission:
1862
1878
 
1863
1879
  Lint/SelfAssignment:
1864
1880
  Description: 'Checks for self-assignments.'
1865
- Enabled: pending
1881
+ Enabled: true
1866
1882
  VersionAdded: '0.89'
1867
1883
 
1868
1884
  Lint/SendWithMixinArgument:
@@ -1893,7 +1909,7 @@ Lint/ShadowingOuterLocalVariable:
1893
1909
 
1894
1910
  Lint/StructNewOverride:
1895
1911
  Description: 'Disallow overriding the `Struct` built-in methods via `Struct.new`.'
1896
- Enabled: pending
1912
+ Enabled: true
1897
1913
  VersionAdded: '0.81'
1898
1914
 
1899
1915
  Lint/SuppressedException:
@@ -1910,6 +1926,11 @@ Lint/Syntax:
1910
1926
  VersionAdded: '0.9'
1911
1927
 
1912
1928
 
1929
+ Lint/ToEnumArguments:
1930
+ Description: 'This cop ensures that `to_enum`/`enum_for`, called for the current method, has correct arguments.'
1931
+ Enabled: pending
1932
+ VersionAdded: '1.1'
1933
+
1913
1934
  Lint/ToJSON:
1914
1935
  Description: 'Ensure #to_json includes an optional argument.'
1915
1936
  Enabled: true
@@ -1917,12 +1938,12 @@ Lint/ToJSON:
1917
1938
 
1918
1939
  Lint/TopLevelReturnWithArgument:
1919
1940
  Description: 'This cop detects top level return statements with argument.'
1920
- Enabled: 'pending'
1941
+ Enabled: true
1921
1942
  VersionAdded: '0.89'
1922
1943
 
1923
1944
  Lint/TrailingCommaInAttributeDeclaration:
1924
1945
  Description: 'This cop checks for trailing commas in attribute declarations.'
1925
- Enabled: pending
1946
+ Enabled: true
1926
1947
  VersionAdded: '0.90'
1927
1948
 
1928
1949
  Lint/UnderscorePrefixedVariableName:
@@ -1936,6 +1957,11 @@ Lint/UnifiedInteger:
1936
1957
  Enabled: true
1937
1958
  VersionAdded: '0.43'
1938
1959
 
1960
+ Lint/UnmodifiedReduceAccumulator:
1961
+ Description: Checks for `reduce` or `inject` blocks that do not update the accumulator each iteration.
1962
+ Enabled: pending
1963
+ VersionAdded: '1.1'
1964
+
1939
1965
  Lint/UnreachableCode:
1940
1966
  Description: 'Unreachable code.'
1941
1967
  Enabled: true
@@ -1943,7 +1969,7 @@ Lint/UnreachableCode:
1943
1969
 
1944
1970
  Lint/UnreachableLoop:
1945
1971
  Description: 'This cop checks for loops that will have at most one iteration.'
1946
- Enabled: pending
1972
+ Enabled: true
1947
1973
  VersionAdded: '0.89'
1948
1974
 
1949
1975
  Lint/UnusedBlockArgument:
@@ -2002,7 +2028,7 @@ Lint/UselessElseWithoutRescue:
2002
2028
 
2003
2029
  Lint/UselessMethodDefinition:
2004
2030
  Description: 'Checks for useless method definitions.'
2005
- Enabled: pending
2031
+ Enabled: true
2006
2032
  VersionAdded: '0.90'
2007
2033
  Safe: false
2008
2034
  AllowComments: true
@@ -2016,7 +2042,7 @@ Lint/UselessSetterCall:
2016
2042
 
2017
2043
  Lint/UselessTimes:
2018
2044
  Description: 'Checks for useless `Integer#times` calls.'
2019
- Enabled: pending
2045
+ Enabled: true
2020
2046
  VersionAdded: '0.91'
2021
2047
  Safe: false
2022
2048
 
@@ -2415,9 +2441,10 @@ Security/MarshalLoad:
2415
2441
  VersionAdded: '0.47'
2416
2442
 
2417
2443
  Security/Open:
2418
- Description: 'The use of Kernel#open represents a serious security risk.'
2444
+ Description: 'The use of `Kernel#open` and `URI.open` represent a serious security risk.'
2419
2445
  Enabled: true
2420
2446
  VersionAdded: '0.53'
2447
+ VersionChanged: '1.0'
2421
2448
  Safe: false
2422
2449
 
2423
2450
  Security/YAMLLoad:
@@ -2444,7 +2471,7 @@ Style/AccessModifierDeclarations:
2444
2471
 
2445
2472
  Style/AccessorGrouping:
2446
2473
  Description: 'Checks for grouping of accessors in `class` and `module` bodies.'
2447
- Enabled: 'pending'
2474
+ Enabled: true
2448
2475
  VersionAdded: '0.87'
2449
2476
  EnforcedStyle: grouped
2450
2477
  SupportedStyles:
@@ -2477,6 +2504,13 @@ Style/AndOr:
2477
2504
  - always
2478
2505
  - conditionals
2479
2506
 
2507
+ Style/ArgumentsForwarding:
2508
+ Description: 'Use arguments forwarding.'
2509
+ StyleGuide: '#arguments-forwarding'
2510
+ Enabled: pending
2511
+ AllowOnlyRestArgument: true
2512
+ VersionAdded: '1.1'
2513
+
2480
2514
  Style/ArrayCoercion:
2481
2515
  Description: >-
2482
2516
  Use Array() instead of explicit Array check or [*var], when dealing
@@ -2533,7 +2567,7 @@ Style/BisectedAttrAccessor:
2533
2567
  Description: >-
2534
2568
  Checks for places where `attr_reader` and `attr_writer`
2535
2569
  for the same method can be combined into single `attr_accessor`.
2536
- Enabled: 'pending'
2570
+ Enabled: true
2537
2571
  VersionAdded: '0.87'
2538
2572
 
2539
2573
  Style/BlockComments:
@@ -2672,7 +2706,7 @@ Style/CaseEquality:
2672
2706
  Style/CaseLikeIf:
2673
2707
  Description: 'This cop identifies places where `if-elsif` constructions can be replaced with `case-when`.'
2674
2708
  StyleGuide: '#case-vs-if-else'
2675
- Enabled: 'pending'
2709
+ Enabled: true
2676
2710
  Safe: false
2677
2711
  VersionAdded: '0.88'
2678
2712
 
@@ -2725,7 +2759,7 @@ Style/ClassCheck:
2725
2759
  Style/ClassEqualityComparison:
2726
2760
  Description: 'Enforces the use of `Object#instance_of?` instead of class comparison for equality.'
2727
2761
  StyleGuide: '#instance-of-vs-class-comparison'
2728
- Enabled: pending
2762
+ Enabled: true
2729
2763
  VersionAdded: '0.93'
2730
2764
  IgnoredMethods:
2731
2765
  - ==
@@ -2793,7 +2827,7 @@ Style/CombinableLoops:
2793
2827
  Description: >-
2794
2828
  Checks for places where multiple consecutive loops over the same data
2795
2829
  can be combined into a single loop.
2796
- Enabled: pending
2830
+ Enabled: true
2797
2831
  Safe: false
2798
2832
  VersionAdded: '0.90'
2799
2833
 
@@ -2917,6 +2951,14 @@ Style/DisableCopsWithinSourceCodeDirective:
2917
2951
  Enabled: false
2918
2952
  VersionAdded: '0.82'
2919
2953
 
2954
+ Style/DocumentDynamicEvalDefinition:
2955
+ Description: >-
2956
+ When using `class_eval` (or other `eval`) with string interpolation,
2957
+ add a comment block showing its appearance if interpolated.
2958
+ StyleGuide: '#eval-comment-docs'
2959
+ Enabled: pending
2960
+ VersionAdded: '1.1'
2961
+
2920
2962
  Style/Documentation:
2921
2963
  Description: 'Document classes and non-namespace modules.'
2922
2964
  Enabled: true
@@ -3046,7 +3088,7 @@ Style/ExplicitBlockArgument:
3046
3088
  Consider using explicit block argument to avoid writing block literal
3047
3089
  that just passes its arguments to another block.
3048
3090
  StyleGuide: '#block-argument'
3049
- Enabled: pending
3091
+ Enabled: true
3050
3092
  # May change the yielding arity.
3051
3093
  Safe: false
3052
3094
  VersionAdded: '0.89'
@@ -3054,7 +3096,7 @@ Style/ExplicitBlockArgument:
3054
3096
  Style/ExponentialNotation:
3055
3097
  Description: 'When using exponential notation, favor a mantissa between 1 (inclusive) and 10 (exclusive).'
3056
3098
  StyleGuide: '#exponential-notation'
3057
- Enabled: pending
3099
+ Enabled: true
3058
3100
  VersionAdded: '0.82'
3059
3101
  EnforcedStyle: scientific
3060
3102
  SupportedStyles:
@@ -3109,8 +3151,12 @@ Style/FormatStringToken:
3109
3151
  # Prefer simple looking "template" style tokens like `%{name}`, `%{age}`
3110
3152
  - template
3111
3153
  - unannotated
3154
+ # `MaxUnannotatedPlaceholdersAllowed` defines the number of `unannotated`
3155
+ # style token in a format string to be allowed when enforced style is not
3156
+ # `unannotated`.
3157
+ MaxUnannotatedPlaceholdersAllowed: 1
3112
3158
  VersionAdded: '0.49'
3113
- VersionChanged: '0.75'
3159
+ VersionChanged: '1.0'
3114
3160
 
3115
3161
  Style/FrozenStringLiteralComment:
3116
3162
  Description: >-
@@ -3137,7 +3183,7 @@ Style/FrozenStringLiteralComment:
3137
3183
  Style/GlobalStdStream:
3138
3184
  Description: 'Enforces the use of `$stdout/$stderr/$stdin` instead of `STDOUT/STDERR/STDIN`.'
3139
3185
  StyleGuide: '#global-stdout'
3140
- Enabled: pending
3186
+ Enabled: true
3141
3187
  VersionAdded: '0.89'
3142
3188
  SafeAutoCorrect: false
3143
3189
 
@@ -3165,7 +3211,7 @@ Style/HashAsLastArrayItem:
3165
3211
  Checks for presence or absence of braces around hash literal as a last
3166
3212
  array item depending on configuration.
3167
3213
  StyleGuide: '#hash-literal-as-last-array-item'
3168
- Enabled: 'pending'
3214
+ Enabled: true
3169
3215
  VersionAdded: '0.88'
3170
3216
  EnforcedStyle: braces
3171
3217
  SupportedStyles:
@@ -3175,7 +3221,7 @@ Style/HashAsLastArrayItem:
3175
3221
  Style/HashEachMethods:
3176
3222
  Description: 'Use Hash#each_key and Hash#each_value.'
3177
3223
  StyleGuide: '#hash-each'
3178
- Enabled: pending
3224
+ Enabled: true
3179
3225
  VersionAdded: '0.80'
3180
3226
  Safe: false
3181
3227
 
@@ -3183,7 +3229,7 @@ Style/HashLikeCase:
3183
3229
  Description: >-
3184
3230
  Checks for places where `case-when` represents a simple 1:1
3185
3231
  mapping and can be replaced with a hash lookup.
3186
- Enabled: 'pending'
3232
+ Enabled: true
3187
3233
  VersionAdded: '0.88'
3188
3234
  # `MinBranchesCount` defines the number of branches `case` needs to have
3189
3235
  # to trigger this cop
@@ -3214,14 +3260,14 @@ Style/HashSyntax:
3214
3260
 
3215
3261
  Style/HashTransformKeys:
3216
3262
  Description: 'Prefer `transform_keys` over `each_with_object`, `map`, or `to_h`.'
3217
- Enabled: 'pending'
3263
+ Enabled: true
3218
3264
  VersionAdded: '0.80'
3219
3265
  VersionChanged: '0.90'
3220
3266
  Safe: false
3221
3267
 
3222
3268
  Style/HashTransformValues:
3223
3269
  Description: 'Prefer `transform_values` over `each_with_object`, `map`, or `to_h`.'
3224
- Enabled: 'pending'
3270
+ Enabled: true
3225
3271
  VersionAdded: '0.80'
3226
3272
  VersionChanged: '0.90'
3227
3273
  Safe: false
@@ -3328,7 +3374,7 @@ Style/IpAddresses:
3328
3374
  Style/KeywordParametersOrder:
3329
3375
  Description: 'Enforces that optional keyword parameters are placed at the end of the parameters list.'
3330
3376
  StyleGuide: '#keyword-parameters-order'
3331
- Enabled: pending
3377
+ Enabled: true
3332
3378
  VersionAdded: '0.90'
3333
3379
 
3334
3380
  Style/Lambda:
@@ -3530,6 +3576,7 @@ Style/MultipleComparison:
3530
3576
  use Array#include? instead.
3531
3577
  Enabled: true
3532
3578
  VersionAdded: '0.49'
3579
+ VersionChanged: '1.1'
3533
3580
 
3534
3581
  Style/MutableConstant:
3535
3582
  Description: 'Do not assign mutable objects to constants.'
@@ -3753,7 +3800,7 @@ Style/OptionalArguments:
3753
3800
  Style/OptionalBooleanParameter:
3754
3801
  Description: 'Use keyword arguments when defining method with boolean argument.'
3755
3802
  StyleGuide: '#boolean-keyword-arguments'
3756
- Enabled: pending
3803
+ Enabled: true
3757
3804
  Safe: false
3758
3805
  VersionAdded: '0.89'
3759
3806
  AllowedMethods:
@@ -3857,7 +3904,7 @@ Style/RandomWithOffset:
3857
3904
 
3858
3905
  Style/RedundantAssignment:
3859
3906
  Description: 'Checks for redundant assignment before returning.'
3860
- Enabled: 'pending'
3907
+ Enabled: true
3861
3908
  VersionAdded: '0.87'
3862
3909
 
3863
3910
  Style/RedundantBegin:
@@ -3894,7 +3941,7 @@ Style/RedundantFetchBlock:
3894
3941
  Use `fetch(key, value)` instead of `fetch(key) { value }`
3895
3942
  when value has Numeric, Rational, Complex, Symbol or String type, `false`, `true`, `nil` or is a constant.
3896
3943
  Reference: 'https://github.com/JuanitoFatas/fast-ruby#hashfetch-with-argument-vs-hashfetch--block-code'
3897
- Enabled: 'pending'
3944
+ Enabled: true
3898
3945
  Safe: false
3899
3946
  # If enabled, this cop will autocorrect usages of
3900
3947
  # `fetch` being called with block returning a constant.
@@ -3907,7 +3954,7 @@ Style/RedundantFileExtensionInRequire:
3907
3954
  Checks for the presence of superfluous `.rb` extension in
3908
3955
  the filename provided to `require` and `require_relative`.
3909
3956
  StyleGuide: '#no-explicit-rb-to-require'
3910
- Enabled: 'pending'
3957
+ Enabled: true
3911
3958
  VersionAdded: '0.88'
3912
3959
 
3913
3960
  Style/RedundantFreeze:
@@ -3934,12 +3981,12 @@ Style/RedundantPercentQ:
3934
3981
 
3935
3982
  Style/RedundantRegexpCharacterClass:
3936
3983
  Description: 'Checks for unnecessary single-element Regexp character classes.'
3937
- Enabled: pending
3984
+ Enabled: true
3938
3985
  VersionAdded: '0.85'
3939
3986
 
3940
3987
  Style/RedundantRegexpEscape:
3941
3988
  Description: 'Checks for redundant escapes in Regexps.'
3942
- Enabled: pending
3989
+ Enabled: true
3943
3990
  VersionAdded: '0.85'
3944
3991
 
3945
3992
  Style/RedundantReturn:
@@ -3960,7 +4007,7 @@ Style/RedundantSelf:
3960
4007
 
3961
4008
  Style/RedundantSelfAssignment:
3962
4009
  Description: 'Checks for places where redundant assignments are made for in place modification methods.'
3963
- Enabled: pending
4010
+ Enabled: true
3964
4011
  Safe: false
3965
4012
  VersionAdded: '0.90'
3966
4013
 
@@ -4088,7 +4135,7 @@ Style/SignalException:
4088
4135
 
4089
4136
  Style/SingleArgumentDig:
4090
4137
  Description: 'Avoid using single argument dig method.'
4091
- Enabled: pending
4138
+ Enabled: true
4092
4139
  VersionAdded: '0.89'
4093
4140
  Safe: false
4094
4141
 
@@ -4115,7 +4162,7 @@ Style/SingleLineMethods:
4115
4162
 
4116
4163
  Style/SlicingWithRange:
4117
4164
  Description: 'Checks array slicing is done with endless ranges when suitable.'
4118
- Enabled: pending
4165
+ Enabled: true
4119
4166
  VersionAdded: '0.83'
4120
4167
  Safe: false
4121
4168
 
@@ -4123,7 +4170,7 @@ Style/SoleNestedConditional:
4123
4170
  Description: >-
4124
4171
  Finds sole nested conditional nodes
4125
4172
  which can be merged into outer conditional node.
4126
- Enabled: pending
4173
+ Enabled: true
4127
4174
  VersionAdded: '0.89'
4128
4175
  AllowModifier: false
4129
4176
 
@@ -4158,7 +4205,7 @@ Style/StderrPuts:
4158
4205
  Style/StringConcatenation:
4159
4206
  Description: 'Checks for places where string concatenation can be replaced with string interpolation.'
4160
4207
  StyleGuide: '#string-interpolation'
4161
- Enabled: pending
4208
+ Enabled: true
4162
4209
  Safe: false
4163
4210
  VersionAdded: '0.89'
4164
4211
 
@@ -4221,6 +4268,13 @@ Style/StructInheritance:
4221
4268
  VersionAdded: '0.29'
4222
4269
  VersionChanged: '0.86'
4223
4270
 
4271
+ Style/SwapValues:
4272
+ Description: 'This cop enforces the use of shorthand-style swapping of 2 variables.'
4273
+ StyleGuide: '#values-swapping'
4274
+ Enabled: pending
4275
+ VersionAdded: '1.1'
4276
+ SafeAutoCorrect: false
4277
+
4224
4278
  Style/SymbolArray:
4225
4279
  Description: 'Use %i or %I for arrays of symbols.'
4226
4280
  StyleGuide: '#percent-i'