cookstyle 9.0.0 → 9.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/chefstyle.yml +12 -0
- data/config/cookstyle.yml +12 -0
- data/lib/cookstyle/version.rb +2 -2
- data/lib/cookstyle.rb +5 -6
- data/lib/rubocop/chef/autocorrect_helpers.rb +1 -1
- data/lib/rubocop/chef/cookbook_helpers.rb +1 -1
- data/lib/rubocop/chef/platform_helpers.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/block_guard_clause_string_only.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/chef_application_fatal.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/conditional_ruby_shellout.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/conditional_unified_mode_true.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/dnf_package_allow_downgrades.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/execute_delete_file.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/incorrect_library_injection.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_checksum.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_cookbook_name.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_default_action.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_notification_resource.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_notification_timing.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_platform_family_helper.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_platform_family_values_in_case.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_platform_helper.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_platform_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_platform_values_in_case.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_value_for_platform_family_helper.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_value_for_platform_helper.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/invalid_version_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/lazy_eval_node_attribute_defaults.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/lazy_in_resource_guard.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/macos_userdefaults_invalid_type.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/malformed_value_for_platform.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/metadata_malformed_version.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/metadata_missing_name.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/metadata_missing_version.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/node_save.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/notifies_action_not_symbol.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/octal_mode_as_string.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/platform_version_string_comparison.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/powershell_delete_file.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/powershell_file_exists.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/property_without_type.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/resource_sets_internal_properties.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/resource_sets_name_property.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/resource_with_none_action.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/ruby_guard_without_block.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/scoped_file_exist.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/service_resource.rb +1 -1
- data/lib/rubocop/cop/chef/correctness/supports_must_be_float.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/cb_depends_on_self.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/chef_handler_recipe.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/chef_handler_supports.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/chef_rest.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/chef_rewind.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/chef_shellout.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/chef_sugar_helpers.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/chef_windows_platform_helper.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/chefdk_generators.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/cheffile.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/chefspec_coverage_report.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/chefspec_legacy_runner.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/chocolatey_package_uninstall_action.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/delivery.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/depends_chef_nginx_cookbook.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/depends_chef_reporting_cookbook.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/depends_compat_resource.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/depends_omnibus_updater_cookbook.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/depends_partial_search.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/depends_poise.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/deprecated_chefspec_platform.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/deprecated_mixins.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/deprecated_platform_methods.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/deprecated_shellout_methods.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/deprecated_sudo_actions.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/deprecated_windows_version_check.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/deprecated_yum_repository_actions.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/deprecated_yum_repository_properties.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/easy_install.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/eol_audit_mode.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/epic_fail.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/erl_call.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/execute_path_property.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/execute_relative_creates_without_cwd.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/foodcritic_file.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/foodcritic_testing.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/hwrp_without_provides.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/hwrp_without_unified_mode_true.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/inherits_compat_resource.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/launchd_deprecated_hash_property.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/legacy_yum_cookbook_recipes.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/librarian_chefspec.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/locale_lc_all_property.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/log_resource_notifications.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/macos_userdefaults_global_property.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/name_property_and_default.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/node_methods_not_attributes.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/partial_search_class_usage.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/partial_search_helper_usage.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/poise_archive.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/policyfile_community_source.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/powershell_cookbook_helpers.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/require_recipe.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/resource_overrides_provides_method.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/resource_uses_dsl_name_method.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/resource_uses_only_resource_name.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/resource_uses_provider_base_method.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/resource_uses_updated_method.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/resource_without_unified_mode_true.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/ruby_27_keyword_argument_warnings.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/ruby_block_create_action.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/run_command_helper.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/search_uses_positional_parameters.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/use_automatic_resource_name.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/use_inline_resources.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/use_yaml_dump.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/user_supports_property.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/verify_property_file_expansion.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/windows_feature_servermanagercmd.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/windows_package_installer_type_string.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/windows_task_change_action.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/windows_version_helpers.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/xml_ruby_recipe.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/yum_dnf_compat_recipe.rb +1 -1
- data/lib/rubocop/cop/chef/effortless/berksfile.rb +1 -1
- data/lib/rubocop/cop/chef/effortless/data_bags.rb +1 -1
- data/lib/rubocop/cop/chef/effortless/node_environment.rb +1 -1
- data/lib/rubocop/cop/chef/effortless/node_policygroup.rb +1 -1
- data/lib/rubocop/cop/chef/effortless/node_roles.rb +1 -1
- data/lib/rubocop/cop/chef/effortless/search_for_environments_or_roles.rb +1 -1
- data/lib/rubocop/cop/chef/effortless/search_used.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/action_method_in_resource.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/allowed_actions_initializer.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/apt_default_recipe.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/berksfile_source.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/build_essential.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/chef_14_resources.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/chef_15_resources.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/chef_gem_nokogiri.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/class_eval_action_class.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/compile_time_resources.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/conditional_using_test.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/cron_d_file_or_template.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/cron_manage_resource.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/databag_helpers.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/declare_action_class.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/default_action_initializer.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/defines_chefspec_matchers.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/definitions.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/depends_chef_vault_cookbook.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/depends_chocolatey_cookbooks.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/depends_kernel_module_cookbook.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/depends_locale_cookbook.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/depends_openssl_cookbook.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/depends_timezone_lwrp_cookbook.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/depends_windows_firewall_cookbook.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/depends_zypper_cookbook.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/dsl_include_in_resource.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/empty_resource_initialize.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/execute_apt_update.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/execute_archive_extract.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/execute_sc_exe.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/execute_sleep.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/execute_sysctl.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/execute_tzutil.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/execute_update_alternatives.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/foodcritic_comments.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/if_provides_default_action.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/includes_mixin_shellout.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/libarchive_file.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/macos_user_defaults.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/minitest_handler_usage.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/node_init_package.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/node_roles_include.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/ohai_default_recipe.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/openssl_rsa_key_resource.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/openssl_x509_resource.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/osx_config_profile_resource.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/powershell_download_file.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/powershell_expand_archive.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/powershell_guard_interpreter.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/powershell_install_package.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/powershell_install_windowsfeature.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/property_with_name_attribute.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/provides_initializer.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/resource_name_initializer.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/resource_set_or_return.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/resource_with_attributes.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/respond_to_compile_time.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/respond_to_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/respond_to_provides.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/respond_to_resource_name.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/sc_windows_resource.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/seven_zip_archive.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/shell_out_helper.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/shellouts_to_chocolatey.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/simplify_apt_ppa_setup.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/sysctl_param_resource.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/unnecessary_mixlib_shellout_require.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/use_chef_language_cloud_helpers.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/use_chef_language_env_helpers.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/use_chef_language_systemd_helper.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/use_multipackage_installs.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/use_require_relative.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/whyrun_supported_true.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/windows_default_recipe.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/windows_registry_uac.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/windows_zipfile.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/zipfile_resource.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/zypper_repo.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/apt_repository_distribution_default.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/apt_repository_notifies_apt_update.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/attribute_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/conflicts_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/custom_resource_with_allowed_actions.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/double_compile_time.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/grouping_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/long_description_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/multiple_platform_checks.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/name_property_and_required.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/ohai_attribute_to_string.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/property_splat_regex.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/property_with_default_and_required.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/provides_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/recipe_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/replaces_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/resource_with_nothing_action.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/sensitive_property_in_resource.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/service_guard_on_stop_disable.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/string_property_with_nil_default.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/suggests_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/unnecessary_desired_state.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/unnecessary_name_property.rb +1 -1
- data/lib/rubocop/cop/chef/redundant/use_create_if_missing.rb +1 -1
- data/lib/rubocop/cop/chef/security/insecure_remote_file_source.rb +1 -1
- data/lib/rubocop/cop/chef/security/ssh_private_key.rb +1 -1
- data/lib/rubocop/cop/chef/sharing/default_maintainer_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/sharing/empty_metadata_field.rb +1 -1
- data/lib/rubocop/cop/chef/sharing/empty_property_description.rb +1 -1
- data/lib/rubocop/cop/chef/sharing/include_property_descriptions.rb +1 -1
- data/lib/rubocop/cop/chef/sharing/include_resource_descriptions.rb +1 -1
- data/lib/rubocop/cop/chef/sharing/include_resource_examples.rb +1 -1
- data/lib/rubocop/cop/chef/sharing/insecure_cookbook_url.rb +1 -1
- data/lib/rubocop/cop/chef/sharing/invalid_license_string.rb +1 -1
- data/lib/rubocop/cop/chef/style/chef_whaaat.rb +1 -1
- data/lib/rubocop/cop/chef/style/comment_sentence_spacing.rb +1 -1
- data/lib/rubocop/cop/chef/style/comments_copyright_format.rb +1 -1
- data/lib/rubocop/cop/chef/style/comments_default_copyright.rb +1 -1
- data/lib/rubocop/cop/chef/style/comments_format.rb +1 -1
- data/lib/rubocop/cop/chef/style/immediate_notification_timing.rb +1 -1
- data/lib/rubocop/cop/chef/style/include_recipe_with_parentheses.rb +1 -1
- data/lib/rubocop/cop/chef/style/negating_only_if.rb +1 -1
- data/lib/rubocop/cop/chef/style/overly_complex_supports_depends_metadata.rb +1 -1
- data/lib/rubocop/cop/chef/style/simplify_platform_major_version_check.rb +1 -1
- data/lib/rubocop/cop/chef/style/true_false_resource_properties.rb +1 -1
- data/lib/rubocop/cop/chef/style/unnecessary_os_check.rb +1 -1
- data/lib/rubocop/cop/chef/style/unnecessary_platform_case_statement.rb +1 -1
- data/lib/rubocop/cop/chef/style/use_platform_helpers.rb +1 -1
- data/lib/rubocop/cop/chef.rb +349 -0
- data/lib/rubocop/cop/chefstyle/ruby/gemspec_license.rb +1 -1
- data/lib/rubocop/cop/chefstyle/ruby/gemspec_require_rubygems.rb +1 -1
- data/lib/rubocop/cop/chefstyle/ruby/legacy_powershell_out_methods.rb +1 -1
- data/lib/rubocop/cop/chefstyle/ruby/require_net_https.rb +1 -1
- data/lib/rubocop/cop/chefstyle/ruby/unless_defined_require.rb +1 -1
- data/lib/rubocop/cop/inspec/deprecation/attribute_default.rb +1 -1
- data/lib/rubocop/cop/inspec/deprecation/attribute_helper.rb +1 -1
- data/lib/rubocop/cop/inspec.rb +31 -0
- metadata +10 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright:: Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<tsmith84@
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# Copyright:: 2026, Tim Smith
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
module RuboCop
|
|
19
|
+
module Cop
|
|
20
|
+
# Registers the Chef Infra and Chefstyle cops for lazy loading. Each cop's file is
|
|
21
|
+
# loaded only when the cop class is actually needed, which keeps `require "cookstyle"`
|
|
22
|
+
# from paying for every cop on every run. The registration order matches the order the
|
|
23
|
+
# files were previously required in, so cop execution order is unchanged.
|
|
24
|
+
module Chef
|
|
25
|
+
# The Chef/Correctness department.
|
|
26
|
+
module Correctness
|
|
27
|
+
extend LazyLoader
|
|
28
|
+
|
|
29
|
+
register_cop :BlockGuardWithOnlyString, "#{__dir__}/chef/correctness/block_guard_clause_string_only"
|
|
30
|
+
register_cop :ChefApplicationFatal, "#{__dir__}/chef/correctness/chef_application_fatal"
|
|
31
|
+
register_cop :ConditionalRubyShellout, "#{__dir__}/chef/correctness/conditional_ruby_shellout"
|
|
32
|
+
register_cop :ConditionalUnifiedModeTrue, "#{__dir__}/chef/correctness/conditional_unified_mode_true"
|
|
33
|
+
register_cop :DnfPackageAllowDowngrades, "#{__dir__}/chef/correctness/dnf_package_allow_downgrades"
|
|
34
|
+
register_cop :EmptyResourceGuard, "#{__dir__}/chef/correctness/empty_resource_guard"
|
|
35
|
+
register_cop :ExecuteDeleteFile, "#{__dir__}/chef/correctness/execute_delete_file"
|
|
36
|
+
register_cop :IncorrectLibraryInjection, "#{__dir__}/chef/correctness/incorrect_library_injection"
|
|
37
|
+
register_cop :InvalidChecksum, "#{__dir__}/chef/correctness/invalid_checksum"
|
|
38
|
+
register_cop :InvalidCookbookName, "#{__dir__}/chef/correctness/invalid_cookbook_name"
|
|
39
|
+
register_cop :InvalidDefaultAction, "#{__dir__}/chef/correctness/invalid_default_action"
|
|
40
|
+
register_cop :InvalidNotificationResource, "#{__dir__}/chef/correctness/invalid_notification_resource"
|
|
41
|
+
register_cop :InvalidNotificationTiming, "#{__dir__}/chef/correctness/invalid_notification_timing"
|
|
42
|
+
register_cop :InvalidPlatformFamilyHelper, "#{__dir__}/chef/correctness/invalid_platform_family_helper"
|
|
43
|
+
register_cop :InvalidPlatformFamilyInCase, "#{__dir__}/chef/correctness/invalid_platform_family_values_in_case"
|
|
44
|
+
register_cop :InvalidPlatformHelper, "#{__dir__}/chef/correctness/invalid_platform_helper"
|
|
45
|
+
register_cop :InvalidPlatformMetadata, "#{__dir__}/chef/correctness/invalid_platform_metadata"
|
|
46
|
+
register_cop :InvalidPlatformInCase, "#{__dir__}/chef/correctness/invalid_platform_values_in_case"
|
|
47
|
+
register_cop :InvalidPlatformValueForPlatformFamilyHelper, "#{__dir__}/chef/correctness/invalid_value_for_platform_family_helper"
|
|
48
|
+
register_cop :InvalidPlatformValueForPlatformHelper, "#{__dir__}/chef/correctness/invalid_value_for_platform_helper"
|
|
49
|
+
register_cop :InvalidVersionMetadata, "#{__dir__}/chef/correctness/invalid_version_metadata"
|
|
50
|
+
register_cop :LazyEvalNodeAttributeDefaults, "#{__dir__}/chef/correctness/lazy_eval_node_attribute_defaults"
|
|
51
|
+
register_cop :LazyInResourceGuard, "#{__dir__}/chef/correctness/lazy_in_resource_guard"
|
|
52
|
+
register_cop :MacosUserdefaultsInvalidType, "#{__dir__}/chef/correctness/macos_userdefaults_invalid_type"
|
|
53
|
+
register_cop :MalformedPlatformValueForPlatformHelper, "#{__dir__}/chef/correctness/malformed_value_for_platform"
|
|
54
|
+
register_cop :MetadataMalformedDepends, "#{__dir__}/chef/correctness/metadata_malformed_version"
|
|
55
|
+
register_cop :MetadataMissingName, "#{__dir__}/chef/correctness/metadata_missing_name"
|
|
56
|
+
register_cop :MetadataMissingVersion, "#{__dir__}/chef/correctness/metadata_missing_version"
|
|
57
|
+
register_cop :NodeNormal, "#{__dir__}/chef/correctness/node_normal"
|
|
58
|
+
register_cop :NodeNormalUnless, "#{__dir__}/chef/correctness/node_normal_unless"
|
|
59
|
+
register_cop :CookbookUsesNodeSave, "#{__dir__}/chef/correctness/node_save"
|
|
60
|
+
register_cop :NotifiesActionNotSymbol, "#{__dir__}/chef/correctness/notifies_action_not_symbol"
|
|
61
|
+
register_cop :OctalModeAsString, "#{__dir__}/chef/correctness/octal_mode_as_string"
|
|
62
|
+
register_cop :OpenSSLPasswordHelpers, "#{__dir__}/chef/correctness/openssl_password_helpers"
|
|
63
|
+
register_cop :PlatformVersionStringComparison, "#{__dir__}/chef/correctness/platform_version_string_comparison"
|
|
64
|
+
register_cop :PowershellScriptDeleteFile, "#{__dir__}/chef/correctness/powershell_delete_file"
|
|
65
|
+
register_cop :PowershellFileExists, "#{__dir__}/chef/correctness/powershell_file_exists"
|
|
66
|
+
register_cop :PropertyWithoutType, "#{__dir__}/chef/correctness/property_without_type"
|
|
67
|
+
register_cop :ResourceSetsInternalProperties, "#{__dir__}/chef/correctness/resource_sets_internal_properties"
|
|
68
|
+
register_cop :ResourceSetsNameProperty, "#{__dir__}/chef/correctness/resource_sets_name_property"
|
|
69
|
+
register_cop :ResourceWithNoneAction, "#{__dir__}/chef/correctness/resource_with_none_action"
|
|
70
|
+
register_cop :RubyGuardWithoutBlock, "#{__dir__}/chef/correctness/ruby_guard_without_block"
|
|
71
|
+
register_cop :ScopedFileExist, "#{__dir__}/chef/correctness/scoped_file_exist"
|
|
72
|
+
register_cop :ServiceResource, "#{__dir__}/chef/correctness/service_resource"
|
|
73
|
+
register_cop :SupportsMustBeFloat, "#{__dir__}/chef/correctness/supports_must_be_float"
|
|
74
|
+
register_cop :TmpPath, "#{__dir__}/chef/correctness/tmp_path"
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# The Chef/Deprecations department.
|
|
78
|
+
module Deprecations
|
|
79
|
+
extend LazyLoader
|
|
80
|
+
|
|
81
|
+
register_cop :CookbooksDependsOnSelf, "#{__dir__}/chef/deprecation/cb_depends_on_self"
|
|
82
|
+
register_cop :ChefHandlerRecipe, "#{__dir__}/chef/deprecation/chef_handler_recipe"
|
|
83
|
+
register_cop :ChefHandlerUsesSupports, "#{__dir__}/chef/deprecation/chef_handler_supports"
|
|
84
|
+
register_cop :UsesChefRESTHelpers, "#{__dir__}/chef/deprecation/chef_rest"
|
|
85
|
+
register_cop :ChefRewind, "#{__dir__}/chef/deprecation/chef_rewind"
|
|
86
|
+
register_cop :ChefShellout, "#{__dir__}/chef/deprecation/chef_shellout"
|
|
87
|
+
register_cop :ChefSugarHelpers, "#{__dir__}/chef/deprecation/chef_sugar_helpers"
|
|
88
|
+
register_cop :ChefWindowsPlatformHelper, "#{__dir__}/chef/deprecation/chef_windows_platform_helper"
|
|
89
|
+
register_cop :ChefDKGenerators, "#{__dir__}/chef/deprecation/chefdk_generators"
|
|
90
|
+
register_cop :Cheffile, "#{__dir__}/chef/deprecation/cheffile"
|
|
91
|
+
register_cop :ChefSpecCoverageReport, "#{__dir__}/chef/deprecation/chefspec_coverage_report"
|
|
92
|
+
register_cop :ChefSpecLegacyRunner, "#{__dir__}/chef/deprecation/chefspec_legacy_runner"
|
|
93
|
+
register_cop :ChocolateyPackageUninstallAction, "#{__dir__}/chef/deprecation/chocolatey_package_uninstall_action"
|
|
94
|
+
register_cop :Delivery, "#{__dir__}/chef/deprecation/delivery"
|
|
95
|
+
register_cop :DependsOnChefNginxCookbook, "#{__dir__}/chef/deprecation/depends_chef_nginx_cookbook"
|
|
96
|
+
register_cop :DependsOnChefReportingCookbook, "#{__dir__}/chef/deprecation/depends_chef_reporting_cookbook"
|
|
97
|
+
register_cop :CookbookDependsOnCompatResource, "#{__dir__}/chef/deprecation/depends_compat_resource"
|
|
98
|
+
register_cop :DependsOnOmnibusUpdaterCookbook, "#{__dir__}/chef/deprecation/depends_omnibus_updater_cookbook"
|
|
99
|
+
register_cop :CookbookDependsOnPartialSearch, "#{__dir__}/chef/deprecation/depends_partial_search"
|
|
100
|
+
register_cop :CookbookDependsOnPoise, "#{__dir__}/chef/deprecation/depends_poise"
|
|
101
|
+
register_cop :DeprecatedChefSpecPlatform, "#{__dir__}/chef/deprecation/deprecated_chefspec_platform"
|
|
102
|
+
register_cop :UsesDeprecatedMixins, "#{__dir__}/chef/deprecation/deprecated_mixins"
|
|
103
|
+
register_cop :DeprecatedPlatformMethods, "#{__dir__}/chef/deprecation/deprecated_platform_methods"
|
|
104
|
+
register_cop :DeprecatedShelloutMethods, "#{__dir__}/chef/deprecation/deprecated_shellout_methods"
|
|
105
|
+
register_cop :DeprecatedSudoActions, "#{__dir__}/chef/deprecation/deprecated_sudo_actions"
|
|
106
|
+
register_cop :DeprecatedWindowsVersionCheck, "#{__dir__}/chef/deprecation/deprecated_windows_version_check"
|
|
107
|
+
register_cop :DeprecatedYumRepositoryActions, "#{__dir__}/chef/deprecation/deprecated_yum_repository_actions"
|
|
108
|
+
register_cop :DeprecatedYumRepositoryProperties, "#{__dir__}/chef/deprecation/deprecated_yum_repository_properties"
|
|
109
|
+
register_cop :EasyInstallResource, "#{__dir__}/chef/deprecation/easy_install"
|
|
110
|
+
register_cop :EOLAuditModeUsage, "#{__dir__}/chef/deprecation/eol_audit_mode"
|
|
111
|
+
register_cop :EpicFail, "#{__dir__}/chef/deprecation/epic_fail"
|
|
112
|
+
register_cop :ErlCallResource, "#{__dir__}/chef/deprecation/erl_call"
|
|
113
|
+
register_cop :ExecutePathProperty, "#{__dir__}/chef/deprecation/execute_path_property"
|
|
114
|
+
register_cop :ExecuteRelativeCreatesWithoutCwd, "#{__dir__}/chef/deprecation/execute_relative_creates_without_cwd"
|
|
115
|
+
register_cop :FoodcriticFile, "#{__dir__}/chef/deprecation/foodcritic_file"
|
|
116
|
+
register_cop :FoodcriticTesting, "#{__dir__}/chef/deprecation/foodcritic_testing"
|
|
117
|
+
register_cop :HWRPWithoutProvides, "#{__dir__}/chef/deprecation/hwrp_without_provides"
|
|
118
|
+
register_cop :HWRPWithoutUnifiedTrue, "#{__dir__}/chef/deprecation/hwrp_without_unified_mode_true"
|
|
119
|
+
register_cop :ResourceInheritsFromCompatResource, "#{__dir__}/chef/deprecation/inherits_compat_resource"
|
|
120
|
+
register_cop :LaunchdDeprecatedHashProperty, "#{__dir__}/chef/deprecation/launchd_deprecated_hash_property"
|
|
121
|
+
register_cop :LegacyNotifySyntax, "#{__dir__}/chef/deprecation/legacy_notify_syntax"
|
|
122
|
+
register_cop :LegacyYumCookbookRecipes, "#{__dir__}/chef/deprecation/legacy_yum_cookbook_recipes"
|
|
123
|
+
register_cop :LibrarianChefSpec, "#{__dir__}/chef/deprecation/librarian_chefspec"
|
|
124
|
+
register_cop :LocaleDeprecatedLcAllProperty, "#{__dir__}/chef/deprecation/locale_lc_all_property"
|
|
125
|
+
register_cop :LogResourceNotifications, "#{__dir__}/chef/deprecation/log_resource_notifications"
|
|
126
|
+
register_cop :MacosUserdefaultsGlobalProperty, "#{__dir__}/chef/deprecation/macos_userdefaults_global_property"
|
|
127
|
+
register_cop :NamePropertyWithDefaultValue, "#{__dir__}/chef/deprecation/name_property_and_default"
|
|
128
|
+
register_cop :NodeDeepFetch, "#{__dir__}/chef/deprecation/node_deep_fetch"
|
|
129
|
+
register_cop :NodeMethodsInsteadofAttributes, "#{__dir__}/chef/deprecation/node_methods_not_attributes"
|
|
130
|
+
register_cop :NodeSet, "#{__dir__}/chef/deprecation/node_set"
|
|
131
|
+
register_cop :NodeSetUnless, "#{__dir__}/chef/deprecation/node_set_unless"
|
|
132
|
+
register_cop :NodeSetWithoutLevel, "#{__dir__}/chef/deprecation/node_set_without_level"
|
|
133
|
+
register_cop :PartialSearchClassUsage, "#{__dir__}/chef/deprecation/partial_search_class_usage"
|
|
134
|
+
register_cop :PartialSearchHelperUsage, "#{__dir__}/chef/deprecation/partial_search_helper_usage"
|
|
135
|
+
register_cop :PoiseArchiveUsage, "#{__dir__}/chef/deprecation/poise_archive"
|
|
136
|
+
register_cop :PolicyfileCommunitySource, "#{__dir__}/chef/deprecation/policyfile_community_source"
|
|
137
|
+
register_cop :PowershellCookbookHelpers, "#{__dir__}/chef/deprecation/powershell_cookbook_helpers"
|
|
138
|
+
register_cop :RequireRecipe, "#{__dir__}/chef/deprecation/require_recipe"
|
|
139
|
+
register_cop :ResourceOverridesProvidesMethod, "#{__dir__}/chef/deprecation/resource_overrides_provides_method"
|
|
140
|
+
register_cop :ResourceUsesDslNameMethod, "#{__dir__}/chef/deprecation/resource_uses_dsl_name_method"
|
|
141
|
+
register_cop :ResourceUsesOnlyResourceName, "#{__dir__}/chef/deprecation/resource_uses_only_resource_name"
|
|
142
|
+
register_cop :ResourceUsesProviderBaseMethod, "#{__dir__}/chef/deprecation/resource_uses_provider_base_method"
|
|
143
|
+
register_cop :ResourceUsesUpdatedMethod, "#{__dir__}/chef/deprecation/resource_uses_updated_method"
|
|
144
|
+
register_cop :ResourceWithoutUnifiedTrue, "#{__dir__}/chef/deprecation/resource_without_unified_mode_true"
|
|
145
|
+
register_cop :Ruby27KeywordArgumentWarnings, "#{__dir__}/chef/deprecation/ruby_27_keyword_argument_warnings"
|
|
146
|
+
register_cop :RubyBlockCreateAction, "#{__dir__}/chef/deprecation/ruby_block_create_action"
|
|
147
|
+
register_cop :UsesRunCommandHelper, "#{__dir__}/chef/deprecation/run_command_helper"
|
|
148
|
+
register_cop :SearchUsesPositionalParameters, "#{__dir__}/chef/deprecation/search_uses_positional_parameters"
|
|
149
|
+
register_cop :UseAutomaticResourceName, "#{__dir__}/chef/deprecation/use_automatic_resource_name"
|
|
150
|
+
register_cop :UseInlineResourcesDefined, "#{__dir__}/chef/deprecation/use_inline_resources"
|
|
151
|
+
register_cop :UseYamlDump, "#{__dir__}/chef/deprecation/use_yaml_dump"
|
|
152
|
+
register_cop :UserDeprecatedSupportsProperty, "#{__dir__}/chef/deprecation/user_supports_property"
|
|
153
|
+
register_cop :VerifyPropertyUsesFileExpansion, "#{__dir__}/chef/deprecation/verify_property_file_expansion"
|
|
154
|
+
register_cop :WindowsFeatureServermanagercmd, "#{__dir__}/chef/deprecation/windows_feature_servermanagercmd"
|
|
155
|
+
register_cop :WindowsPackageInstallerTypeString, "#{__dir__}/chef/deprecation/windows_package_installer_type_string"
|
|
156
|
+
register_cop :WindowsTaskChangeAction, "#{__dir__}/chef/deprecation/windows_task_change_action"
|
|
157
|
+
register_cop :WindowsVersionHelpers, "#{__dir__}/chef/deprecation/windows_version_helpers"
|
|
158
|
+
register_cop :IncludingXMLRubyRecipe, "#{__dir__}/chef/deprecation/xml_ruby_recipe"
|
|
159
|
+
register_cop :IncludingYumDNFCompatRecipe, "#{__dir__}/chef/deprecation/yum_dnf_compat_recipe"
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# The Chef/Effortless department.
|
|
163
|
+
module Effortless
|
|
164
|
+
extend LazyLoader
|
|
165
|
+
|
|
166
|
+
register_cop :Berksfile, "#{__dir__}/chef/effortless/berksfile"
|
|
167
|
+
register_cop :ChefVaultUsed, "#{__dir__}/chef/effortless/chef_vault_used"
|
|
168
|
+
register_cop :CookbookUsesDatabags, "#{__dir__}/chef/effortless/data_bags"
|
|
169
|
+
register_cop :DependsChefVault, "#{__dir__}/chef/effortless/depends_chef_vault"
|
|
170
|
+
register_cop :CookbookUsesEnvironments, "#{__dir__}/chef/effortless/node_environment"
|
|
171
|
+
register_cop :CookbookUsesPolicygroups, "#{__dir__}/chef/effortless/node_policygroup"
|
|
172
|
+
register_cop :CookbookUsesRoles, "#{__dir__}/chef/effortless/node_roles"
|
|
173
|
+
register_cop :SearchForEnvironmentsOrRoles, "#{__dir__}/chef/effortless/search_for_environments_or_roles"
|
|
174
|
+
register_cop :CookbookUsesSearch, "#{__dir__}/chef/effortless/search_used"
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# The Chef/Modernize department.
|
|
178
|
+
module Modernize
|
|
179
|
+
extend LazyLoader
|
|
180
|
+
|
|
181
|
+
register_cop :ActionMethodInResource, "#{__dir__}/chef/modernize/action_method_in_resource"
|
|
182
|
+
register_cop :AllowedActionsFromInitialize, "#{__dir__}/chef/modernize/allowed_actions_initializer"
|
|
183
|
+
register_cop :IncludingAptDefaultRecipe, "#{__dir__}/chef/modernize/apt_default_recipe"
|
|
184
|
+
register_cop :LegacyBerksfileSource, "#{__dir__}/chef/modernize/berksfile_source"
|
|
185
|
+
register_cop :UseBuildEssentialResource, "#{__dir__}/chef/modernize/build_essential"
|
|
186
|
+
register_cop :UnnecessaryDependsChef14, "#{__dir__}/chef/modernize/chef_14_resources"
|
|
187
|
+
register_cop :UnnecessaryDependsChef15, "#{__dir__}/chef/modernize/chef_15_resources"
|
|
188
|
+
register_cop :ChefGemNokogiri, "#{__dir__}/chef/modernize/chef_gem_nokogiri"
|
|
189
|
+
register_cop :ClassEvalActionClass, "#{__dir__}/chef/modernize/class_eval_action_class"
|
|
190
|
+
register_cop :ResourceForcingCompileTime, "#{__dir__}/chef/modernize/compile_time_resources"
|
|
191
|
+
register_cop :ConditionalUsingTest, "#{__dir__}/chef/modernize/conditional_using_test"
|
|
192
|
+
register_cop :CronDFileOrTemplate, "#{__dir__}/chef/modernize/cron_d_file_or_template"
|
|
193
|
+
register_cop :CronManageResource, "#{__dir__}/chef/modernize/cron_manage_resource"
|
|
194
|
+
register_cop :DatabagHelpers, "#{__dir__}/chef/modernize/databag_helpers"
|
|
195
|
+
register_cop :DeclareActionClass, "#{__dir__}/chef/modernize/declare_action_class"
|
|
196
|
+
register_cop :DefaultActionFromInitialize, "#{__dir__}/chef/modernize/default_action_initializer"
|
|
197
|
+
register_cop :DefinesChefSpecMatchers, "#{__dir__}/chef/modernize/defines_chefspec_matchers"
|
|
198
|
+
register_cop :Definitions, "#{__dir__}/chef/modernize/definitions"
|
|
199
|
+
register_cop :DependsOnChefVaultCookbook, "#{__dir__}/chef/modernize/depends_chef_vault_cookbook"
|
|
200
|
+
register_cop :DependsOnChocolateyCookbooks, "#{__dir__}/chef/modernize/depends_chocolatey_cookbooks"
|
|
201
|
+
register_cop :DependsOnKernelModuleCookbook, "#{__dir__}/chef/modernize/depends_kernel_module_cookbook"
|
|
202
|
+
register_cop :DependsOnLocaleCookbook, "#{__dir__}/chef/modernize/depends_locale_cookbook"
|
|
203
|
+
register_cop :DependsOnOpensslCookbook, "#{__dir__}/chef/modernize/depends_openssl_cookbook"
|
|
204
|
+
register_cop :DependsOnTimezoneLwrpCookbook, "#{__dir__}/chef/modernize/depends_timezone_lwrp_cookbook"
|
|
205
|
+
register_cop :DependsOnWindowsFirewallCookbook, "#{__dir__}/chef/modernize/depends_windows_firewall_cookbook"
|
|
206
|
+
register_cop :DependsOnZypperCookbook, "#{__dir__}/chef/modernize/depends_zypper_cookbook"
|
|
207
|
+
register_cop :DslIncludeInResource, "#{__dir__}/chef/modernize/dsl_include_in_resource"
|
|
208
|
+
register_cop :EmptyResourceInitializeMethod, "#{__dir__}/chef/modernize/empty_resource_initialize"
|
|
209
|
+
register_cop :ExecuteAptUpdate, "#{__dir__}/chef/modernize/execute_apt_update"
|
|
210
|
+
register_cop :ExecuteArchiveExtract, "#{__dir__}/chef/modernize/execute_archive_extract"
|
|
211
|
+
register_cop :ExecuteScExe, "#{__dir__}/chef/modernize/execute_sc_exe"
|
|
212
|
+
register_cop :ExecuteSleep, "#{__dir__}/chef/modernize/execute_sleep"
|
|
213
|
+
register_cop :ExecuteSysctl, "#{__dir__}/chef/modernize/execute_sysctl"
|
|
214
|
+
register_cop :ExecuteTzUtil, "#{__dir__}/chef/modernize/execute_tzutil"
|
|
215
|
+
register_cop :ExecuteUpdateAlternatives, "#{__dir__}/chef/modernize/execute_update_alternatives"
|
|
216
|
+
register_cop :FoodcriticComments, "#{__dir__}/chef/modernize/foodcritic_comments"
|
|
217
|
+
register_cop :IfProvidesDefaultAction, "#{__dir__}/chef/modernize/if_provides_default_action"
|
|
218
|
+
register_cop :IncludingMixinShelloutInResources, "#{__dir__}/chef/modernize/includes_mixin_shellout"
|
|
219
|
+
register_cop :LibarchiveFileResource, "#{__dir__}/chef/modernize/libarchive_file"
|
|
220
|
+
register_cop :MacOsXUserdefaults, "#{__dir__}/chef/modernize/macos_user_defaults"
|
|
221
|
+
register_cop :MinitestHandlerUsage, "#{__dir__}/chef/modernize/minitest_handler_usage"
|
|
222
|
+
register_cop :NodeInitPackage, "#{__dir__}/chef/modernize/node_init_package"
|
|
223
|
+
register_cop :NodeRolesInclude, "#{__dir__}/chef/modernize/node_roles_include"
|
|
224
|
+
register_cop :IncludingOhaiDefaultRecipe, "#{__dir__}/chef/modernize/ohai_default_recipe"
|
|
225
|
+
register_cop :OpensslRsaKeyResource, "#{__dir__}/chef/modernize/openssl_rsa_key_resource"
|
|
226
|
+
register_cop :OpensslX509Resource, "#{__dir__}/chef/modernize/openssl_x509_resource"
|
|
227
|
+
register_cop :OsxConfigProfileResource, "#{__dir__}/chef/modernize/osx_config_profile_resource"
|
|
228
|
+
register_cop :PowershellDownloadFile, "#{__dir__}/chef/modernize/powershell_download_file"
|
|
229
|
+
register_cop :PowershellScriptExpandArchive, "#{__dir__}/chef/modernize/powershell_expand_archive"
|
|
230
|
+
register_cop :PowerShellGuardInterpreter, "#{__dir__}/chef/modernize/powershell_guard_interpreter"
|
|
231
|
+
register_cop :PowershellInstallPackage, "#{__dir__}/chef/modernize/powershell_install_package"
|
|
232
|
+
register_cop :PowershellInstallWindowsFeature, "#{__dir__}/chef/modernize/powershell_install_windowsfeature"
|
|
233
|
+
register_cop :PropertyWithNameAttribute, "#{__dir__}/chef/modernize/property_with_name_attribute"
|
|
234
|
+
register_cop :ProvidesFromInitialize, "#{__dir__}/chef/modernize/provides_initializer"
|
|
235
|
+
register_cop :ResourceNameFromInitialize, "#{__dir__}/chef/modernize/resource_name_initializer"
|
|
236
|
+
register_cop :SetOrReturnInResources, "#{__dir__}/chef/modernize/resource_set_or_return"
|
|
237
|
+
register_cop :CustomResourceWithAttributes, "#{__dir__}/chef/modernize/resource_with_attributes"
|
|
238
|
+
register_cop :RespondToCompileTime, "#{__dir__}/chef/modernize/respond_to_compile_time"
|
|
239
|
+
register_cop :RespondToInMetadata, "#{__dir__}/chef/modernize/respond_to_metadata"
|
|
240
|
+
register_cop :RespondToProvides, "#{__dir__}/chef/modernize/respond_to_provides"
|
|
241
|
+
register_cop :RespondToResourceName, "#{__dir__}/chef/modernize/respond_to_resource_name"
|
|
242
|
+
register_cop :WindowsScResource, "#{__dir__}/chef/modernize/sc_windows_resource"
|
|
243
|
+
register_cop :SevenZipArchiveResource, "#{__dir__}/chef/modernize/seven_zip_archive"
|
|
244
|
+
register_cop :ShellOutHelper, "#{__dir__}/chef/modernize/shell_out_helper"
|
|
245
|
+
register_cop :ShellOutToChocolatey, "#{__dir__}/chef/modernize/shellouts_to_chocolatey"
|
|
246
|
+
register_cop :SimplifyAptPpaSetup, "#{__dir__}/chef/modernize/simplify_apt_ppa_setup"
|
|
247
|
+
register_cop :SysctlParamResource, "#{__dir__}/chef/modernize/sysctl_param_resource"
|
|
248
|
+
register_cop :UnnecessaryMixlibShelloutRequire, "#{__dir__}/chef/modernize/unnecessary_mixlib_shellout_require"
|
|
249
|
+
register_cop :UseChefLanguageCloudHelpers, "#{__dir__}/chef/modernize/use_chef_language_cloud_helpers"
|
|
250
|
+
register_cop :UseChefLanguageEnvHelpers, "#{__dir__}/chef/modernize/use_chef_language_env_helpers"
|
|
251
|
+
register_cop :UseChefLanguageSystemdHelper, "#{__dir__}/chef/modernize/use_chef_language_systemd_helper"
|
|
252
|
+
register_cop :UseMultipackageInstalls, "#{__dir__}/chef/modernize/use_multipackage_installs"
|
|
253
|
+
register_cop :UseRequireRelative, "#{__dir__}/chef/modernize/use_require_relative"
|
|
254
|
+
register_cop :WhyRunSupportedTrue, "#{__dir__}/chef/modernize/whyrun_supported_true"
|
|
255
|
+
register_cop :IncludingWindowsDefaultRecipe, "#{__dir__}/chef/modernize/windows_default_recipe"
|
|
256
|
+
register_cop :WindowsRegistryUAC, "#{__dir__}/chef/modernize/windows_registry_uac"
|
|
257
|
+
register_cop :WindowsZipfileUsage, "#{__dir__}/chef/modernize/windows_zipfile"
|
|
258
|
+
register_cop :ZipfileResource, "#{__dir__}/chef/modernize/zipfile_resource"
|
|
259
|
+
register_cop :UsesZypperRepo, "#{__dir__}/chef/modernize/zypper_repo"
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# The Chef/RedundantCode department.
|
|
263
|
+
module RedundantCode
|
|
264
|
+
extend LazyLoader
|
|
265
|
+
|
|
266
|
+
register_cop :AptRepositoryDistributionDefault, "#{__dir__}/chef/redundant/apt_repository_distribution_default"
|
|
267
|
+
register_cop :AptRepositoryNotifiesAptUpdate, "#{__dir__}/chef/redundant/apt_repository_notifies_apt_update"
|
|
268
|
+
register_cop :AttributeMetadata, "#{__dir__}/chef/redundant/attribute_metadata"
|
|
269
|
+
register_cop :ConflictsMetadata, "#{__dir__}/chef/redundant/conflicts_metadata"
|
|
270
|
+
register_cop :CustomResourceWithAllowedActions, "#{__dir__}/chef/redundant/custom_resource_with_allowed_actions"
|
|
271
|
+
register_cop :DoubleCompileTime, "#{__dir__}/chef/redundant/double_compile_time"
|
|
272
|
+
register_cop :GroupingMetadata, "#{__dir__}/chef/redundant/grouping_metadata"
|
|
273
|
+
register_cop :LongDescriptionMetadata, "#{__dir__}/chef/redundant/long_description_metadata"
|
|
274
|
+
register_cop :MultiplePlatformChecks, "#{__dir__}/chef/redundant/multiple_platform_checks"
|
|
275
|
+
register_cop :NamePropertyIsRequired, "#{__dir__}/chef/redundant/name_property_and_required"
|
|
276
|
+
register_cop :OhaiAttributeToString, "#{__dir__}/chef/redundant/ohai_attribute_to_string"
|
|
277
|
+
register_cop :PropertySplatRegex, "#{__dir__}/chef/redundant/property_splat_regex"
|
|
278
|
+
register_cop :PropertyWithRequiredAndDefault, "#{__dir__}/chef/redundant/property_with_default_and_required"
|
|
279
|
+
register_cop :ProvidesMetadata, "#{__dir__}/chef/redundant/provides_metadata"
|
|
280
|
+
register_cop :RecipeMetadata, "#{__dir__}/chef/redundant/recipe_metadata"
|
|
281
|
+
register_cop :ReplacesMetadata, "#{__dir__}/chef/redundant/replaces_metadata"
|
|
282
|
+
register_cop :ResourceWithNothingAction, "#{__dir__}/chef/redundant/resource_with_nothing_action"
|
|
283
|
+
register_cop :SensitivePropertyInResource, "#{__dir__}/chef/redundant/sensitive_property_in_resource"
|
|
284
|
+
register_cop :ServiceGuardOnStopDisable, "#{__dir__}/chef/redundant/service_guard_on_stop_disable"
|
|
285
|
+
register_cop :StringPropertyWithNilDefault, "#{__dir__}/chef/redundant/string_property_with_nil_default"
|
|
286
|
+
register_cop :SuggestsMetadata, "#{__dir__}/chef/redundant/suggests_metadata"
|
|
287
|
+
register_cop :UnnecessaryDesiredState, "#{__dir__}/chef/redundant/unnecessary_desired_state"
|
|
288
|
+
register_cop :UnnecessaryNameProperty, "#{__dir__}/chef/redundant/unnecessary_name_property"
|
|
289
|
+
register_cop :UseCreateIfMissing, "#{__dir__}/chef/redundant/use_create_if_missing"
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# The Chef/Security department.
|
|
293
|
+
module Security
|
|
294
|
+
extend LazyLoader
|
|
295
|
+
|
|
296
|
+
register_cop :InsecureRemoteFileSource, "#{__dir__}/chef/security/insecure_remote_file_source"
|
|
297
|
+
register_cop :SshPrivateKey, "#{__dir__}/chef/security/ssh_private_key"
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# The Chef/Sharing department.
|
|
301
|
+
module Sharing
|
|
302
|
+
extend LazyLoader
|
|
303
|
+
|
|
304
|
+
register_cop :DefaultMetadataMaintainer, "#{__dir__}/chef/sharing/default_maintainer_metadata"
|
|
305
|
+
register_cop :EmptyMetadataField, "#{__dir__}/chef/sharing/empty_metadata_field"
|
|
306
|
+
register_cop :EmptyPropertyDescription, "#{__dir__}/chef/sharing/empty_property_description"
|
|
307
|
+
register_cop :IncludePropertyDescriptions, "#{__dir__}/chef/sharing/include_property_descriptions"
|
|
308
|
+
register_cop :IncludeResourceDescriptions, "#{__dir__}/chef/sharing/include_resource_descriptions"
|
|
309
|
+
register_cop :IncludeResourceExamples, "#{__dir__}/chef/sharing/include_resource_examples"
|
|
310
|
+
register_cop :InsecureCookbookURL, "#{__dir__}/chef/sharing/insecure_cookbook_url"
|
|
311
|
+
register_cop :InvalidLicenseString, "#{__dir__}/chef/sharing/invalid_license_string"
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# The Chef/Style department.
|
|
315
|
+
module Style
|
|
316
|
+
extend LazyLoader
|
|
317
|
+
|
|
318
|
+
register_cop :AttributeKeys, "#{__dir__}/chef/style/attribute_keys"
|
|
319
|
+
register_cop :ChefWhaaat, "#{__dir__}/chef/style/chef_whaaat"
|
|
320
|
+
register_cop :CommentSentenceSpacing, "#{__dir__}/chef/style/comment_sentence_spacing"
|
|
321
|
+
register_cop :CopyrightCommentFormat, "#{__dir__}/chef/style/comments_copyright_format"
|
|
322
|
+
register_cop :DefaultCopyrightComments, "#{__dir__}/chef/style/comments_default_copyright"
|
|
323
|
+
register_cop :CommentFormat, "#{__dir__}/chef/style/comments_format"
|
|
324
|
+
register_cop :FileMode, "#{__dir__}/chef/style/file_mode"
|
|
325
|
+
register_cop :ImmediateNotificationTiming, "#{__dir__}/chef/style/immediate_notification_timing"
|
|
326
|
+
register_cop :IncludeRecipeWithParentheses, "#{__dir__}/chef/style/include_recipe_with_parentheses"
|
|
327
|
+
register_cop :NegatingOnlyIf, "#{__dir__}/chef/style/negating_only_if"
|
|
328
|
+
register_cop :OverlyComplexSupportsDependsMetadata, "#{__dir__}/chef/style/overly_complex_supports_depends_metadata"
|
|
329
|
+
register_cop :SimplifyPlatformMajorVersionCheck, "#{__dir__}/chef/style/simplify_platform_major_version_check"
|
|
330
|
+
register_cop :TrueClassFalseClassResourceProperties, "#{__dir__}/chef/style/true_false_resource_properties"
|
|
331
|
+
register_cop :UnnecessaryOSCheck, "#{__dir__}/chef/style/unnecessary_os_check"
|
|
332
|
+
register_cop :UnnecessaryPlatformCaseStatement, "#{__dir__}/chef/style/unnecessary_platform_case_statement"
|
|
333
|
+
register_cop :UsePlatformHelpers, "#{__dir__}/chef/style/use_platform_helpers"
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# The Chef/Ruby department. These are the Chefstyle cops, which live under
|
|
337
|
+
# `cop/chefstyle/ruby` but share the Chef department namespace.
|
|
338
|
+
module Ruby
|
|
339
|
+
extend LazyLoader
|
|
340
|
+
|
|
341
|
+
register_cop :GemspecLicense, "#{__dir__}/chefstyle/ruby/gemspec_license"
|
|
342
|
+
register_cop :GemspecRequireRubygems, "#{__dir__}/chefstyle/ruby/gemspec_require_rubygems"
|
|
343
|
+
register_cop :LegacyPowershellOutMethods, "#{__dir__}/chefstyle/ruby/legacy_powershell_out_methods"
|
|
344
|
+
register_cop :RequireNetHttps, "#{__dir__}/chefstyle/ruby/require_net_https"
|
|
345
|
+
register_cop :UnlessDefinedRequire, "#{__dir__}/chefstyle/ruby/unless_defined_require"
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
end
|
|
349
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# Copyright (c) 2016-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
|
-
# Author:: Tim Smith (<
|
|
4
|
+
# Author:: Tim Smith (<tsmith84@proton.me>)
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|