cookstyle-ng 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +25 -0
- data/LICENSE +201 -0
- data/bin/cookstyle +26 -0
- data/bin/cookstyle-profile +31 -0
- data/config/cookstyle.yml +3248 -0
- data/cookstyle.gemspec +30 -0
- data/lib/cookstyle/version.rb +5 -0
- data/lib/cookstyle.rb +44 -0
- data/lib/rubocop/chef/autocorrect_helpers.rb +33 -0
- data/lib/rubocop/chef/cookbook_helpers.rb +127 -0
- data/lib/rubocop/chef/cookbook_only.rb +76 -0
- data/lib/rubocop/chef/platform_helpers.rb +72 -0
- data/lib/rubocop/chef.rb +11 -0
- data/lib/rubocop/cop/chef/correctness/block_guard_clause_string_only.rb +61 -0
- data/lib/rubocop/cop/chef/correctness/chef_application_fatal.rb +56 -0
- data/lib/rubocop/cop/chef/correctness/conditional_ruby_shellout.rb +69 -0
- data/lib/rubocop/cop/chef/correctness/dnf_package_allow_downgrades.rb +55 -0
- data/lib/rubocop/cop/chef/correctness/incorrect_library_injection.rb +77 -0
- data/lib/rubocop/cop/chef/correctness/invalid_cookbook_name.rb +47 -0
- data/lib/rubocop/cop/chef/correctness/invalid_default_action.rb +48 -0
- data/lib/rubocop/cop/chef/correctness/invalid_notification_resource.rb +59 -0
- data/lib/rubocop/cop/chef/correctness/invalid_notification_timing.rb +55 -0
- data/lib/rubocop/cop/chef/correctness/invalid_platform_family_helper.rb +72 -0
- data/lib/rubocop/cop/chef/correctness/invalid_platform_family_values_in_case.rb +70 -0
- data/lib/rubocop/cop/chef/correctness/invalid_platform_helper.rb +57 -0
- data/lib/rubocop/cop/chef/correctness/invalid_platform_metadata.rb +89 -0
- data/lib/rubocop/cop/chef/correctness/invalid_platform_values_in_case.rb +70 -0
- data/lib/rubocop/cop/chef/correctness/invalid_value_for_platform_family_helper.rb +70 -0
- data/lib/rubocop/cop/chef/correctness/invalid_value_for_platform_helper.rb +69 -0
- data/lib/rubocop/cop/chef/correctness/invalid_version_metadata.rb +48 -0
- data/lib/rubocop/cop/chef/correctness/lazy_eval_node_attribute_defaults.rb +53 -0
- data/lib/rubocop/cop/chef/correctness/lazy_in_resource_guard.rb +67 -0
- data/lib/rubocop/cop/chef/correctness/macos_userdefaults_invalid_type.rb +67 -0
- data/lib/rubocop/cop/chef/correctness/malformed_value_for_platform.rb +67 -0
- data/lib/rubocop/cop/chef/correctness/metadata_malformed_version.rb +58 -0
- data/lib/rubocop/cop/chef/correctness/metadata_missing_name.rb +54 -0
- data/lib/rubocop/cop/chef/correctness/metadata_missing_version.rb +51 -0
- data/lib/rubocop/cop/chef/correctness/node_normal.rb +53 -0
- data/lib/rubocop/cop/chef/correctness/node_normal_unless.rb +53 -0
- data/lib/rubocop/cop/chef/correctness/node_save.rb +46 -0
- data/lib/rubocop/cop/chef/correctness/notifies_action_not_symbol.rb +64 -0
- data/lib/rubocop/cop/chef/correctness/octal_mode_as_string.rb +48 -0
- data/lib/rubocop/cop/chef/correctness/openssl_password_helpers.rb +46 -0
- data/lib/rubocop/cop/chef/correctness/powershell_delete_file.rb +54 -0
- data/lib/rubocop/cop/chef/correctness/powershell_file_exists.rb +50 -0
- data/lib/rubocop/cop/chef/correctness/property_without_type.rb +59 -0
- data/lib/rubocop/cop/chef/correctness/resource_sets_internal_properties.rb +51 -0
- data/lib/rubocop/cop/chef/correctness/resource_sets_name_property.rb +50 -0
- data/lib/rubocop/cop/chef/correctness/resource_with_none_action.rb +56 -0
- data/lib/rubocop/cop/chef/correctness/scoped_file_exist.rb +52 -0
- data/lib/rubocop/cop/chef/correctness/service_resource.rb +56 -0
- data/lib/rubocop/cop/chef/correctness/supports_must_be_float.rb +52 -0
- data/lib/rubocop/cop/chef/correctness/tmp_path.rb +59 -0
- data/lib/rubocop/cop/chef/deprecation/cb_depends_on_self.rb +57 -0
- data/lib/rubocop/cop/chef/deprecation/chef_handler_recipe.rb +52 -0
- data/lib/rubocop/cop/chef/deprecation/chef_handler_supports.rb +55 -0
- data/lib/rubocop/cop/chef/deprecation/chef_rest.rb +57 -0
- data/lib/rubocop/cop/chef/deprecation/chef_rewind.rb +98 -0
- data/lib/rubocop/cop/chef/deprecation/chef_shellout.rb +83 -0
- data/lib/rubocop/cop/chef/deprecation/chef_sugar_helpers.rb +55 -0
- data/lib/rubocop/cop/chef/deprecation/chef_windows_platform_helper.rb +55 -0
- data/lib/rubocop/cop/chef/deprecation/chefdk_generators.rb +56 -0
- data/lib/rubocop/cop/chef/deprecation/cheffile.rb +39 -0
- data/lib/rubocop/cop/chef/deprecation/chefspec_coverage_report.rb +49 -0
- data/lib/rubocop/cop/chef/deprecation/chefspec_legacy_runner.rb +61 -0
- data/lib/rubocop/cop/chef/deprecation/chocolatey_package_uninstall_action.rb +56 -0
- data/lib/rubocop/cop/chef/deprecation/delivery.rb +48 -0
- data/lib/rubocop/cop/chef/deprecation/depends_chef_nginx_cookbook.rb +54 -0
- data/lib/rubocop/cop/chef/deprecation/depends_chef_reporting_cookbook.rb +51 -0
- data/lib/rubocop/cop/chef/deprecation/depends_compat_resource.rb +54 -0
- data/lib/rubocop/cop/chef/deprecation/depends_omnibus_updater_cookbook.rb +54 -0
- data/lib/rubocop/cop/chef/deprecation/depends_partial_search.rb +50 -0
- data/lib/rubocop/cop/chef/deprecation/depends_poise.rb +48 -0
- data/lib/rubocop/cop/chef/deprecation/deprecated_chefspec_platform.rb +129 -0
- data/lib/rubocop/cop/chef/deprecation/deprecated_mixins.rb +78 -0
- data/lib/rubocop/cop/chef/deprecation/deprecated_platform_methods.rb +61 -0
- data/lib/rubocop/cop/chef/deprecation/deprecated_shellout_methods.rb +64 -0
- data/lib/rubocop/cop/chef/deprecation/deprecated_sudo_actions.rb +65 -0
- data/lib/rubocop/cop/chef/deprecation/deprecated_windows_version_check.rb +42 -0
- data/lib/rubocop/cop/chef/deprecation/deprecated_yum_repository_actions.rb +67 -0
- data/lib/rubocop/cop/chef/deprecation/deprecated_yum_repository_properties.rb +69 -0
- data/lib/rubocop/cop/chef/deprecation/easy_install.rb +42 -0
- data/lib/rubocop/cop/chef/deprecation/eol_audit_mode.rb +49 -0
- data/lib/rubocop/cop/chef/deprecation/epic_fail.rb +51 -0
- data/lib/rubocop/cop/chef/deprecation/erl_call.rb +42 -0
- data/lib/rubocop/cop/chef/deprecation/execute_path_property.rb +50 -0
- data/lib/rubocop/cop/chef/deprecation/execute_relative_creates_without_cwd.rb +66 -0
- data/lib/rubocop/cop/chef/deprecation/foodcritic_file.rb +41 -0
- data/lib/rubocop/cop/chef/deprecation/foodcritic_testing.rb +43 -0
- data/lib/rubocop/cop/chef/deprecation/hwrp_without_provides.rb +140 -0
- data/lib/rubocop/cop/chef/deprecation/hwrp_without_unified_mode_true.rb +86 -0
- data/lib/rubocop/cop/chef/deprecation/inherits_compat_resource.rb +59 -0
- data/lib/rubocop/cop/chef/deprecation/launchd_deprecated_hash_property.rb +56 -0
- data/lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb +91 -0
- data/lib/rubocop/cop/chef/deprecation/legacy_yum_cookbook_recipes.rb +53 -0
- data/lib/rubocop/cop/chef/deprecation/librarian_chefspec.rb +42 -0
- data/lib/rubocop/cop/chef/deprecation/locale_lc_all_property.rb +46 -0
- data/lib/rubocop/cop/chef/deprecation/log_resource_notifications.rb +63 -0
- data/lib/rubocop/cop/chef/deprecation/macos_userdefaults_global_property.rb +60 -0
- data/lib/rubocop/cop/chef/deprecation/name_property_and_default.rb +60 -0
- data/lib/rubocop/cop/chef/deprecation/node_deep_fetch.rb +65 -0
- data/lib/rubocop/cop/chef/deprecation/node_methods_not_attributes.rb +80 -0
- data/lib/rubocop/cop/chef/deprecation/node_set.rb +54 -0
- data/lib/rubocop/cop/chef/deprecation/node_set_unless.rb +54 -0
- data/lib/rubocop/cop/chef/deprecation/node_set_without_level.rb +70 -0
- data/lib/rubocop/cop/chef/deprecation/partial_search_class_usage.rb +67 -0
- data/lib/rubocop/cop/chef/deprecation/partial_search_helper_usage.rb +61 -0
- data/lib/rubocop/cop/chef/deprecation/poise_archive.rb +63 -0
- data/lib/rubocop/cop/chef/deprecation/policyfile_community_source.rb +53 -0
- data/lib/rubocop/cop/chef/deprecation/powershell_cookbook_helpers.rb +59 -0
- data/lib/rubocop/cop/chef/deprecation/require_recipe.rb +53 -0
- data/lib/rubocop/cop/chef/deprecation/resource_overrides_provides_method.rb +48 -0
- data/lib/rubocop/cop/chef/deprecation/resource_uses_dsl_name_method.rb +46 -0
- data/lib/rubocop/cop/chef/deprecation/resource_uses_only_resource_name.rb +84 -0
- data/lib/rubocop/cop/chef/deprecation/resource_uses_provider_base_method.rb +40 -0
- data/lib/rubocop/cop/chef/deprecation/resource_uses_updated_method.rb +50 -0
- data/lib/rubocop/cop/chef/deprecation/resource_without_unified_mode_true.rb +87 -0
- data/lib/rubocop/cop/chef/deprecation/ruby_27_keyword_argument_warnings.rb +56 -0
- data/lib/rubocop/cop/chef/deprecation/ruby_block_create_action.rb +62 -0
- data/lib/rubocop/cop/chef/deprecation/run_command_helper.rb +63 -0
- data/lib/rubocop/cop/chef/deprecation/search_uses_positional_parameters.rb +136 -0
- data/lib/rubocop/cop/chef/deprecation/use_automatic_resource_name.rb +52 -0
- data/lib/rubocop/cop/chef/deprecation/use_inline_resources.rb +57 -0
- data/lib/rubocop/cop/chef/deprecation/use_yaml_dump.rb +47 -0
- data/lib/rubocop/cop/chef/deprecation/user_supports_property.rb +71 -0
- data/lib/rubocop/cop/chef/deprecation/verify_property_file_expansion.rb +57 -0
- data/lib/rubocop/cop/chef/deprecation/windows_feature_servermanagercmd.rb +58 -0
- data/lib/rubocop/cop/chef/deprecation/windows_package_installer_type_string.rb +60 -0
- data/lib/rubocop/cop/chef/deprecation/windows_task_change_action.rb +83 -0
- data/lib/rubocop/cop/chef/deprecation/windows_version_helpers.rb +71 -0
- data/lib/rubocop/cop/chef/deprecation/xml_ruby_recipe.rb +51 -0
- data/lib/rubocop/cop/chef/deprecation/yum_dnf_compat_recipe.rb +53 -0
- data/lib/rubocop/cop/chef/effortless/berksfile.rb +39 -0
- data/lib/rubocop/cop/chef/effortless/chef_vault_used.rb +87 -0
- data/lib/rubocop/cop/chef/effortless/data_bags.rb +40 -0
- data/lib/rubocop/cop/chef/effortless/depends_chef_vault.rb +47 -0
- data/lib/rubocop/cop/chef/effortless/node_environment.rb +45 -0
- data/lib/rubocop/cop/chef/effortless/node_policygroup.rb +44 -0
- data/lib/rubocop/cop/chef/effortless/node_roles.rb +45 -0
- data/lib/rubocop/cop/chef/effortless/search_for_environments_or_roles.rb +43 -0
- data/lib/rubocop/cop/chef/effortless/search_used.rb +40 -0
- data/lib/rubocop/cop/chef/modernize/action_method_in_resource.rb +57 -0
- data/lib/rubocop/cop/chef/modernize/allowed_actions_initializer.rb +77 -0
- data/lib/rubocop/cop/chef/modernize/apt_default_recipe.rb +54 -0
- data/lib/rubocop/cop/chef/modernize/berksfile_source.rb +70 -0
- data/lib/rubocop/cop/chef/modernize/build_essential.rb +55 -0
- data/lib/rubocop/cop/chef/modernize/chef_14_resources.rb +60 -0
- data/lib/rubocop/cop/chef/modernize/chef_15_resources.rb +57 -0
- data/lib/rubocop/cop/chef/modernize/chef_gem_nokogiri.rb +63 -0
- data/lib/rubocop/cop/chef/modernize/class_eval_action_class.rb +63 -0
- data/lib/rubocop/cop/chef/modernize/compile_time_resources.rb +53 -0
- data/lib/rubocop/cop/chef/modernize/conditional_using_test.rb +55 -0
- data/lib/rubocop/cop/chef/modernize/cron_d_file_or_template.rb +121 -0
- data/lib/rubocop/cop/chef/modernize/cron_manage_resource.rb +50 -0
- data/lib/rubocop/cop/chef/modernize/databag_helpers.rb +59 -0
- data/lib/rubocop/cop/chef/modernize/declare_action_class.rb +54 -0
- data/lib/rubocop/cop/chef/modernize/default_action_initializer.rb +74 -0
- data/lib/rubocop/cop/chef/modernize/defines_chefspec_matchers.rb +54 -0
- data/lib/rubocop/cop/chef/modernize/definitions.rb +36 -0
- data/lib/rubocop/cop/chef/modernize/depends_chef_vault_cookbook.rb +54 -0
- data/lib/rubocop/cop/chef/modernize/depends_chocolatey_cookbooks.rb +55 -0
- data/lib/rubocop/cop/chef/modernize/depends_kernel_module_cookbook.rb +54 -0
- data/lib/rubocop/cop/chef/modernize/depends_locale_cookbook.rb +54 -0
- data/lib/rubocop/cop/chef/modernize/depends_openssl_cookbook.rb +54 -0
- data/lib/rubocop/cop/chef/modernize/depends_timezone_lwrp_cookbook.rb +54 -0
- data/lib/rubocop/cop/chef/modernize/depends_windows_firewall_cookbook.rb +54 -0
- data/lib/rubocop/cop/chef/modernize/depends_zypper_cookbook.rb +54 -0
- data/lib/rubocop/cop/chef/modernize/dsl_include_in_resource.rb +55 -0
- data/lib/rubocop/cop/chef/modernize/empty_resource_initialize.rb +52 -0
- data/lib/rubocop/cop/chef/modernize/execute_apt_update.rb +81 -0
- data/lib/rubocop/cop/chef/modernize/execute_sc_exe.rb +67 -0
- data/lib/rubocop/cop/chef/modernize/execute_sleep.rb +76 -0
- data/lib/rubocop/cop/chef/modernize/execute_sysctl.rb +70 -0
- data/lib/rubocop/cop/chef/modernize/execute_tzutil.rb +83 -0
- data/lib/rubocop/cop/chef/modernize/foodcritic_comments.rb +46 -0
- data/lib/rubocop/cop/chef/modernize/if_provides_default_action.rb +48 -0
- data/lib/rubocop/cop/chef/modernize/includes_mixin_shellout.rb +83 -0
- data/lib/rubocop/cop/chef/modernize/libarchive_file.rb +70 -0
- data/lib/rubocop/cop/chef/modernize/macos_user_defaults.rb +58 -0
- data/lib/rubocop/cop/chef/modernize/minitest_handler_usage.rb +51 -0
- data/lib/rubocop/cop/chef/modernize/node_init_package.rb +89 -0
- data/lib/rubocop/cop/chef/modernize/node_roles_include.rb +57 -0
- data/lib/rubocop/cop/chef/modernize/ohai_default_recipe.rb +47 -0
- data/lib/rubocop/cop/chef/modernize/openssl_rsa_key_resource.rb +54 -0
- data/lib/rubocop/cop/chef/modernize/openssl_x509_resource.rb +60 -0
- data/lib/rubocop/cop/chef/modernize/osx_config_profile_resource.rb +51 -0
- data/lib/rubocop/cop/chef/modernize/powershell_expand_archive.rb +50 -0
- data/lib/rubocop/cop/chef/modernize/powershell_guard_interpreter.rb +68 -0
- data/lib/rubocop/cop/chef/modernize/powershell_install_package.rb +53 -0
- data/lib/rubocop/cop/chef/modernize/powershell_install_windowsfeature.rb +56 -0
- data/lib/rubocop/cop/chef/modernize/property_with_name_attribute.rb +56 -0
- data/lib/rubocop/cop/chef/modernize/provides_initializer.rb +68 -0
- data/lib/rubocop/cop/chef/modernize/resource_name_initializer.rb +63 -0
- data/lib/rubocop/cop/chef/modernize/resource_set_or_return.rb +49 -0
- data/lib/rubocop/cop/chef/modernize/resource_with_attributes.rb +66 -0
- data/lib/rubocop/cop/chef/modernize/respond_to_compile_time.rb +94 -0
- data/lib/rubocop/cop/chef/modernize/respond_to_metadata.rb +77 -0
- data/lib/rubocop/cop/chef/modernize/respond_to_provides.rb +63 -0
- data/lib/rubocop/cop/chef/modernize/respond_to_resource_name.rb +52 -0
- data/lib/rubocop/cop/chef/modernize/sc_windows_resource.rb +53 -0
- data/lib/rubocop/cop/chef/modernize/seven_zip_archive.rb +46 -0
- data/lib/rubocop/cop/chef/modernize/shell_out_helper.rb +60 -0
- data/lib/rubocop/cop/chef/modernize/shellouts_to_chocolatey.rb +58 -0
- data/lib/rubocop/cop/chef/modernize/simplify_apt_ppa_setup.rb +63 -0
- data/lib/rubocop/cop/chef/modernize/sysctl_param_resource.rb +55 -0
- data/lib/rubocop/cop/chef/modernize/unnecessary_mixlib_shellout_require.rb +51 -0
- data/lib/rubocop/cop/chef/modernize/use_chef_language_cloud_helpers.rb +93 -0
- data/lib/rubocop/cop/chef/modernize/use_chef_language_env_helpers.rb +69 -0
- data/lib/rubocop/cop/chef/modernize/use_chef_language_systemd_helper.rb +60 -0
- data/lib/rubocop/cop/chef/modernize/use_multipackage_installs.rb +113 -0
- data/lib/rubocop/cop/chef/modernize/use_require_relative.rb +60 -0
- data/lib/rubocop/cop/chef/modernize/whyrun_supported_true.rb +58 -0
- data/lib/rubocop/cop/chef/modernize/windows_default_recipe.rb +52 -0
- data/lib/rubocop/cop/chef/modernize/windows_registry_uac.rb +92 -0
- data/lib/rubocop/cop/chef/modernize/windows_zipfile.rb +46 -0
- data/lib/rubocop/cop/chef/modernize/zipfile_resource.rb +59 -0
- data/lib/rubocop/cop/chef/modernize/zypper_repo.rb +60 -0
- data/lib/rubocop/cop/chef/redundant/apt_repository_distribution_default.rb +65 -0
- data/lib/rubocop/cop/chef/redundant/apt_repository_notifies_apt_update.rb +60 -0
- data/lib/rubocop/cop/chef/redundant/attribute_metadata.rb +52 -0
- data/lib/rubocop/cop/chef/redundant/conflicts_metadata.rb +46 -0
- data/lib/rubocop/cop/chef/redundant/custom_resource_with_allowed_actions.rb +60 -0
- data/lib/rubocop/cop/chef/redundant/double_compile_time.rb +68 -0
- data/lib/rubocop/cop/chef/redundant/grouping_metadata.rb +46 -0
- data/lib/rubocop/cop/chef/redundant/long_description_metadata.rb +46 -0
- data/lib/rubocop/cop/chef/redundant/multiple_platform_checks.rb +58 -0
- data/lib/rubocop/cop/chef/redundant/name_property_and_required.rb +81 -0
- data/lib/rubocop/cop/chef/redundant/ohai_attribute_to_string.rb +65 -0
- data/lib/rubocop/cop/chef/redundant/property_splat_regex.rb +59 -0
- data/lib/rubocop/cop/chef/redundant/property_with_default_and_required.rb +61 -0
- data/lib/rubocop/cop/chef/redundant/provides_metadata.rb +46 -0
- data/lib/rubocop/cop/chef/redundant/recipe_metadata.rb +47 -0
- data/lib/rubocop/cop/chef/redundant/replaces_metadata.rb +46 -0
- data/lib/rubocop/cop/chef/redundant/resource_with_nothing_action.rb +52 -0
- data/lib/rubocop/cop/chef/redundant/sensitive_property_in_resource.rb +50 -0
- data/lib/rubocop/cop/chef/redundant/string_property_with_nil_default.rb +64 -0
- data/lib/rubocop/cop/chef/redundant/suggests_metadata.rb +46 -0
- data/lib/rubocop/cop/chef/redundant/unnecessary_desired_state.rb +60 -0
- data/lib/rubocop/cop/chef/redundant/unnecessary_name_property.rb +67 -0
- data/lib/rubocop/cop/chef/redundant/use_create_if_missing.rb +116 -0
- data/lib/rubocop/cop/chef/security/ssh_private_key.rb +49 -0
- data/lib/rubocop/cop/chef/sharing/default_maintainer_metadata.rb +50 -0
- data/lib/rubocop/cop/chef/sharing/empty_metadata_field.rb +47 -0
- data/lib/rubocop/cop/chef/sharing/include_property_descriptions.rb +55 -0
- data/lib/rubocop/cop/chef/sharing/include_resource_descriptions.rb +52 -0
- data/lib/rubocop/cop/chef/sharing/include_resource_examples.rb +60 -0
- data/lib/rubocop/cop/chef/sharing/insecure_cookbook_url.rb +62 -0
- data/lib/rubocop/cop/chef/sharing/invalid_license_string.rb +542 -0
- data/lib/rubocop/cop/chef/style/attribute_keys.rb +95 -0
- data/lib/rubocop/cop/chef/style/chef_whaaat.rb +49 -0
- data/lib/rubocop/cop/chef/style/comment_sentence_spacing.rb +42 -0
- data/lib/rubocop/cop/chef/style/comments_copyright_format.rb +101 -0
- data/lib/rubocop/cop/chef/style/comments_default_copyright.rb +50 -0
- data/lib/rubocop/cop/chef/style/comments_format.rb +71 -0
- data/lib/rubocop/cop/chef/style/file_mode.rb +86 -0
- data/lib/rubocop/cop/chef/style/immediate_notification_timing.rb +59 -0
- data/lib/rubocop/cop/chef/style/include_recipe_with_parentheses.rb +58 -0
- data/lib/rubocop/cop/chef/style/negating_only_if.rb +69 -0
- data/lib/rubocop/cop/chef/style/overly_complex_supports_depends_metadata.rb +70 -0
- data/lib/rubocop/cop/chef/style/simplify_platform_major_version_check.rb +89 -0
- data/lib/rubocop/cop/chef/style/true_false_resource_properties.rb +53 -0
- data/lib/rubocop/cop/chef/style/unnecessary_os_check.rb +103 -0
- data/lib/rubocop/cop/chef/style/unnecessary_platform_case_statement.rb +100 -0
- data/lib/rubocop/cop/chef/style/use_platform_helpers.rb +86 -0
- data/lib/rubocop/cop/inspec/deprecation/attribute_default.rb +53 -0
- data/lib/rubocop/cop/inspec/deprecation/attribute_helper.rb +47 -0
- data/lib/rubocop/cop/target_chef_version.rb +22 -0
- data/lib/rubocop/monkey_patches/allow_invalid_ruby.rb +28 -0
- data/lib/rubocop/monkey_patches/base.rb +11 -0
- data/lib/rubocop/monkey_patches/config.rb +15 -0
- data/lib/rubocop/monkey_patches/directive_comment.rb +12 -0
- data/lib/rubocop/monkey_patches/registry_cop.rb +15 -0
- data/lib/rubocop/monkey_patches/team.rb +27 -0
- metadata +340 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RuboCop
|
4
|
+
class Config
|
5
|
+
# This is a copy of the #target_rails_version method from RuboCop
|
6
|
+
def target_chef_version
|
7
|
+
@target_chef_version ||=
|
8
|
+
if for_all_cops['TargetChefVersion']
|
9
|
+
for_all_cops['TargetChefVersion'].to_f
|
10
|
+
else
|
11
|
+
99 # just set a high number so we don't need to update this later
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module RuboCop
|
3
|
+
# we're monkey patching the config regex to allow for # cookstyle: disable whatever
|
4
|
+
# in addition to the # rubocop: disable whatever that comes with RuboCop
|
5
|
+
class DirectiveComment
|
6
|
+
remove_const(:DIRECTIVE_COMMENT_REGEXP)
|
7
|
+
DIRECTIVE_COMMENT_REGEXP = Regexp.new(
|
8
|
+
"# (?:rubocop|cookstyle) : ((?:disable|enable|todo))\\b #{COPS_PATTERN}"
|
9
|
+
.gsub(' ', '\s*')
|
10
|
+
)
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module RuboCop
|
3
|
+
module Cop
|
4
|
+
class Registry
|
5
|
+
# we monkeypatch this warning to replace rubocop with cookstyle
|
6
|
+
def print_warning(name, path)
|
7
|
+
message = "#{path}: Warning: no department given for #{name}."
|
8
|
+
if path.end_with?('.rb')
|
9
|
+
message += ' Run `cookstyle -a --only Migration/DepartmentName` to fix.'
|
10
|
+
end
|
11
|
+
warn message
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RuboCop
|
4
|
+
module Cop
|
5
|
+
class Team
|
6
|
+
def support_target_chef_version?(cop)
|
7
|
+
return true unless cop.class.respond_to?(:support_target_chef_version?)
|
8
|
+
|
9
|
+
cop.class.support_target_chef_version?(cop.target_chef_version)
|
10
|
+
end
|
11
|
+
|
12
|
+
### START COOKSTYLE MODIFICATION
|
13
|
+
def roundup_relevant_cops(processed_source)
|
14
|
+
cops.select do |cop|
|
15
|
+
next true if processed_source.comment_config.cop_opted_in?(cop)
|
16
|
+
next false if cop.excluded_file?(processed_source.file_path)
|
17
|
+
next false unless @registry.enabled?(cop, @config)
|
18
|
+
|
19
|
+
support_target_ruby_version?(cop) && support_target_rails_version?(cop) && support_target_chef_version?(cop)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
### END COOKSTYLE MODIFICATION
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
|
metadata
ADDED
@@ -0,0 +1,340 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cookstyle-ng
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 8.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Thom May
|
8
|
+
- Tim Smith
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2023-11-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rubocop
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 1.57.2
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 1.57.2
|
28
|
+
description:
|
29
|
+
email:
|
30
|
+
- thom@chef.io
|
31
|
+
- tsmith84@gmail.com
|
32
|
+
executables:
|
33
|
+
- cookstyle
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- Gemfile
|
38
|
+
- LICENSE
|
39
|
+
- bin/cookstyle
|
40
|
+
- bin/cookstyle-profile
|
41
|
+
- config/cookstyle.yml
|
42
|
+
- cookstyle.gemspec
|
43
|
+
- lib/cookstyle.rb
|
44
|
+
- lib/cookstyle/version.rb
|
45
|
+
- lib/rubocop/chef.rb
|
46
|
+
- lib/rubocop/chef/autocorrect_helpers.rb
|
47
|
+
- lib/rubocop/chef/cookbook_helpers.rb
|
48
|
+
- lib/rubocop/chef/cookbook_only.rb
|
49
|
+
- lib/rubocop/chef/platform_helpers.rb
|
50
|
+
- lib/rubocop/cop/chef/correctness/block_guard_clause_string_only.rb
|
51
|
+
- lib/rubocop/cop/chef/correctness/chef_application_fatal.rb
|
52
|
+
- lib/rubocop/cop/chef/correctness/conditional_ruby_shellout.rb
|
53
|
+
- lib/rubocop/cop/chef/correctness/dnf_package_allow_downgrades.rb
|
54
|
+
- lib/rubocop/cop/chef/correctness/incorrect_library_injection.rb
|
55
|
+
- lib/rubocop/cop/chef/correctness/invalid_cookbook_name.rb
|
56
|
+
- lib/rubocop/cop/chef/correctness/invalid_default_action.rb
|
57
|
+
- lib/rubocop/cop/chef/correctness/invalid_notification_resource.rb
|
58
|
+
- lib/rubocop/cop/chef/correctness/invalid_notification_timing.rb
|
59
|
+
- lib/rubocop/cop/chef/correctness/invalid_platform_family_helper.rb
|
60
|
+
- lib/rubocop/cop/chef/correctness/invalid_platform_family_values_in_case.rb
|
61
|
+
- lib/rubocop/cop/chef/correctness/invalid_platform_helper.rb
|
62
|
+
- lib/rubocop/cop/chef/correctness/invalid_platform_metadata.rb
|
63
|
+
- lib/rubocop/cop/chef/correctness/invalid_platform_values_in_case.rb
|
64
|
+
- lib/rubocop/cop/chef/correctness/invalid_value_for_platform_family_helper.rb
|
65
|
+
- lib/rubocop/cop/chef/correctness/invalid_value_for_platform_helper.rb
|
66
|
+
- lib/rubocop/cop/chef/correctness/invalid_version_metadata.rb
|
67
|
+
- lib/rubocop/cop/chef/correctness/lazy_eval_node_attribute_defaults.rb
|
68
|
+
- lib/rubocop/cop/chef/correctness/lazy_in_resource_guard.rb
|
69
|
+
- lib/rubocop/cop/chef/correctness/macos_userdefaults_invalid_type.rb
|
70
|
+
- lib/rubocop/cop/chef/correctness/malformed_value_for_platform.rb
|
71
|
+
- lib/rubocop/cop/chef/correctness/metadata_malformed_version.rb
|
72
|
+
- lib/rubocop/cop/chef/correctness/metadata_missing_name.rb
|
73
|
+
- lib/rubocop/cop/chef/correctness/metadata_missing_version.rb
|
74
|
+
- lib/rubocop/cop/chef/correctness/node_normal.rb
|
75
|
+
- lib/rubocop/cop/chef/correctness/node_normal_unless.rb
|
76
|
+
- lib/rubocop/cop/chef/correctness/node_save.rb
|
77
|
+
- lib/rubocop/cop/chef/correctness/notifies_action_not_symbol.rb
|
78
|
+
- lib/rubocop/cop/chef/correctness/octal_mode_as_string.rb
|
79
|
+
- lib/rubocop/cop/chef/correctness/openssl_password_helpers.rb
|
80
|
+
- lib/rubocop/cop/chef/correctness/powershell_delete_file.rb
|
81
|
+
- lib/rubocop/cop/chef/correctness/powershell_file_exists.rb
|
82
|
+
- lib/rubocop/cop/chef/correctness/property_without_type.rb
|
83
|
+
- lib/rubocop/cop/chef/correctness/resource_sets_internal_properties.rb
|
84
|
+
- lib/rubocop/cop/chef/correctness/resource_sets_name_property.rb
|
85
|
+
- lib/rubocop/cop/chef/correctness/resource_with_none_action.rb
|
86
|
+
- lib/rubocop/cop/chef/correctness/scoped_file_exist.rb
|
87
|
+
- lib/rubocop/cop/chef/correctness/service_resource.rb
|
88
|
+
- lib/rubocop/cop/chef/correctness/supports_must_be_float.rb
|
89
|
+
- lib/rubocop/cop/chef/correctness/tmp_path.rb
|
90
|
+
- lib/rubocop/cop/chef/deprecation/cb_depends_on_self.rb
|
91
|
+
- lib/rubocop/cop/chef/deprecation/chef_handler_recipe.rb
|
92
|
+
- lib/rubocop/cop/chef/deprecation/chef_handler_supports.rb
|
93
|
+
- lib/rubocop/cop/chef/deprecation/chef_rest.rb
|
94
|
+
- lib/rubocop/cop/chef/deprecation/chef_rewind.rb
|
95
|
+
- lib/rubocop/cop/chef/deprecation/chef_shellout.rb
|
96
|
+
- lib/rubocop/cop/chef/deprecation/chef_sugar_helpers.rb
|
97
|
+
- lib/rubocop/cop/chef/deprecation/chef_windows_platform_helper.rb
|
98
|
+
- lib/rubocop/cop/chef/deprecation/chefdk_generators.rb
|
99
|
+
- lib/rubocop/cop/chef/deprecation/cheffile.rb
|
100
|
+
- lib/rubocop/cop/chef/deprecation/chefspec_coverage_report.rb
|
101
|
+
- lib/rubocop/cop/chef/deprecation/chefspec_legacy_runner.rb
|
102
|
+
- lib/rubocop/cop/chef/deprecation/chocolatey_package_uninstall_action.rb
|
103
|
+
- lib/rubocop/cop/chef/deprecation/delivery.rb
|
104
|
+
- lib/rubocop/cop/chef/deprecation/depends_chef_nginx_cookbook.rb
|
105
|
+
- lib/rubocop/cop/chef/deprecation/depends_chef_reporting_cookbook.rb
|
106
|
+
- lib/rubocop/cop/chef/deprecation/depends_compat_resource.rb
|
107
|
+
- lib/rubocop/cop/chef/deprecation/depends_omnibus_updater_cookbook.rb
|
108
|
+
- lib/rubocop/cop/chef/deprecation/depends_partial_search.rb
|
109
|
+
- lib/rubocop/cop/chef/deprecation/depends_poise.rb
|
110
|
+
- lib/rubocop/cop/chef/deprecation/deprecated_chefspec_platform.rb
|
111
|
+
- lib/rubocop/cop/chef/deprecation/deprecated_mixins.rb
|
112
|
+
- lib/rubocop/cop/chef/deprecation/deprecated_platform_methods.rb
|
113
|
+
- lib/rubocop/cop/chef/deprecation/deprecated_shellout_methods.rb
|
114
|
+
- lib/rubocop/cop/chef/deprecation/deprecated_sudo_actions.rb
|
115
|
+
- lib/rubocop/cop/chef/deprecation/deprecated_windows_version_check.rb
|
116
|
+
- lib/rubocop/cop/chef/deprecation/deprecated_yum_repository_actions.rb
|
117
|
+
- lib/rubocop/cop/chef/deprecation/deprecated_yum_repository_properties.rb
|
118
|
+
- lib/rubocop/cop/chef/deprecation/easy_install.rb
|
119
|
+
- lib/rubocop/cop/chef/deprecation/eol_audit_mode.rb
|
120
|
+
- lib/rubocop/cop/chef/deprecation/epic_fail.rb
|
121
|
+
- lib/rubocop/cop/chef/deprecation/erl_call.rb
|
122
|
+
- lib/rubocop/cop/chef/deprecation/execute_path_property.rb
|
123
|
+
- lib/rubocop/cop/chef/deprecation/execute_relative_creates_without_cwd.rb
|
124
|
+
- lib/rubocop/cop/chef/deprecation/foodcritic_file.rb
|
125
|
+
- lib/rubocop/cop/chef/deprecation/foodcritic_testing.rb
|
126
|
+
- lib/rubocop/cop/chef/deprecation/hwrp_without_provides.rb
|
127
|
+
- lib/rubocop/cop/chef/deprecation/hwrp_without_unified_mode_true.rb
|
128
|
+
- lib/rubocop/cop/chef/deprecation/inherits_compat_resource.rb
|
129
|
+
- lib/rubocop/cop/chef/deprecation/launchd_deprecated_hash_property.rb
|
130
|
+
- lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb
|
131
|
+
- lib/rubocop/cop/chef/deprecation/legacy_yum_cookbook_recipes.rb
|
132
|
+
- lib/rubocop/cop/chef/deprecation/librarian_chefspec.rb
|
133
|
+
- lib/rubocop/cop/chef/deprecation/locale_lc_all_property.rb
|
134
|
+
- lib/rubocop/cop/chef/deprecation/log_resource_notifications.rb
|
135
|
+
- lib/rubocop/cop/chef/deprecation/macos_userdefaults_global_property.rb
|
136
|
+
- lib/rubocop/cop/chef/deprecation/name_property_and_default.rb
|
137
|
+
- lib/rubocop/cop/chef/deprecation/node_deep_fetch.rb
|
138
|
+
- lib/rubocop/cop/chef/deprecation/node_methods_not_attributes.rb
|
139
|
+
- lib/rubocop/cop/chef/deprecation/node_set.rb
|
140
|
+
- lib/rubocop/cop/chef/deprecation/node_set_unless.rb
|
141
|
+
- lib/rubocop/cop/chef/deprecation/node_set_without_level.rb
|
142
|
+
- lib/rubocop/cop/chef/deprecation/partial_search_class_usage.rb
|
143
|
+
- lib/rubocop/cop/chef/deprecation/partial_search_helper_usage.rb
|
144
|
+
- lib/rubocop/cop/chef/deprecation/poise_archive.rb
|
145
|
+
- lib/rubocop/cop/chef/deprecation/policyfile_community_source.rb
|
146
|
+
- lib/rubocop/cop/chef/deprecation/powershell_cookbook_helpers.rb
|
147
|
+
- lib/rubocop/cop/chef/deprecation/require_recipe.rb
|
148
|
+
- lib/rubocop/cop/chef/deprecation/resource_overrides_provides_method.rb
|
149
|
+
- lib/rubocop/cop/chef/deprecation/resource_uses_dsl_name_method.rb
|
150
|
+
- lib/rubocop/cop/chef/deprecation/resource_uses_only_resource_name.rb
|
151
|
+
- lib/rubocop/cop/chef/deprecation/resource_uses_provider_base_method.rb
|
152
|
+
- lib/rubocop/cop/chef/deprecation/resource_uses_updated_method.rb
|
153
|
+
- lib/rubocop/cop/chef/deprecation/resource_without_unified_mode_true.rb
|
154
|
+
- lib/rubocop/cop/chef/deprecation/ruby_27_keyword_argument_warnings.rb
|
155
|
+
- lib/rubocop/cop/chef/deprecation/ruby_block_create_action.rb
|
156
|
+
- lib/rubocop/cop/chef/deprecation/run_command_helper.rb
|
157
|
+
- lib/rubocop/cop/chef/deprecation/search_uses_positional_parameters.rb
|
158
|
+
- lib/rubocop/cop/chef/deprecation/use_automatic_resource_name.rb
|
159
|
+
- lib/rubocop/cop/chef/deprecation/use_inline_resources.rb
|
160
|
+
- lib/rubocop/cop/chef/deprecation/use_yaml_dump.rb
|
161
|
+
- lib/rubocop/cop/chef/deprecation/user_supports_property.rb
|
162
|
+
- lib/rubocop/cop/chef/deprecation/verify_property_file_expansion.rb
|
163
|
+
- lib/rubocop/cop/chef/deprecation/windows_feature_servermanagercmd.rb
|
164
|
+
- lib/rubocop/cop/chef/deprecation/windows_package_installer_type_string.rb
|
165
|
+
- lib/rubocop/cop/chef/deprecation/windows_task_change_action.rb
|
166
|
+
- lib/rubocop/cop/chef/deprecation/windows_version_helpers.rb
|
167
|
+
- lib/rubocop/cop/chef/deprecation/xml_ruby_recipe.rb
|
168
|
+
- lib/rubocop/cop/chef/deprecation/yum_dnf_compat_recipe.rb
|
169
|
+
- lib/rubocop/cop/chef/effortless/berksfile.rb
|
170
|
+
- lib/rubocop/cop/chef/effortless/chef_vault_used.rb
|
171
|
+
- lib/rubocop/cop/chef/effortless/data_bags.rb
|
172
|
+
- lib/rubocop/cop/chef/effortless/depends_chef_vault.rb
|
173
|
+
- lib/rubocop/cop/chef/effortless/node_environment.rb
|
174
|
+
- lib/rubocop/cop/chef/effortless/node_policygroup.rb
|
175
|
+
- lib/rubocop/cop/chef/effortless/node_roles.rb
|
176
|
+
- lib/rubocop/cop/chef/effortless/search_for_environments_or_roles.rb
|
177
|
+
- lib/rubocop/cop/chef/effortless/search_used.rb
|
178
|
+
- lib/rubocop/cop/chef/modernize/action_method_in_resource.rb
|
179
|
+
- lib/rubocop/cop/chef/modernize/allowed_actions_initializer.rb
|
180
|
+
- lib/rubocop/cop/chef/modernize/apt_default_recipe.rb
|
181
|
+
- lib/rubocop/cop/chef/modernize/berksfile_source.rb
|
182
|
+
- lib/rubocop/cop/chef/modernize/build_essential.rb
|
183
|
+
- lib/rubocop/cop/chef/modernize/chef_14_resources.rb
|
184
|
+
- lib/rubocop/cop/chef/modernize/chef_15_resources.rb
|
185
|
+
- lib/rubocop/cop/chef/modernize/chef_gem_nokogiri.rb
|
186
|
+
- lib/rubocop/cop/chef/modernize/class_eval_action_class.rb
|
187
|
+
- lib/rubocop/cop/chef/modernize/compile_time_resources.rb
|
188
|
+
- lib/rubocop/cop/chef/modernize/conditional_using_test.rb
|
189
|
+
- lib/rubocop/cop/chef/modernize/cron_d_file_or_template.rb
|
190
|
+
- lib/rubocop/cop/chef/modernize/cron_manage_resource.rb
|
191
|
+
- lib/rubocop/cop/chef/modernize/databag_helpers.rb
|
192
|
+
- lib/rubocop/cop/chef/modernize/declare_action_class.rb
|
193
|
+
- lib/rubocop/cop/chef/modernize/default_action_initializer.rb
|
194
|
+
- lib/rubocop/cop/chef/modernize/defines_chefspec_matchers.rb
|
195
|
+
- lib/rubocop/cop/chef/modernize/definitions.rb
|
196
|
+
- lib/rubocop/cop/chef/modernize/depends_chef_vault_cookbook.rb
|
197
|
+
- lib/rubocop/cop/chef/modernize/depends_chocolatey_cookbooks.rb
|
198
|
+
- lib/rubocop/cop/chef/modernize/depends_kernel_module_cookbook.rb
|
199
|
+
- lib/rubocop/cop/chef/modernize/depends_locale_cookbook.rb
|
200
|
+
- lib/rubocop/cop/chef/modernize/depends_openssl_cookbook.rb
|
201
|
+
- lib/rubocop/cop/chef/modernize/depends_timezone_lwrp_cookbook.rb
|
202
|
+
- lib/rubocop/cop/chef/modernize/depends_windows_firewall_cookbook.rb
|
203
|
+
- lib/rubocop/cop/chef/modernize/depends_zypper_cookbook.rb
|
204
|
+
- lib/rubocop/cop/chef/modernize/dsl_include_in_resource.rb
|
205
|
+
- lib/rubocop/cop/chef/modernize/empty_resource_initialize.rb
|
206
|
+
- lib/rubocop/cop/chef/modernize/execute_apt_update.rb
|
207
|
+
- lib/rubocop/cop/chef/modernize/execute_sc_exe.rb
|
208
|
+
- lib/rubocop/cop/chef/modernize/execute_sleep.rb
|
209
|
+
- lib/rubocop/cop/chef/modernize/execute_sysctl.rb
|
210
|
+
- lib/rubocop/cop/chef/modernize/execute_tzutil.rb
|
211
|
+
- lib/rubocop/cop/chef/modernize/foodcritic_comments.rb
|
212
|
+
- lib/rubocop/cop/chef/modernize/if_provides_default_action.rb
|
213
|
+
- lib/rubocop/cop/chef/modernize/includes_mixin_shellout.rb
|
214
|
+
- lib/rubocop/cop/chef/modernize/libarchive_file.rb
|
215
|
+
- lib/rubocop/cop/chef/modernize/macos_user_defaults.rb
|
216
|
+
- lib/rubocop/cop/chef/modernize/minitest_handler_usage.rb
|
217
|
+
- lib/rubocop/cop/chef/modernize/node_init_package.rb
|
218
|
+
- lib/rubocop/cop/chef/modernize/node_roles_include.rb
|
219
|
+
- lib/rubocop/cop/chef/modernize/ohai_default_recipe.rb
|
220
|
+
- lib/rubocop/cop/chef/modernize/openssl_rsa_key_resource.rb
|
221
|
+
- lib/rubocop/cop/chef/modernize/openssl_x509_resource.rb
|
222
|
+
- lib/rubocop/cop/chef/modernize/osx_config_profile_resource.rb
|
223
|
+
- lib/rubocop/cop/chef/modernize/powershell_expand_archive.rb
|
224
|
+
- lib/rubocop/cop/chef/modernize/powershell_guard_interpreter.rb
|
225
|
+
- lib/rubocop/cop/chef/modernize/powershell_install_package.rb
|
226
|
+
- lib/rubocop/cop/chef/modernize/powershell_install_windowsfeature.rb
|
227
|
+
- lib/rubocop/cop/chef/modernize/property_with_name_attribute.rb
|
228
|
+
- lib/rubocop/cop/chef/modernize/provides_initializer.rb
|
229
|
+
- lib/rubocop/cop/chef/modernize/resource_name_initializer.rb
|
230
|
+
- lib/rubocop/cop/chef/modernize/resource_set_or_return.rb
|
231
|
+
- lib/rubocop/cop/chef/modernize/resource_with_attributes.rb
|
232
|
+
- lib/rubocop/cop/chef/modernize/respond_to_compile_time.rb
|
233
|
+
- lib/rubocop/cop/chef/modernize/respond_to_metadata.rb
|
234
|
+
- lib/rubocop/cop/chef/modernize/respond_to_provides.rb
|
235
|
+
- lib/rubocop/cop/chef/modernize/respond_to_resource_name.rb
|
236
|
+
- lib/rubocop/cop/chef/modernize/sc_windows_resource.rb
|
237
|
+
- lib/rubocop/cop/chef/modernize/seven_zip_archive.rb
|
238
|
+
- lib/rubocop/cop/chef/modernize/shell_out_helper.rb
|
239
|
+
- lib/rubocop/cop/chef/modernize/shellouts_to_chocolatey.rb
|
240
|
+
- lib/rubocop/cop/chef/modernize/simplify_apt_ppa_setup.rb
|
241
|
+
- lib/rubocop/cop/chef/modernize/sysctl_param_resource.rb
|
242
|
+
- lib/rubocop/cop/chef/modernize/unnecessary_mixlib_shellout_require.rb
|
243
|
+
- lib/rubocop/cop/chef/modernize/use_chef_language_cloud_helpers.rb
|
244
|
+
- lib/rubocop/cop/chef/modernize/use_chef_language_env_helpers.rb
|
245
|
+
- lib/rubocop/cop/chef/modernize/use_chef_language_systemd_helper.rb
|
246
|
+
- lib/rubocop/cop/chef/modernize/use_multipackage_installs.rb
|
247
|
+
- lib/rubocop/cop/chef/modernize/use_require_relative.rb
|
248
|
+
- lib/rubocop/cop/chef/modernize/whyrun_supported_true.rb
|
249
|
+
- lib/rubocop/cop/chef/modernize/windows_default_recipe.rb
|
250
|
+
- lib/rubocop/cop/chef/modernize/windows_registry_uac.rb
|
251
|
+
- lib/rubocop/cop/chef/modernize/windows_zipfile.rb
|
252
|
+
- lib/rubocop/cop/chef/modernize/zipfile_resource.rb
|
253
|
+
- lib/rubocop/cop/chef/modernize/zypper_repo.rb
|
254
|
+
- lib/rubocop/cop/chef/redundant/apt_repository_distribution_default.rb
|
255
|
+
- lib/rubocop/cop/chef/redundant/apt_repository_notifies_apt_update.rb
|
256
|
+
- lib/rubocop/cop/chef/redundant/attribute_metadata.rb
|
257
|
+
- lib/rubocop/cop/chef/redundant/conflicts_metadata.rb
|
258
|
+
- lib/rubocop/cop/chef/redundant/custom_resource_with_allowed_actions.rb
|
259
|
+
- lib/rubocop/cop/chef/redundant/double_compile_time.rb
|
260
|
+
- lib/rubocop/cop/chef/redundant/grouping_metadata.rb
|
261
|
+
- lib/rubocop/cop/chef/redundant/long_description_metadata.rb
|
262
|
+
- lib/rubocop/cop/chef/redundant/multiple_platform_checks.rb
|
263
|
+
- lib/rubocop/cop/chef/redundant/name_property_and_required.rb
|
264
|
+
- lib/rubocop/cop/chef/redundant/ohai_attribute_to_string.rb
|
265
|
+
- lib/rubocop/cop/chef/redundant/property_splat_regex.rb
|
266
|
+
- lib/rubocop/cop/chef/redundant/property_with_default_and_required.rb
|
267
|
+
- lib/rubocop/cop/chef/redundant/provides_metadata.rb
|
268
|
+
- lib/rubocop/cop/chef/redundant/recipe_metadata.rb
|
269
|
+
- lib/rubocop/cop/chef/redundant/replaces_metadata.rb
|
270
|
+
- lib/rubocop/cop/chef/redundant/resource_with_nothing_action.rb
|
271
|
+
- lib/rubocop/cop/chef/redundant/sensitive_property_in_resource.rb
|
272
|
+
- lib/rubocop/cop/chef/redundant/string_property_with_nil_default.rb
|
273
|
+
- lib/rubocop/cop/chef/redundant/suggests_metadata.rb
|
274
|
+
- lib/rubocop/cop/chef/redundant/unnecessary_desired_state.rb
|
275
|
+
- lib/rubocop/cop/chef/redundant/unnecessary_name_property.rb
|
276
|
+
- lib/rubocop/cop/chef/redundant/use_create_if_missing.rb
|
277
|
+
- lib/rubocop/cop/chef/security/ssh_private_key.rb
|
278
|
+
- lib/rubocop/cop/chef/sharing/default_maintainer_metadata.rb
|
279
|
+
- lib/rubocop/cop/chef/sharing/empty_metadata_field.rb
|
280
|
+
- lib/rubocop/cop/chef/sharing/include_property_descriptions.rb
|
281
|
+
- lib/rubocop/cop/chef/sharing/include_resource_descriptions.rb
|
282
|
+
- lib/rubocop/cop/chef/sharing/include_resource_examples.rb
|
283
|
+
- lib/rubocop/cop/chef/sharing/insecure_cookbook_url.rb
|
284
|
+
- lib/rubocop/cop/chef/sharing/invalid_license_string.rb
|
285
|
+
- lib/rubocop/cop/chef/style/attribute_keys.rb
|
286
|
+
- lib/rubocop/cop/chef/style/chef_whaaat.rb
|
287
|
+
- lib/rubocop/cop/chef/style/comment_sentence_spacing.rb
|
288
|
+
- lib/rubocop/cop/chef/style/comments_copyright_format.rb
|
289
|
+
- lib/rubocop/cop/chef/style/comments_default_copyright.rb
|
290
|
+
- lib/rubocop/cop/chef/style/comments_format.rb
|
291
|
+
- lib/rubocop/cop/chef/style/file_mode.rb
|
292
|
+
- lib/rubocop/cop/chef/style/immediate_notification_timing.rb
|
293
|
+
- lib/rubocop/cop/chef/style/include_recipe_with_parentheses.rb
|
294
|
+
- lib/rubocop/cop/chef/style/negating_only_if.rb
|
295
|
+
- lib/rubocop/cop/chef/style/overly_complex_supports_depends_metadata.rb
|
296
|
+
- lib/rubocop/cop/chef/style/simplify_platform_major_version_check.rb
|
297
|
+
- lib/rubocop/cop/chef/style/true_false_resource_properties.rb
|
298
|
+
- lib/rubocop/cop/chef/style/unnecessary_os_check.rb
|
299
|
+
- lib/rubocop/cop/chef/style/unnecessary_platform_case_statement.rb
|
300
|
+
- lib/rubocop/cop/chef/style/use_platform_helpers.rb
|
301
|
+
- lib/rubocop/cop/inspec/deprecation/attribute_default.rb
|
302
|
+
- lib/rubocop/cop/inspec/deprecation/attribute_helper.rb
|
303
|
+
- lib/rubocop/cop/target_chef_version.rb
|
304
|
+
- lib/rubocop/monkey_patches/allow_invalid_ruby.rb
|
305
|
+
- lib/rubocop/monkey_patches/base.rb
|
306
|
+
- lib/rubocop/monkey_patches/config.rb
|
307
|
+
- lib/rubocop/monkey_patches/directive_comment.rb
|
308
|
+
- lib/rubocop/monkey_patches/registry_cop.rb
|
309
|
+
- lib/rubocop/monkey_patches/team.rb
|
310
|
+
homepage: https://docs.chef.io/workstation/cookstyle/
|
311
|
+
licenses:
|
312
|
+
- Apache-2.0
|
313
|
+
metadata:
|
314
|
+
homepage_uri: https://github.com/chef/cookstyle
|
315
|
+
changelog_uri: https://github.com/chef/cookstyle/blob/main/CHANGELOG.md
|
316
|
+
source_code_uri: https://github.com/chef/cookstyle
|
317
|
+
documentation_uri: https://docs.chef.io/workstation/cookstyle/
|
318
|
+
bug_tracker_uri: https://github.com/chef/cookstyle/issues
|
319
|
+
post_install_message:
|
320
|
+
rdoc_options: []
|
321
|
+
require_paths:
|
322
|
+
- lib
|
323
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ">="
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '3.0'
|
328
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
|
+
requirements:
|
330
|
+
- - ">="
|
331
|
+
- !ruby/object:Gem::Version
|
332
|
+
version: '0'
|
333
|
+
requirements: []
|
334
|
+
rubygems_version: 3.4.20
|
335
|
+
signing_key:
|
336
|
+
specification_version: 4
|
337
|
+
summary: Cookstyle is a code linting tool that helps you to write better Chef Infra
|
338
|
+
cookbooks by detecting and automatically correcting style, syntax, and logic mistakes
|
339
|
+
in your code.
|
340
|
+
test_files: []
|