GithubHelp home page GithubHelp logo

Comments (3)

gabrtv avatar gabrtv commented on July 30, 2024

Foodcritic output is currently:

FC015: Consider converting definition to a LWRP: ./definitions/authorized_keys_for.rb:1
FC015: Consider converting definition to a LWRP: ./definitions/buildpack.rb:1
FC015: Consider converting definition to a LWRP: ./definitions/container.rb:1
FC015: Consider converting definition to a LWRP: ./definitions/nginx_site.rb:1
FC019: Access node attributes in a consistent manner: ./recipes/docker.rb:6
FC019: Access node attributes in a consistent manner: ./recipes/nginx.rb:14
FC023: Prefer conditional attributes: ./recipes/gitosis.rb:100
FC023: Prefer conditional attributes: ./recipes/gitosis.rb:181
FC037: Invalid notification action: ./definitions/container.rb:2
FC037: Invalid notification action: ./definitions/container.rb:24
FC043: Prefer new notification syntax: ./recipes/postgresql.rb:8
FC043: Prefer new notification syntax: ./recipes/postgresql.rb:16

There are also a number of warnings at the top of the chef run:

Compiling Cookbooks...
[2013-07-31T16:33:53+00:00] WARN: Cloning resource attributes for file[/opt/deis/gitosis/gitosis-admin/keydir/gabrtv_id_rsa.pub] from prior resource (CHEF-3694)
[2013-07-31T16:33:53+00:00] WARN: Previous file[/opt/deis/gitosis/gitosis-admin/keydir/gabrtv_id_rsa.pub]: /var/chef/cache/cookbooks/deis/recipes/gitosis.rb:88:in `block in from_file'
[2013-07-31T16:33:53+00:00] WARN: Current  file[/opt/deis/gitosis/gitosis-admin/keydir/gabrtv_id_rsa.pub]: /var/chef/cache/cookbooks/deis/recipes/gitosis.rb:100:in `block in from_file'
[2013-07-31T16:33:53+00:00] WARN: Cloning resource attributes for directory[/opt/deis/gitosis/repositories/zeroed-paneling.git] from prior resource (CHEF-3694)
[2013-07-31T16:33:53+00:00] WARN: Previous directory[/opt/deis/gitosis/repositories/zeroed-paneling.git]: /var/chef/cache/cookbooks/deis/recipes/gitosis.rb:162:in `block in from_file'
[2013-07-31T16:33:53+00:00] WARN: Current  directory[/opt/deis/gitosis/repositories/zeroed-paneling.git]: /var/chef/cache/cookbooks/deis/recipes/gitosis.rb:180:in `block in from_file'
  * user[deis] action create (up to date)

from deis.

gabrtv avatar gabrtv commented on July 30, 2024

Foodcritic output is now:

gabriel@delta:~/workspace/deis-cookbook$ foodcritic .
FC015: Consider converting definition to a LWRP: ./definitions/authorized_keys_for.rb:1
FC015: Consider converting definition to a LWRP: ./definitions/buildpack.rb:1
FC015: Consider converting definition to a LWRP: ./definitions/container.rb:1
FC015: Consider converting definition to a LWRP: ./definitions/nginx_site.rb:1

We should convert those definitions to LWRP's eventually, but what we have works. We can maybe tackle some of this when we address larger Chef test infrastructure on #50.

from deis.

mboersma avatar mboersma commented on July 30, 2024

Since all the chef was heavily refactored for the iminent containerize branch, let's clean up our recipes there and merge it. Currently here is what's failing:

FC002: Avoid string interpolation where not required: /Users/matt/Projects/deis-cookbook/tmp/foodcritic/cookbook/definitions/container.rb:25
FC002: Avoid string interpolation where not required: /Users/matt/Projects/deis-cookbook/tmp/foodcritic/cookbook/recipes/etcd.rb:41
FC002: Avoid string interpolation where not required: /Users/matt/Projects/deis-cookbook/tmp/foodcritic/cookbook/recipes/etcd.rb:42
FC002: Avoid string interpolation where not required: /Users/matt/Projects/deis-cookbook/tmp/foodcritic/cookbook/recipes/etcd.rb:43
FC002: Avoid string interpolation where not required: /Users/matt/Projects/deis-cookbook/tmp/foodcritic/cookbook/recipes/etcd.rb:44
FC002: Avoid string interpolation where not required: /Users/matt/Projects/deis-cookbook/tmp/foodcritic/cookbook/recipes/etcd.rb:45
FC015: Consider converting definition to a LWRP: /Users/matt/Projects/deis-cookbook/tmp/foodcritic/cookbook/definitions/container.rb:1
FC015: Consider converting definition to a LWRP: /Users/matt/Projects/deis-cookbook/tmp/foodcritic/cookbook/definitions/nginx_site.rb:1
FC023: Prefer conditional attributes: /Users/matt/Projects/deis-cookbook/tmp/foodcritic/cookbook/recipes/builder.rb:2
FC034: Unused template variables: /Users/matt/Projects/deis-cookbook/tmp/foodcritic/cookbook/templates/default/container.conf.erb:1

from deis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.