Module: RuboCop::Cop::Chef::ChefCorrectness

Defined in:
lib/rubocop/cop/chef/correctness/cb_depends_on_self.rb,
lib/rubocop/cop/chef/correctness/tmp_path.rb,
lib/rubocop/cop/chef/correctness/node_save.rb,
lib/rubocop/cop/chef/correctness/node_normal.rb,
lib/rubocop/cop/chef/correctness/service_resource.rb,
lib/rubocop/cop/chef/correctness/node_normal_unless.rb,
lib/rubocop/cop/chef/correctness/ohai_default_recipe.rb,
lib/rubocop/cop/chef/correctness/empty_metadata_field.rb,
lib/rubocop/cop/chef/correctness/insecure_cookbook_url.rb,
lib/rubocop/cop/chef/correctness/metadata_missing_name.rb,
lib/rubocop/cop/chef/correctness/invalid_license_string.rb,
lib/rubocop/cop/chef/correctness/invalid_version_metadata.rb,
lib/rubocop/cop/chef/correctness/invalid_platform_metadata.rb,
lib/rubocop/cop/chef/correctness/resource_with_none_action.rb,
lib/rubocop/cop/chef/correctness/unnecessary_name_property.rb,
lib/rubocop/cop/chef/correctness/name_property_and_required.rb,
lib/rubocop/cop/chef/correctness/notifies_action_not_symbol.rb,
lib/rubocop/cop/chef/correctness/default_maintainer_metadata.rb,
lib/rubocop/cop/chef/correctness/incorrect_library_injection.rb,
lib/rubocop/cop/chef/correctness/resource_sets_name_property.rb,
lib/rubocop/cop/chef/correctness/property_with_name_attribute.rb,
lib/rubocop/cop/chef/correctness/resource_with_nothing_action.rb,
lib/rubocop/cop/chef/correctness/block_guard_clause_string_only.rb,
lib/rubocop/cop/chef/correctness/resource_sets_internal_properties.rb,
lib/rubocop/cop/chef/correctness/property_with_default_and_required.rb

Overview

metadata.rb needs to include the name method or it will fail on Chef Infra Client 12 and later.

Examples:


# good
name 'foo'

Defined Under Namespace

Classes: BlockGuardWithOnlyString, CookbookUsesNodeSave, CookbooksDependsOnSelf, DefaultMetadataMaintainer, EmptyMetadataField, IncludingOhaiDefaultRecipe, IncorrectLibraryInjection, InsecureCookbookURL, InvalidLicenseString, InvalidPlatformMetadata, InvalidVersionMetadata, MetadataMissingName, NamePropertyIsRequired, NodeNormal, NodeNormalUnless, NotifiesActionNotSymbol, PropertyWithNameAttribute, PropertyWithRequiredAndDefault, ResourceSetsInternalProperties, ResourceSetsNameProperty, ResourceWithNoneAction, ResourceWithNothingAction, ServiceResource, TmpPath, UnnecessaryNameProperty