Skip to content

Commit

Permalink
This is a workaround to a Chef DK issue (chef-boneyard/chef-dk#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Webber committed Sep 26, 2016
1 parent dd0c32b commit 48aec61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Empty file added test/README.md
Empty file.
10 changes: 10 additions & 0 deletions test/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name 'site_config'
maintainer 'The Authors'
maintainer_email '[email protected]'
license 'all_rights'
description 'Installs/Configures site_config'
long_description 'Installs/Configures site_config'
version '0.1.0'

issues_url 'https://github.com/chef-training/site_config/issues' if respond_to?(:issues_url)
source_url 'https://github.com/chef-training/site_config' if respond_to?(:source_url)

3 comments on commit 48aec61

@qubitrenegade
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only resolves the errors about the missing metadata file, you're still left with two foodcritic failures:

FC011: Missing README in markdown format: test/README.md:1
FC023: Prefer conditional attributes: ./test/recipes/default_test.rb:8

Confirmed on both ChefDK 17.17 and 18.30

@vinyar
Copy link

@vinyar vinyar commented on 48aec61 Oct 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"delivery-truck": {
    "lint": {
      "foodcritic": {
        "ignore_rules": ["FC001"],
        "only_rules": ["FC002"],
        "excludes": ["spec", "test"],
        "fail_tags": ["any"]
      }
    }
  }
}

@mattstratton
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -x test flag should work for my scenario, and in a manner that when content is shared won't make it look like chefdk is broken :)

Please sign in to comment.