GithubHelp home page GithubHelp logo

prontolabs / pronto-foodcritic Goto Github PK

View Code? Open in Web Editor NEW
2.0 6.0 6.0 34 KB

Pronto runner for Food Critic, lint tool for chef

License: MIT License

Ruby 100.00%
pronto-runner chef food-critic pronto analyzer linter

pronto-foodcritic's People

Contributors

ashkulz avatar doomspork avatar jeroenj avatar mmozuras avatar petergoldstein avatar vytstank avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pronto-foodcritic's Issues

Depends on pronto 0.4.0

Hi @mmozuras,

I tried to install ALL the runners just to see what would happen. I had to uninstall pronto-foodcritic because of the below conflict (also had to uninstall pronto-spell and pronto-fasterer for the same reason).

.rvm/rubies/ruby-2.1.4/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:2112:in `raise_if_conflicts': Unable to activate pronto-spell-0.4.1, because pronto-0.5.3 conflicts with pronto (~> 0.4.0) (Gem::ConflictError)

Is a fix for this as simple as updating the .gemspec file to ~>0.5.0?

Cannot run pronto-rails_schema and pronto-jscs

Hi @mmozuras,

First off thanks for the useful gem and the bunch of integration provided.

While installing all the runners, I noticed two of them (pronto-jscs and pronto-rails_schema) require an older version of pronto which seems to conflict with the latest version installed 0.6.0.

/Users/eric/.rbenv/versions/2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:2288:in `raise_if_conflicts': Unable to activate pronto-brakeman-0.6.0, because pronto-0.5.3 conflicts with pronto (~> 0.6.0) (Gem::ConflictError)
gem dependency -R pronto

Gem pronto-jscs-0.0.5
  bundler (~> 1.10, development)
  pronto (~> 0.5.0)
  rake (~> 10.0, development)
  rspec (~> 3.3, development)
  rspec-its (~> 1.2, development)

Gem pronto-rails_schema-0.5.0
  bundler (~> 1.10, development)
  pronto (~> 0.5.0)
  rake (~> 10.0, development)
  rspec (~> 3.3, development)

Run in single cookbook repositories

Right now it seems that the runner is built for chef repo's which contain multiple cookbooks (or roles) as https://github.com/mmozuras/pronto-foodcritic/blob/master/lib/pronto/foodcritic.rb#L35 expects the path to include cookbook.

However when all your cookbooks are separated into single repositories cookbook might not always appear in the path. For example when your repository name does not include -cookbook or when you're running it on a CI server which does not use project names internally (like GitLab CI).

I'd say to remove that check alltogether and just run foodcritic on all files. Does that sound reasonable to you?

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.